結果

問題 No.2521 Don't be Same
ユーザー tailstails
提出日時 2023-10-31 12:50:08
言語 cLay
(20240104-1)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 2,587 ms
コンパイル使用メモリ 172,084 KB
実行使用メモリ 24,696 KB
平均クエリ数 10.04
最終ジャッジ日時 2023-10-31 12:50:15
合計ジャッジ時間 6,750 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
24,636 KB
testcase_01 AC 63 ms
24,648 KB
testcase_02 AC 64 ms
24,648 KB
testcase_03 AC 62 ms
24,648 KB
testcase_04 AC 63 ms
24,648 KB
testcase_05 AC 65 ms
24,648 KB
testcase_06 AC 63 ms
24,648 KB
testcase_07 AC 64 ms
24,648 KB
testcase_08 AC 63 ms
24,648 KB
testcase_09 AC 62 ms
24,648 KB
testcase_10 AC 62 ms
24,648 KB
testcase_11 AC 61 ms
24,648 KB
testcase_12 AC 63 ms
24,648 KB
testcase_13 AC 63 ms
24,648 KB
testcase_14 AC 63 ms
24,648 KB
testcase_15 AC 63 ms
24,648 KB
testcase_16 AC 68 ms
24,648 KB
testcase_17 AC 63 ms
24,648 KB
testcase_18 AC 62 ms
24,648 KB
testcase_19 AC 62 ms
24,648 KB
testcase_20 AC 64 ms
24,648 KB
testcase_21 AC 62 ms
24,648 KB
testcase_22 AC 63 ms
24,648 KB
testcase_23 AC 63 ms
24,648 KB
testcase_24 AC 65 ms
24,648 KB
testcase_25 AC 64 ms
24,648 KB
testcase_26 AC 65 ms
24,648 KB
testcase_27 AC 63 ms
24,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//interactive
ll@x,@y;
if(-x^-y^1){
	wt("First");
}else{
	wt("Second");
	goto opp_turn;
}

my_turn:
if(x==y){
	wt("B");
	x=y=0;
}else if(x<y){
	ll z=x?-(-x^1):0;
	wt("A 2",y-z);
	y=z;
}else{
	ll z=y?-(-y^1):0;
	wt("A 1",x-z);
	x=z;
}

opp_turn:
char@c;
if(c-'A'){
	exit(0);
}
ll@i,@z;
(i-1?y:x)-=z;

goto my_turn;
0