結果

問題 No.296 n度寝
ユーザー aimyaimy
提出日時 2017-04-27 14:38:00
言語 Haskell
(9.6.2)
結果
WA  
実行時間 -
コード長 150 bytes
コンパイル時間 890 ms
コンパイル使用メモリ 154,992 KB
実行使用メモリ 7,228 KB
最終ジャッジ日時 2023-10-11 16:03:17
合計ジャッジ時間 2,106 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 3 ms
7,152 KB
testcase_04 AC 2 ms
7,112 KB
testcase_05 AC 3 ms
7,168 KB
testcase_06 AC 3 ms
7,120 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 2 ms
7,116 KB
testcase_11 AC 2 ms
7,204 KB
testcase_12 WA -
testcase_13 AC 2 ms
7,096 KB
testcase_14 AC 3 ms
7,076 KB
testcase_15 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 = do
 [n,h,m,t] <- map read . words <$> getLine
 mapM_ print (neru n h m t)

neru n h m t = [h',m']
 where (h',m') = divMod (h*60+m + (n-1)*t) 60
0