結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
nCk_cv
|
| 提出日時 | 2015-11-28 00:59:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 369 bytes |
| コンパイル時間 | 464 ms |
| コンパイル使用メモリ | 68,228 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-06 22:32:54 |
| 合計ジャッジ時間 | 958 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include <iostream>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <algorithm>
#include <string>
#include <map>
using namespace std;
#define ll long long
int main() {
int N,H,M,T;
cin >> N >> H >> M >> T;
N--;
ll time = (T * N + H * 60 + M) % 1440;
ll hour = time / 60;
time -= hour * 60;
cout << hour << endl;
cout << time << endl;
}
nCk_cv