1 solutions
-
0
C :
#include<stdio.h> int main() {int a,b; scanf("%d%d",&a,&b); a=a+b;b=a-b;a=a-b; printf("%d %d",a,b); return 0; }C++ :
#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b; c=a; a=b; b=c; cout<<a<<' '<<b<<endl; return 0; }Pascal :
var a,b,c:longint; begin readln(a,b); c:=a;a:=b;b:=c; writeln(a,' ',b); end.Python :
a , b = raw_input().split() c = a a = b b = c print a , b
- 1
Information
- ID
- 20009
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By