Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- if __name__ == "__main__":
- with open("i.in") as fin:
- s = fin.read()
- xs = re.compile("\s+").split(s)
- [a, b] = list(map(int, filter(empty, xs)))
- x = a + b
- with open("i.out", "w") as fout:
- fout.write(str(x))
- if __name__ == "__main__":
- a = int(input())
- b = int(input())
- print(a + b)
- package com.vertigo.crawler;
- import java.util.Scanner;
- public class Main {
- public static void main(String... args) {
- Scanner in = new Scanner(System.in);
- int a = in.nextInt();
- int b = in.nextInt();
- System.out.println(a + b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement