結果

問題 No.231 めぐるはめぐる (1)
ユーザー tailstails
提出日時 2015-06-26 22:29:00
言語 Perl
(5.38.0)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 156 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 4,868 KB
最終ジャッジ日時 2023-08-07 18:34:05
合計ジャッジ時間 1,022 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
4,668 KB
testcase_01 AC 3 ms
4,544 KB
testcase_02 AC 2 ms
4,508 KB
testcase_03 AC 3 ms
4,708 KB
testcase_04 AC 3 ms
4,712 KB
testcase_05 AC 3 ms
4,612 KB
testcase_06 AC 3 ms
4,752 KB
testcase_07 AC 3 ms
4,868 KB
testcase_08 AC 3 ms
4,516 KB
testcase_09 AC 2 ms
4,832 KB
testcase_10 AC 2 ms
4,528 KB
testcase_11 AC 2 ms
4,804 KB
testcase_12 AC 3 ms
4,712 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$n=<>;
for(1..$n){
	($g,$d)=<>=~/\d+/g;
	if($b<$g-$d*30000){
		$i=$_;
		$b=$g-$d*30000;
	}
}
if($b*6>=3e6){
	print"YES\n",($i.$/)x6;
}else{
	print"NO\n";
}
0