Submission #201090
Source Code Expand
#include <cstdlib> #include <cstring> #include <memory> #include <cstdio> #include <iostream> #include <cmath> #include <string> #include <stack> #include <queue> #include <vector> #include <set> #include <map> #include <algorithm> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x<to;x++) #define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++) #define ZERO(a) memset(a,0,sizeof(a)) void _fill_int(int* p,int val,int rep) {int i; FOR(i,rep) p[i]=val;} #define MINUS(a) _fill_int((int*)a,-1,sizeof(a)/4) //------------------------------------------------------- void solve() { int f,i,j,k,l,x,y; string s; cin>>x>>y; cout << y << " " << x << endl; } int main(int argc,char** argv){ string s; if(argc==1) ios::sync_with_stdio(false); for(int i=1;i<argc;i++) s+=argv[i],s+='\n'; for(int i=s.size()-1;i>=0;i--) ungetc(s[i],stdin); solve(); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - スワップ |
User | kmjp |
Language | C++ (G++ 4.6.4) |
Score | 100 |
Code Size | 1007 Byte |
Status | AC |
Exec Time | 21 ms |
Memory | 932 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_13_69.txt, test_16_44.txt, test_40_40.txt, test_49_31.txt, test_51_74.txt, test_83_60.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 21 ms | 928 KB |
sample_02.txt | AC | 19 ms | 928 KB |
test_13_69.txt | AC | 21 ms | 924 KB |
test_16_44.txt | AC | 21 ms | 800 KB |
test_40_40.txt | AC | 21 ms | 804 KB |
test_49_31.txt | AC | 20 ms | 796 KB |
test_51_74.txt | AC | 20 ms | 932 KB |
test_83_60.txt | AC | 21 ms | 928 KB |