結果
問題 | No.2502 Optimization in the Dark |
ユーザー | tails |
提出日時 | 2023-10-16 10:07:19 |
言語 | cLay (20240104-1) |
結果 |
CE
|
実行時間 | - |
コード長 | 316 bytes |
コンパイル時間 | 2,511 ms |
コンパイル使用メモリ | 150,608 KB |
最終ジャッジ日時 | 2023-10-16 10:07:23 |
合計ジャッジ時間 | 3,552 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:123:6: error: ‘fork’ was not declared in this scope if(fork()){ ^~~~ main.cpp:124:5: error: ‘_exit’ was not declared in this scope _exit(0); ^~~~~ main.cpp:124:5: note: suggested alternative: ‘_Exit’ _exit(0); ^~~~~ _Exit
ソースコード
//interactive ll q(ll i,ll j,ll x){ wt("?",i,x,j,x); char r[8]; rd(r); return r[0]=='N'?i:j; } { if(fork()){ _exit(0); } ll@n,a,b,c; a=q(q(1,2,2n),3,2n); b=q(a%3+1,(a+1)%3+1,n); c=6-a-b; wtN("!"); rep(n){ wtF(" {a} {b}"); } rep(n){ wtF(" {a} {c}"); } rep(n){ wtF(" {b} {c}"); } wt(""); }