結果

問題 No.2080 Simple Nim Query
ユーザー CleyLCleyL
提出日時 2022-09-28 08:10:51
言語 cLay
(20240104-1)
結果
AC  
実行時間 185 ms / 3,000 ms
コード長 205 bytes
コンパイル時間 3,556 ms
コンパイル使用メモリ 167,508 KB
実行使用メモリ 14,088 KB
最終ジャッジ日時 2023-09-03 02:51:01
合計ジャッジ時間 5,530 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 16 ms
4,656 KB
testcase_04 AC 15 ms
4,720 KB
testcase_05 AC 185 ms
14,088 KB
testcase_06 AC 54 ms
6,688 KB
testcase_07 AC 54 ms
6,840 KB
testcase_08 AC 159 ms
12,124 KB
testcase_09 AC 153 ms
12,140 KB
testcase_10 AC 9 ms
4,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll @n,@q,t,x,y;set<ll> A;A.insert(-1);rep(y,n)rd(x),if(--x)A.insert(y);rep(q){rd(t,x,y);if(--t){auto z=--A.lower_bound(y);wt((*z>x-2?"SF"[(y-*z)%2]:"FS"[(y-x)%2]));}else{A.insert(--x);if(!--y)A.erase(x);}}
0