結果

問題 No.274 The Wall
コンテスト
ユーザー 👑 tails
提出日時 2015-08-28 23:30:25
言語 Perl
(5.44.0)
コンパイル:
perl -cw _filename_
実行:
perl -X _filename_
結果
AC  
実行時間 5 ms / 2,000 ms
+ 272µs
コード長 120 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 5 ms
コンパイル使用メモリ 9,868 KB
実行使用メモリ 9,796 KB
最終ジャッジ日時 2026-10-13 08:45:35
合計ジャッジ時間 1,581 ms
ジャッジサーバーID
(参考情報)
judge5_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::n" used only once: possible typo at Main.pl line 1.
Name "main::a" used only once: possible typo at Main.pl line 5.
Main.pl syntax OK

ソースコード

diff #
raw source code

($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