結果

問題 No.167 N^M mod 10
ユーザー hogeover30hogeover30
提出日時 2015-03-22 21:53:32
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 63 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 11,536 KB
実行使用メモリ 15,412 KB
最終ジャッジ日時 2023-09-11 09:26:09
合計ジャッジ時間 4,191 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 80 ms
15,088 KB
testcase_03 AC 79 ms
15,308 KB
testcase_04 WA -
testcase_05 AC 79 ms
15,332 KB
testcase_06 WA -
testcase_07 AC 79 ms
15,304 KB
testcase_08 AC 78 ms
15,340 KB
testcase_09 AC 79 ms
15,140 KB
testcase_10 WA -
testcase_11 AC 79 ms
15,164 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 79 ms
15,084 KB
testcase_15 AC 78 ms
15,148 KB
testcase_16 AC 80 ms
15,020 KB
testcase_17 AC 78 ms
15,248 KB
testcase_18 AC 79 ms
15,100 KB
testcase_19 AC 79 ms
15,080 KB
testcase_20 AC 79 ms
15,136 KB
testcase_21 AC 79 ms
15,300 KB
testcase_22 AC 78 ms
15,288 KB
testcase_23 AC 79 ms
15,300 KB
testcase_24 AC 78 ms
15,148 KB
testcase_25 AC 79 ms
15,268 KB
testcase_26 AC 79 ms
15,344 KB
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.chomp[-1].to_i
m=gets.chomp[-2..-1].to_i%4
puts n**m%10
0