結果
問題 | No.70 睡眠の重要性! |
ユーザー |
![]() |
提出日時 | 2024-04-27 15:11:09 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 5,038 ms |
コンパイル使用メモリ | 65,708 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-15 18:17:58 |
合計ジャッジ時間 | 5,501 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
import sequtils, strutilsletn = parseInt readLine stdinxs = (0 ..< n).mapIt split readLine stdinproc fn(s: string): int =lethm = s.split(':').map parseInth = hm[0]m = hm[1]h * 60 + mvar ans = 0for x in xs:var t = x[1].fn - x[0].fnif t < 0: t.inc (24 * 60)ans.inc techo ans