結果

問題 No.167 N^M mod 10
ユーザー MaxMellonMaxMellon
提出日時 2015-08-13 16:59:34
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 59 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 11,560 KB
実行使用メモリ 16,416 KB
最終ジャッジ日時 2023-09-25 11:27:18
合計ジャッジ時間 4,171 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
16,232 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 88 ms
16,416 KB
testcase_06 AC 79 ms
15,088 KB
testcase_07 AC 81 ms
15,292 KB
testcase_08 AC 79 ms
15,128 KB
testcase_09 AC 79 ms
15,288 KB
testcase_10 AC 79 ms
15,084 KB
testcase_11 AC 79 ms
15,024 KB
testcase_12 AC 79 ms
15,356 KB
testcase_13 AC 79 ms
15,292 KB
testcase_14 AC 79 ms
15,080 KB
testcase_15 AC 79 ms
15,248 KB
testcase_16 AC 80 ms
15,376 KB
testcase_17 AC 81 ms
15,624 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 81 ms
15,448 KB
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.chomp.to_i
m = gets.chomp.to_i
puts (n ** m) % 10
0