結果

問題 No.167 N^M mod 10
ユーザー tonyu0tonyu0
提出日時 2020-04-05 10:56:29
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 132 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 5,332 KB
実行使用メモリ 4,700 KB
最終ジャッジ日時 2023-09-16 06:31:40
合計ジャッジ時間 1,355 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,460 KB
testcase_01 AC 3 ms
4,556 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 3 ms
4,552 KB
testcase_06 AC 2 ms
4,504 KB
testcase_07 AC 2 ms
4,584 KB
testcase_08 AC 3 ms
4,540 KB
testcase_09 AC 2 ms
4,592 KB
testcase_10 WA -
testcase_11 AC 3 ms
4,408 KB
testcase_12 AC 2 ms
4,464 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 2 ms
4,412 KB
testcase_16 AC 2 ms
4,516 KB
testcase_17 AC 2 ms
4,436 KB
testcase_18 AC 3 ms
4,412 KB
testcase_19 AC 3 ms
4,464 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

my $n = <>;
my $m = <>;
$n %= 10;
$m %= 4;

my $mul = $n;

for(my $i = 1; $i < $m; $i++) {
  $n *= $mul;;
  $n %= 10;
}
print$n,$/;
0