結果

問題 No.2283 Prohibit Three Consecutive
ユーザー tailstails
提出日時 2023-05-01 10:32:24
言語 cLay
(20240104-1)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 333 bytes
コンパイル時間 2,792 ms
コンパイル使用メモリ 174,700 KB
実行使用メモリ 7,496 KB
最終ジャッジ日時 2024-04-30 14:46:13
合計ジャッジ時間 3,534 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 3 ms
6,940 KB
testcase_03 AC 6 ms
7,492 KB
testcase_04 AC 6 ms
6,940 KB
testcase_05 AC 6 ms
6,940 KB
testcase_06 AC 6 ms
7,496 KB
testcase_07 AC 2 ms
6,940 KB
testcase_08 AC 3 ms
6,944 KB
testcase_09 AC 2 ms
6,940 KB
testcase_10 AC 3 ms
6,944 KB
testcase_11 AC 4 ms
6,944 KB
testcase_12 AC 4 ms
6,940 KB
testcase_13 AC 4 ms
6,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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");
}
0