結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 3 ms
4,520 KB
testcase_03 AC 2 ms
4,784 KB
testcase_04 WA -
testcase_05 AC 3 ms
4,756 KB
testcase_06 WA -
testcase_07 AC 3 ms
4,464 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,604 KB
testcase_10 AC 2 ms
4,556 KB
testcase_11 AC 3 ms
4,776 KB
testcase_12 WA -
testcase_13 AC 3 ms
4,696 KB
testcase_14 AC 2 ms
4,784 KB
testcase_15 AC 2 ms
4,772 KB
testcase_16 AC 2 ms
4,700 KB
testcase_17 AC 2 ms
4,600 KB
testcase_18 AC 2 ms
4,624 KB
testcase_19 WA -
testcase_20 AC 2 ms
4,592 KB
testcase_21 AC 2 ms
4,588 KB
testcase_22 AC 2 ms
4,664 KB
testcase_23 WA -
testcase_24 AC 2 ms
4,632 KB
testcase_25 AC 3 ms
4,608 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

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