1 solutions
-
0
C :
#include <stdio.h> int main() { int M,N,K; while(scanf("%d",&N),N) { while(N--) { scanf("%d%d",&M,&K); printf("%d %d\n",K,M); } } return 0; }C++ :
#include<iostream> using namespace std; int main() { int N; int a[1001],b[1001]; while(cin>>N,N) { for(int i=0; i<N; i++) { cin>>a[i]>>b[i]; } for(int i=0; i<N; i++) { cout<<b[i]<<" "<<a[i]<<endl; } } return 0; }
- 1
Information
- ID
- 19250
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By