結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2021-12-12 23:12:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 332 bytes |
コンパイル時間 | 1,671 ms |
コンパイル使用メモリ | 166,784 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-21 11:53:58 |
合計ジャッジ時間 | 2,303 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string s; long long n; int h, m, t; cin >> n >> h >> m >> t; if (60-m > t*(n-1) ){ cout << h << endl; cout << m+t*(n-1) << endl; }else{ cout << (h+ (m+t*(n-1))/60 ) % 24 << endl; cout << m+t*(n-1) %60 << endl; } }