結果

問題 No.1177 余りは?
ユーザー こまるこまる
提出日時 2020-11-14 12:20:31
言語 Haskell
(9.8.2)
結果
AC  
実行時間 32 ms / 1,000 ms
コード長 148 bytes
コンパイル時間 1,528 ms
コンパイル使用メモリ 157,348 KB
実行使用メモリ 10,504 KB
最終ジャッジ日時 2023-09-30 04:52:05
合計ジャッジ時間 3,494 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
8,772 KB
testcase_01 AC 32 ms
10,504 KB
testcase_02 AC 12 ms
8,564 KB
testcase_03 AC 22 ms
9,676 KB
testcase_04 AC 12 ms
8,740 KB
testcase_05 AC 22 ms
8,952 KB
testcase_06 AC 5 ms
8,120 KB
testcase_07 AC 5 ms
8,128 KB
testcase_08 AC 22 ms
9,776 KB
testcase_09 AC 22 ms
9,680 KB
testcase_10 AC 3 ms
7,672 KB
testcase_11 AC 22 ms
9,252 KB
testcase_12 AC 4 ms
7,968 KB
testcase_13 AC 6 ms
8,196 KB
testcase_14 AC 7 ms
8,348 KB
testcase_15 AC 12 ms
8,604 KB
testcase_16 AC 7 ms
8,456 KB
testcase_17 AC 22 ms
9,848 KB
testcase_18 AC 12 ms
8,776 KB
testcase_19 AC 22 ms
9,460 KB
testcase_20 AC 6 ms
8,196 KB
testcase_21 AC 22 ms
9,168 KB
testcase_22 AC 22 ms
9,696 KB
testcase_23 AC 12 ms
8,776 KB
testcase_24 AC 12 ms
8,504 KB
testcase_25 AC 22 ms
9,760 KB
testcase_26 AC 22 ms
9,824 KB
testcase_27 AC 6 ms
8,268 KB
testcase_28 AC 22 ms
9,264 KB
testcase_29 AC 22 ms
8,884 KB
testcase_30 AC 22 ms
8,828 KB
testcase_31 AC 22 ms
9,356 KB
testcase_32 AC 3 ms
7,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

main :: IO ()
main = do
  [p, k] <- map (read :: String -> Integer) . words <$> getLine
  print $ ((10 ^ (p - 1) - k) `div` p + 1) `mod` 1000000007
0