結果
問題 | No.167 N^M mod 10 |
ユーザー |
![]() |
提出日時 | 2018-05-31 17:36:37 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 54 ms / 1,000 ms |
コード長 | 279 bytes |
コンパイル時間 | 12,696 ms |
コンパイル使用メモリ | 185,984 KB |
実行使用メモリ | 29,568 KB |
最終ジャッジ日時 | 2024-09-22 01:46:45 |
合計ジャッジ時間 | 15,145 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 48 ms
28,672 KB |
testcase_01 | AC | 53 ms
29,184 KB |
testcase_02 | AC | 53 ms
29,184 KB |
testcase_03 | AC | 54 ms
29,312 KB |
testcase_04 | AC | 54 ms
29,312 KB |
testcase_05 | AC | 53 ms
29,184 KB |
testcase_06 | AC | 51 ms
29,440 KB |
testcase_07 | AC | 52 ms
29,184 KB |
testcase_08 | AC | 52 ms
29,056 KB |
testcase_09 | AC | 52 ms
29,184 KB |
testcase_10 | AC | 52 ms
29,312 KB |
testcase_11 | AC | 52 ms
29,056 KB |
testcase_12 | AC | 53 ms
29,312 KB |
testcase_13 | AC | 51 ms
29,056 KB |
testcase_14 | AC | 49 ms
28,800 KB |
testcase_15 | AC | 52 ms
29,056 KB |
testcase_16 | AC | 53 ms
29,312 KB |
testcase_17 | AC | 52 ms
29,184 KB |
testcase_18 | AC | 53 ms
29,056 KB |
testcase_19 | AC | 52 ms
29,056 KB |
testcase_20 | AC | 54 ms
29,312 KB |
testcase_21 | AC | 53 ms
29,056 KB |
testcase_22 | AC | 54 ms
29,312 KB |
testcase_23 | AC | 52 ms
29,312 KB |
testcase_24 | AC | 51 ms
29,312 KB |
testcase_25 | AC | 50 ms
29,568 KB |
testcase_26 | AC | 46 ms
28,928 KB |
testcase_27 | AC | 52 ms
29,312 KB |
testcase_28 | AC | 49 ms
29,056 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (675 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
let f n = fun (s:string) -> if s.Length=1 then s.[0..] else s.[s.Length-n..] match ((stdin.ReadLine >> f 1)(),(stdin.ReadLine >> f 2)()) with | (_,"0") -> 1 | ("0",_) -> 0 | (n,m) -> (pown (int n) ((int >> fun n -> if n%4=0 then 4 else n%4) m))%10 |> stdout.WriteLine