結果
問題 | No.1149 色塗りゲーム |
ユーザー | moririn2528_c |
提出日時 | 2020-08-07 21:46:54 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,385 bytes |
コンパイル時間 | 825 ms |
コンパイル使用メモリ | 93,076 KB |
実行使用メモリ | 24,372 KB |
平均クエリ数 | 10.44 |
最終ジャッジ日時 | 2023-09-24 04:19:54 |
合計ジャッジ時間 | 5,244 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 38 ms
23,412 KB |
testcase_01 | WA | - |
testcase_02 | AC | 34 ms
23,820 KB |
testcase_03 | WA | - |
testcase_04 | AC | 33 ms
23,808 KB |
testcase_05 | WA | - |
testcase_06 | AC | 34 ms
23,352 KB |
testcase_07 | WA | - |
testcase_08 | AC | 34 ms
24,204 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 35 ms
24,324 KB |
testcase_12 | WA | - |
testcase_13 | AC | 34 ms
24,000 KB |
testcase_14 | WA | - |
testcase_15 | AC | 35 ms
23,352 KB |
testcase_16 | WA | - |
testcase_17 | AC | 37 ms
23,976 KB |
testcase_18 | WA | - |
testcase_19 | AC | 35 ms
23,988 KB |
testcase_20 | WA | - |
testcase_21 | AC | 37 ms
24,204 KB |
testcase_22 | WA | - |
testcase_23 | AC | 35 ms
23,520 KB |
testcase_24 | WA | - |
testcase_25 | AC | 38 ms
23,628 KB |
testcase_26 | WA | - |
testcase_27 | AC | 41 ms
23,544 KB |
testcase_28 | WA | - |
testcase_29 | AC | 40 ms
24,000 KB |
testcase_30 | AC | 73 ms
23,604 KB |
testcase_31 | WA | - |
testcase_32 | AC | 71 ms
23,352 KB |
testcase_33 | WA | - |
testcase_34 | AC | 74 ms
23,808 KB |
testcase_35 | WA | - |
testcase_36 | AC | 77 ms
23,664 KB |
testcase_37 | WA | - |
testcase_38 | AC | 74 ms
23,604 KB |
testcase_39 | WA | - |
testcase_40 | AC | 83 ms
24,372 KB |
testcase_41 | WA | - |
testcase_42 | AC | 80 ms
24,000 KB |
testcase_43 | WA | - |
testcase_44 | AC | 90 ms
24,012 KB |
testcase_45 | WA | - |
testcase_46 | AC | 89 ms
23,628 KB |
testcase_47 | WA | - |
testcase_48 | AC | 97 ms
23,616 KB |
testcase_49 | WA | - |
ソースコード
#include<iostream> #include<cstdio> #include<cstring> #include<string> #include<vector> #include<cmath> #include<algorithm> #include<map> #include<queue> #include<deque> #include<iomanip> #include<tuple> #include<cassert> #include<set> using namespace std; typedef long long int LL; typedef pair<int,int> P; typedef pair<LL,int> LP; const int INF=1<<30; const LL MAX=1e9+7; void array_show(int *array,int array_n,char middle=' '){ for(int i=0;i<array_n;i++)printf("%d%c",array[i],(i!=array_n-1?middle:'\n')); } void array_show(LL *array,int array_n,char middle=' '){ for(int i=0;i<array_n;i++)printf("%lld%c",array[i],(i!=array_n-1?middle:'\n')); } void array_show(vector<int> &vec_s,int vec_n=-1,char middle=' '){ if(vec_n==-1)vec_n=vec_s.size(); for(int i=0;i<vec_n;i++)printf("%d%c",vec_s[i],(i!=vec_n-1?middle:'\n')); } void array_show(vector<LL> &vec_s,int vec_n=-1,char middle=' '){ if(vec_n==-1)vec_n=vec_s.size(); for(int i=0;i<vec_n;i++)printf("%lld%c",vec_s[i],(i!=vec_n-1?middle:'\n')); } int main(){ int n,m; int i,j,k; int a,b,c; cin>>n; if(n%2){ cout<<"1 "<<n/2+1<<endl; }else{ cout<<"2 "<<n/2<<" "<<n/2+1<<endl; } while(cin>>a){ if(a==0)return 0; cin>>a>>b; if(a==1){ cout<<"1 "<<n-b+1<<endl; }else{ cout<<"2 "<<n-b<<endl; } } }