結果

問題 No.2283 Prohibit Three Consecutive
ユーザー tailstails
提出日時 2023-05-01 10:31:26
言語 cLay
(20240104-1)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 323 bytes
コンパイル時間 3,461 ms
コンパイル使用メモリ 174,500 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-30 14:45:35
合計ジャッジ時間 3,293 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,812 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 5 ms
6,940 KB
testcase_04 AC 5 ms
6,944 KB
testcase_05 AC 5 ms
6,940 KB
testcase_06 AC 5 ms
6,944 KB
testcase_07 AC 1 ms
6,940 KB
testcase_08 AC 3 ms
6,940 KB
testcase_09 AC 3 ms
6,940 KB
testcase_10 AC 3 ms
6,940 KB
testcase_11 AC 3 ms
6,940 KB
testcase_12 AC 2 ms
6,944 KB
testcase_13 AC 3 ms
6,940 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)];
		}
		z|=a&1<<x;
	}
	wt(z?"Yes":"No");
}
0