結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
tokizo
|
| 提出日時 | 2018-01-13 10:48:52 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 617 bytes |
| 記録 | |
| コンパイル時間 | 867 ms |
| コンパイル使用メモリ | 100,188 KB |
| 最終ジャッジ日時 | 2025-01-05 07:29:40 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 8 |
ソースコード
#include <iostream>
#include <math.h>
#include <algorithm>
#include <functional>
#include <vector>
#include <typeinfo>
#include <climits>
#include <ctype.h>
#include <string>
#include <stdio.h>
using namespace std;
#define INIT cin.tie(0); ios::sync_with_stdio(false);
#define FOR(i, a, n) for (int i = a; i < n; i++)
#define REP(i, n) for(int i = 0; i < n; i++)
int main()
{
INIT;
int n, h, m, t;
cin >> n >> h >> m >> t;
REP(i, n - 1){
m += t;
if(m >= 60){
h += 1;
m -= 60;
}
}
cout << h << endl;
cout << m << endl;
return 0;
}
tokizo