結果

問題 No.167 N^M mod 10
ユーザー tkzw_21tkzw_21
提出日時 2015-03-20 11:59:26
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 40 bytes
コンパイル時間 308 ms
コンパイル使用メモリ 11,568 KB
実行使用メモリ 16,716 KB
最終ジャッジ日時 2023-09-11 09:05:20
合計ジャッジ時間 4,101 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
16,392 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 85 ms
16,716 KB
testcase_06 AC 80 ms
15,368 KB
testcase_07 AC 80 ms
15,132 KB
testcase_08 AC 79 ms
15,096 KB
testcase_09 AC 79 ms
15,092 KB
testcase_10 AC 79 ms
15,168 KB
testcase_11 AC 79 ms
15,300 KB
testcase_12 AC 80 ms
15,264 KB
testcase_13 AC 79 ms
15,348 KB
testcase_14 AC 79 ms
15,184 KB
testcase_15 AC 79 ms
15,164 KB
testcase_16 AC 78 ms
15,588 KB
testcase_17 AC 79 ms
15,692 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,524 KB
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
m = gets.to_i
puts n**m%10
0