結果
| 問題 |
No.2283 Prohibit Three Consecutive
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2023-05-01 10:32:24 |
| 言語 | cLay (20241019-1) |
| 結果 |
AC
|
| 実行時間 | 7 ms / 2,000 ms |
| コード長 | 333 bytes |
| コンパイル時間 | 4,776 ms |
| コンパイル使用メモリ | 173,424 KB |
| 実行使用メモリ | 7,496 KB |
| 最終ジャッジ日時 | 2024-11-20 10:17:41 |
| 合計ジャッジ時間 | 3,085 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)];
}
if(z|=a&1<<x) break;
}
wt(z?"Yes":"No");
}
tails