結果

問題 No.167 N^M mod 10
ユーザー RinRin
提出日時 2015-09-12 10:33:37
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 5,284 KB
実行使用メモリ 14,668 KB
最終ジャッジ日時 2023-09-26 11:36:28
合計ジャッジ時間 3,780 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 22 ms
12,620 KB
testcase_03 AC 21 ms
12,512 KB
testcase_04 WA -
testcase_05 AC 18 ms
11,732 KB
testcase_06 AC 19 ms
13,664 KB
testcase_07 AC 19 ms
11,636 KB
testcase_08 AC 19 ms
11,864 KB
testcase_09 AC 19 ms
13,848 KB
testcase_10 AC 18 ms
11,644 KB
testcase_11 AC 19 ms
11,640 KB
testcase_12 AC 18 ms
11,640 KB
testcase_13 WA -
testcase_14 AC 19 ms
11,764 KB
testcase_15 AC 19 ms
11,776 KB
testcase_16 AC 18 ms
11,660 KB
testcase_17 AC 18 ms
11,812 KB
testcase_18 AC 18 ms
11,868 KB
testcase_19 AC 20 ms
11,740 KB
testcase_20 AC 19 ms
11,752 KB
testcase_21 AC 19 ms
11,676 KB
testcase_22 AC 21 ms
12,496 KB
testcase_23 AC 21 ms
12,532 KB
testcase_24 AC 21 ms
14,536 KB
testcase_25 AC 20 ms
12,516 KB
testcase_26 AC 19 ms
12,216 KB
testcase_27 AC 20 ms
14,668 KB
testcase_28 AC 20 ms
12,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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