結果
| 問題 |
No.734 Careful Engineer
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2018-12-09 15:36:31 |
| 言語 | Haskell (9.10.1) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 309 bytes |
| コンパイル時間 | 7,313 ms |
| コンパイル使用メモリ | 176,512 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2025-06-20 00:45:37 |
| 合計ジャッジ時間 | 8,185 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.10.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
main = do
e<-getLine
let (a:b:c:[])=map read (words e)::[Integer]
d=if (60*a-b)<=0 then -1 else (3600*c) `div` (60*a-b)
add=if (60*a-b)<=0 then -1 else (3600*c) `mod` (60*a-b)
add2=if add==0 then 0 else 1
print $ if d>=0 && (d+add2)>=1 then d+add2 else -1
horiesiniti