結果

問題 No.1231 Make a Multiple of Ten
ユーザー %20%20
提出日時 2020-09-18 21:29:34
言語 Perl
(5.38.2)
結果
AC  
実行時間 1,200 ms / 2,000 ms
コード長 117 bytes
コンパイル時間 508 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 46,680 KB
最終ジャッジ日時 2023-09-05 18:09:05
合計ジャッジ時間 8,046 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,080 KB
testcase_01 AC 6 ms
5,232 KB
testcase_02 AC 6 ms
5,340 KB
testcase_03 AC 6 ms
5,092 KB
testcase_04 AC 517 ms
24,040 KB
testcase_05 AC 454 ms
21,384 KB
testcase_06 AC 182 ms
11,408 KB
testcase_07 AC 544 ms
24,944 KB
testcase_08 AC 258 ms
16,116 KB
testcase_09 AC 112 ms
8,964 KB
testcase_10 AC 486 ms
22,548 KB
testcase_11 AC 599 ms
25,920 KB
testcase_12 AC 1,103 ms
44,256 KB
testcase_13 AC 1,174 ms
46,208 KB
testcase_14 AC 6 ms
5,168 KB
testcase_15 AC 1,200 ms
46,680 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

@d=(0,(-1e9)x9);
<>;
for$a(glob<>){
	$a%=10;
	@d=map{
		$d[$_]>$d[$_-$a]+1?$d[$_]:$d[$_-$a]+1
	}0..9
}
print$d[0],$/
0