結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
bal4u
|
| 提出日時 | 2019-04-14 20:34:35 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 265 bytes |
| コンパイル時間 | 257 ms |
| コンパイル使用メモリ | 28,032 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-19 11:31:13 |
| 合計ジャッジ時間 | 983 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
// yukicoder: No.296 n度寝
// 2019.4.14 bal4u
#include <stdio.h>
int main()
{
int N, H, M, T;
long long t;
scanf("%d%d%d%d", &N, &H, &M, &T);
t = 60 * H + M + (long long)(N - 1)*T;
t %= 1440;
printf("%d\n%d\n", (int)(t / 60), (int)(t % 60));
return 0;
}
bal4u