結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2016-02-24 23:23:03 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 360 bytes |
コンパイル時間 | 1,688 ms |
コンパイル使用メモリ | 145,408 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 03:04:52 |
合計ジャッジ時間 | 2,330 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
import std.stdio, std.conv, std.string, std.range, std.math, std.bigint, std.algorithm; void main() { auto input = readln.split.to!(long[]); auto N = input[0], H = input[1], M = input[2], T = input[3]; auto wakeup = ((H * 60 + M) + T * (N - 1)) % 1440; "%s\n%s".writefln(wakeup / 60, wakeup % 60); }