結果

問題 No.2080 Simple Nim Query
ユーザー FF256grhyFF256grhy
提出日時 2022-09-28 11:06:05
言語 cLay
(20240104-1)
結果
CE  
実行時間 -
コード長 146 bytes
コンパイル時間 2,515 ms
コンパイル使用メモリ 150,656 KB
最終ジャッジ日時 2023-08-24 04:20:44
合計ジャッジ時間 3,545 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:98:7: error: missing template arguments before ‘s’
   set s{0};
       ^
main.cpp:102:17: error: ‘s’ was not declared in this scope
       rd_ll()>1?s.insert(Nzj9Y0kE),7:7;
                 ^
main.cpp:113:11: error: ‘s’ was not declared in this scope
       y>1?s.insert(x),7:s.erase(x);
           ^
main.cpp:116:30: error: ‘s’ was not declared in this scope
       wt_L("FS"[(chmax(x, *--s.upper_bound(y)))-y&1]);
                              ^

ソースコード

diff #

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