結果

問題 No.492 IOI数列
ユーザー tailstails
提出日時 2017-03-10 23:47:03
言語 Perl
(5.38.2)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 135 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 11,184 KB
実行使用メモリ 11,364 KB
最終ジャッジ日時 2023-09-06 14:39:36
合計ジャッジ時間 2,402 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
11,244 KB
testcase_01 AC 35 ms
11,240 KB
testcase_02 AC 36 ms
11,172 KB
testcase_03 AC 36 ms
11,100 KB
testcase_04 AC 36 ms
11,228 KB
testcase_05 AC 34 ms
11,080 KB
testcase_06 AC 35 ms
11,172 KB
testcase_07 AC 36 ms
11,076 KB
testcase_08 AC 35 ms
11,152 KB
testcase_09 AC 35 ms
11,168 KB
testcase_10 AC 35 ms
11,200 KB
testcase_11 AC 36 ms
11,176 KB
testcase_12 AC 34 ms
11,096 KB
testcase_13 AC 35 ms
11,072 KB
testcase_14 AC 36 ms
11,080 KB
testcase_15 AC 35 ms
11,084 KB
testcase_16 AC 34 ms
11,132 KB
testcase_17 AC 35 ms
11,364 KB
testcase_18 AC 40 ms
11,172 KB
testcase_19 AC 40 ms
11,176 KB
testcase_20 AC 40 ms
11,156 KB
testcase_21 AC 36 ms
11,240 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use bigint;
$m1=1000000007;
$n=<>+0;
print +(100->bmodpow($n,$m1)+($m1-1))*99->bmodinv($m1)%$m1,$/;
print +$n%11?10x(($n-1)%11).1:0,$/;
0