結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
Yut176
|
| 提出日時 | 2016-10-06 22:45:23 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 10 ms / 1,000 ms |
| コード長 | 390 bytes |
| コンパイル時間 | 617 ms |
| コンパイル使用メモリ | 72,304 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-07 02:51:04 |
| 合計ジャッジ時間 | 1,118 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<string>
#include<sstream>
#include<cmath>
using namespace std;
int main(){
long long int n, h, m, t;
cin >> n >> h >> m >> t;
m += t * (n-1);
while( m >= 60 ){
m -= 60;
h += 1;
}
cout << h%24 << endl;
cout << m << endl;
return 0;
}
Yut176