結果
| 問題 | No.296 n度寝 |
| コンテスト | |
| ユーザー |
sorag
|
| 提出日時 | 2022-08-09 15:41:05 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 227µs | |
| コード長 | 379 bytes |
| 記録 | |
| コンパイル時間 | 316 ms |
| コンパイル使用メモリ | 90,156 KB |
| 実行使用メモリ | 9,780 KB |
| 最終ジャッジ日時 | 2026-08-31 08:47:15 |
| 合計ジャッジ時間 | 1,627 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
ソースコード
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<map>
#define all(x) x.begin(),x.end()
#define pb push_back
#define ll long long
#define P pair<int,int>
#define LP pair<ll,ll>
using namespace std;
int main() {
ll n,h,m,t,cnt;
cin >>n>>h>>m>>t;
cnt = h*60+m+t*(n - 1);
cout << cnt/ 60 % 24 << endl;
cout << cnt% 60 << endl;
return 0;
}
sorag