結果

問題 No.167 N^M mod 10
ユーザー RinRin
提出日時 2015-08-25 22:30:07
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 13,904 KB
最終ジャッジ日時 2023-09-25 17:07:18
合計ジャッジ時間 2,009 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 20 ms
12,704 KB
testcase_04 WA -
testcase_05 AC 18 ms
11,728 KB
testcase_06 WA -
testcase_07 AC 18 ms
11,780 KB
testcase_08 AC 18 ms
11,880 KB
testcase_09 AC 18 ms
11,704 KB
testcase_10 AC 21 ms
11,648 KB
testcase_11 WA -
testcase_12 AC 18 ms
11,692 KB
testcase_13 WA -
testcase_14 AC 18 ms
11,676 KB
testcase_15 AC 17 ms
11,784 KB
testcase_16 AC 18 ms
11,900 KB
testcase_17 AC 18 ms
11,864 KB
testcase_18 WA -
testcase_19 AC 17 ms
11,848 KB
testcase_20 WA -
testcase_21 AC 18 ms
11,856 KB
testcase_22 WA -
testcase_23 AC 21 ms
12,736 KB
testcase_24 AC 20 ms
12,756 KB
testcase_25 WA -
testcase_26 AC 20 ms
12,160 KB
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (System.out.println x)
  (begin
    (display x)
    (newline)
  )
)

(let (
      (N (read))
      (M (read))
     )
  (System.out.println (modulo (expt (modulo N 10) (modulo M 10)) 10))
)
0