結果

問題 No.2080 Simple Nim Query
ユーザー FF256grhyFF256grhy
提出日時 2022-09-28 11:07:51
言語 cLay
(20240104-1)
結果
AC  
実行時間 143 ms / 3,000 ms
コード長 146 bytes
コンパイル時間 1,560 ms
コンパイル使用メモリ 167,488 KB
実行使用メモリ 14,104 KB
最終ジャッジ日時 2023-09-03 02:51:02
合計ジャッジ時間 3,061 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 14 ms
4,752 KB
testcase_04 AC 13 ms
4,700 KB
testcase_05 AC 143 ms
14,104 KB
testcase_06 AC 49 ms
6,740 KB
testcase_07 AC 47 ms
6,740 KB
testcase_08 AC 117 ms
12,180 KB
testcase_09 AC 116 ms
12,204 KB
testcase_10 AC 9 ms
4,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@q;set<ll>s;s.insert(rd_ll()<2?0:(1..n));rep(q){ll@t,@x,@y;if(t<2)y>1?s.insert(x),0:s.erase(x);else wt("FS"[(x>?=*--s.upper_bound(y))-y&1]);}
0