結果
問題 |
No.2283 Prohibit Three Consecutive
|
ユーザー |
![]() |
提出日時 | 2023-05-01 10:31:26 |
言語 | cLay (20241019-1) |
結果 |
AC
|
実行時間 | 6 ms / 2,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 4,612 ms |
コンパイル使用メモリ | 172,756 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-20 10:14:41 |
合計ジャッジ時間 | 4,630 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 13 |
ソースコード
ll@t; rep(t){ ll@n,z=0; string@s; rep(x,4){ ll a=1<<x; rep(i,n){ a= "\x0\x0\x4\x4\x1\x1\x5\x5\x4\x4\x4\x4\x5\x5\x5\x5" "\x0\x2\x8\xa\x2\x2\xa\xa\x0\x2\x8\xa\x2\x2\xa\xa" "\x0\x2\xc\xe\x3\x3\xf\xf\x4\x6\xc\xe\x7\x7\xf\xf" [a|(s[i]=='0'?0:s[i]=='1'?16:32)]; } z|=a&1<<x; } wt(z?"Yes":"No"); }