結果

問題 No.274 The Wall
ユーザー tailstails
提出日時 2015-08-28 23:30:25
言語 Perl
(5.38.2)
結果
AC  
実行時間 7 ms / 2,000 ms
コード長 120 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 5,444 KB
最終ジャッジ日時 2023-09-04 02:00:52
合計ジャッジ時間 1,297 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,516 KB
testcase_01 AC 2 ms
4,592 KB
testcase_02 AC 2 ms
4,740 KB
testcase_03 AC 3 ms
4,940 KB
testcase_04 AC 3 ms
4,520 KB
testcase_05 AC 3 ms
4,484 KB
testcase_06 AC 2 ms
4,492 KB
testcase_07 AC 2 ms
4,524 KB
testcase_08 AC 3 ms
4,624 KB
testcase_09 AC 3 ms
4,656 KB
testcase_10 AC 4 ms
4,972 KB
testcase_11 AC 5 ms
5,444 KB
testcase_12 AC 6 ms
5,036 KB
testcase_13 AC 3 ms
4,744 KB
testcase_14 AC 4 ms
4,684 KB
testcase_15 AC 5 ms
4,792 KB
testcase_16 AC 3 ms
5,352 KB
testcase_17 AC 3 ms
5,020 KB
testcase_18 AC 4 ms
5,080 KB
testcase_19 AC 6 ms
5,176 KB
testcase_20 AC 7 ms
4,944 KB
testcase_21 AC 6 ms
5,072 KB
testcase_22 AC 3 ms
4,864 KB
testcase_23 AC 6 ms
5,100 KB
testcase_24 AC 6 ms
5,052 KB
testcase_25 AC 6 ms
4,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::a" used only once: possible typo at Main.pl line 5.
Name "main::n" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($n,$m)=<>=~/\d+/g;
for(<>){
	($l,$r)=//g;
	for($l..$r,$m-1-$r..$m-1-$l){
		exit!print"NO"if++$a[$_]>2;
	}
}
print"YES";
0