結果

問題 No.2521 Don't be Same
ユーザー 👑 p-adicp-adic
提出日時 2023-11-09 22:12:29
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 389 bytes
コンパイル時間 2,684 ms
コンパイル使用メモリ 176,888 KB
実行使用メモリ 97,244 KB
平均クエリ数 0.07
最終ジャッジ日時 2023-11-09 22:12:36
合計ジャッジ時間 6,718 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

//interactive
ll Z,W,i=0,j;string A="A",B="B",P="First",Q="Second";void G(){string@C;ll@k,@x;if(k==i)Z-=x;else if((W-=x)<Z){swap(Z,W);i=j;j=1-i;}}void F(){if(Z<1)wt(A,j,W);else if(Z<2){if(W<2)wt(B);else if(W>2){wt(A,j,W-2);W=2;F();}else{G();F();}}else if(Z>2){if(Z<W)wt(A,i,Z-2),Z=2,F();else wt(B);}else{G();F();}}{ll@X,@Y;if(X<Y)Z=X,W=Y;else Z=Y,W=X,i=1;j=1-i;wt((Z<2?W!=2:Z>2)?P:Q);F();}
0