結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-06 17:16:49 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 300 bytes |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 54,136 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-06 22:33:06 |
| 合計ジャッジ時間 | 855 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include<iostream>
#include<string>
int main()
{
unsigned long long int N, H, M, T;
std::cin >> N;
std::cin >> H;
std::cin >> M;
std::cin >> T;
int time = H * 60 + M;
time += (N - 1) * T;
int jikan = (time / 60) % 24;
int hun = time % 60;
std::cout << jikan << "\n" << hun << std::endl;
}