結果

問題 No.167 N^M mod 10
ユーザー RinRin
提出日時 2015-08-25 22:34:36
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 12,776 KB
最終ジャッジ日時 2023-09-25 17:07:29
合計ジャッジ時間 1,995 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 21 ms
12,620 KB
testcase_04 WA -
testcase_05 AC 18 ms
11,840 KB
testcase_06 WA -
testcase_07 AC 18 ms
11,896 KB
testcase_08 AC 18 ms
11,744 KB
testcase_09 AC 18 ms
11,652 KB
testcase_10 AC 18 ms
11,668 KB
testcase_11 WA -
testcase_12 AC 18 ms
11,764 KB
testcase_13 WA -
testcase_14 AC 18 ms
11,852 KB
testcase_15 AC 18 ms
11,756 KB
testcase_16 AC 17 ms
11,648 KB
testcase_17 AC 18 ms
11,916 KB
testcase_18 WA -
testcase_19 AC 18 ms
11,656 KB
testcase_20 WA -
testcase_21 AC 18 ms
11,840 KB
testcase_22 WA -
testcase_23 AC 20 ms
12,704 KB
testcase_24 AC 20 ms
12,520 KB
testcase_25 WA -
testcase_26 AC 20 ms
12,308 KB
testcase_27 WA -
testcase_28 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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