A + B

Simple task for test laguages

IN

1
2

OUT

3

IN

-2
4

OUT

2

IN

0
10

OUT

10
Login to submit solution


3 symbols pyth
Mon Sep 19 18:29:44 2016 Sait2000
s.Q
8 symbols perl
Fri Jan 10 16:51:26 2014 bugov
#!/usr/bin/perl -p
$_+=<>
10 symbols perl
Thu Sep 5 20:48:49 2013 Илья Зеленук
print<>+<>
11 symbols perl
Thu Sep 5 20:50:30 2013 Илья Зеленук
print <>+<>
17 symbols bash
Mon Jul 25 03:22:05 2016 hidefromkgb
expr `pr -T2S+\ `
20 symbols bash
Mon Jul 25 03:13:11 2016 hidefromkgb
echo $((`pr -t2s+`))
21 symbols python2
Sun Jul 20 18:20:15 2014 LLcoolNJ
print input()+input()
21 symbols ruby2.0
Mon Aug 15 20:43:21 2016 mhib
p gets.to_i+gets.to_i
22 symbols perl
Wed Sep 4 09:39:45 2013 avkhozov
$a=<>;$b=<>;print$a+$b
24 symbols ruby2.0
Sat Jul 5 12:49:04 2014 Nakilon
puts gets.to_i+gets.to_i
26 symbols bash
Mon May 26 13:07:39 2014 ledyba
read a;read b;expr $a + $b
32 symbols ruby2.0
Wed Sep 4 09:43:51 2013 avkhozov
puts Integer(gets)+Integer(gets)
32 symbols python3
Fri Aug 8 22:10:23 2014 z423x5c6
i=input
print(int(i())+int(i()))
32 symbols python3
Wed Aug 13 18:34:27 2014 z423x5c6
print(int(input())+int(input()))
32 symbols python3
Fri Jan 30 23:36:17 2015 jcc10
i=input
print(int(i())+int(i()))
33 symbols ruby2.0
Wed Sep 4 09:43:37 2013 avkhozov
puts Integer(gets)+Integer(gets)
37 symbols php
Tue Jan 27 22:12:57 2015 rlph
<?php echo fgets(STDIN)+fgets(STDIN);
37 symbols haskell
Wed Mar 18 11:11:45 2015 YoshikuniJujo
main=interact$show.sum.map read.lines
39 symbols python3
Fri Mar 21 19:52:20 2014 plain_alex
x=lambda: int(input(''))
print(x()+x())
39 symbols python3
Fri Mar 21 19:59:40 2014 plain_alex
print(int(input())+int(input()),end='')

View all solutions