結果

問題 No.167 N^M mod 10
ユーザー tailstails
提出日時 2015-03-19 23:36:28
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 62 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 5,404 KB
実行使用メモリ 4,868 KB
最終ジャッジ日時 2023-09-11 08:41:47
合計ジャッジ時間 1,279 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 2 ms
4,780 KB
testcase_03 AC 3 ms
4,840 KB
testcase_04 WA -
testcase_05 AC 3 ms
4,452 KB
testcase_06 WA -
testcase_07 AC 2 ms
4,456 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,628 KB
testcase_10 AC 2 ms
4,672 KB
testcase_11 AC 2 ms
4,640 KB
testcase_12 WA -
testcase_13 AC 3 ms
4,640 KB
testcase_14 AC 2 ms
4,504 KB
testcase_15 AC 2 ms
4,556 KB
testcase_16 AC 2 ms
4,764 KB
testcase_17 AC 3 ms
4,596 KB
testcase_18 AC 2 ms
4,636 KB
testcase_19 WA -
testcase_20 AC 2 ms
4,740 KB
testcase_21 AC 2 ms
4,680 KB
testcase_22 AC 3 ms
4,500 KB
testcase_23 WA -
testcase_24 AC 2 ms
4,472 KB
testcase_25 AC 2 ms
4,588 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>=~/.$/;$n=$&;<>=~/..$/;$m=$&<6?$&:($&-6)%10+6;print$n**$m%10
0