結果
問題 |
No.296 n度寝
|
ユーザー |
|
提出日時 | 2020-10-09 05:01:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 16 ms / 1,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 595 ms |
コンパイル使用メモリ | 66,032 KB |
最終ジャッジ日時 | 2025-01-15 03:35:01 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include<iostream> using namespace std; int main(){ int x,y,z,n,i=1; cin >> x >> y >> z >> n; while(i < x){ z+=n; while(z >= 60){ z -=60; y++; } while(y>=24) y -= 24; i++; } cout << y <<endl; cout << z <<endl; return 0; }