結果

問題 No.1085 桁和の桁和
ユーザー tailstails
提出日時 2020-07-10 12:14:43
言語 Perl
(5.38.2)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 91 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 5,376 KB
実行使用メモリ 15,232 KB
最終ジャッジ日時 2024-04-24 10:12:23
合計ジャッジ時間 2,160 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
5,504 KB
testcase_01 AC 3 ms
5,504 KB
testcase_02 AC 3 ms
5,376 KB
testcase_03 AC 3 ms
5,376 KB
testcase_04 AC 53 ms
13,952 KB
testcase_05 AC 4 ms
5,504 KB
testcase_06 AC 3 ms
5,504 KB
testcase_07 AC 3 ms
5,504 KB
testcase_08 AC 4 ms
5,504 KB
testcase_09 AC 3 ms
5,504 KB
testcase_10 AC 3 ms
5,504 KB
testcase_11 AC 3 ms
5,376 KB
testcase_12 AC 3 ms
5,376 KB
testcase_13 AC 10 ms
6,656 KB
testcase_14 AC 22 ms
9,216 KB
testcase_15 AC 47 ms
13,824 KB
testcase_16 AC 46 ms
13,696 KB
testcase_17 AC 24 ms
9,472 KB
testcase_18 AC 14 ms
7,552 KB
testcase_19 AC 42 ms
12,928 KB
testcase_20 AC 42 ms
13,056 KB
testcase_21 AC 28 ms
10,240 KB
testcase_22 AC 39 ms
12,288 KB
testcase_23 AC 7 ms
6,144 KB
testcase_24 AC 3 ms
5,504 KB
testcase_25 AC 25 ms
9,728 KB
testcase_26 AC 48 ms
14,080 KB
testcase_27 AC 40 ms
12,416 KB
testcase_28 AC 55 ms
15,232 KB
testcase_29 AC 30 ms
10,752 KB
testcase_30 AC 27 ms
10,112 KB
testcase_31 AC 47 ms
13,824 KB
testcase_32 AC 33 ms
11,264 KB
testcase_33 AC 55 ms
14,336 KB
testcase_34 AC 55 ms
14,336 KB
testcase_35 AC 55 ms
14,336 KB
testcase_36 AC 55 ms
14,336 KB
testcase_37 AC 56 ms
14,208 KB
testcase_38 AC 55 ms
14,336 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

$m=1e9+7;/\?/?$s=$s*10%$m+1:($q+=$_)for<>=~/./g;print+(-($d=<>)?$s+($q&&$q%9==$d%9):!$q)%$m
0