結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2016-11-30 09:23:36 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 397 bytes |
コンパイル時間 | 1,311 ms |
コンパイル使用メモリ | 166,564 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-27 13:52:26 |
合計ジャッジ時間 | 2,016 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 8 |
ソースコード
#include <bits/stdc++.h> #define Rep(i,j,n) for(li i=(j);i<(n);i++) #define rep(i,n) Rep(i,0,n) #define all(a) begin(a),end(a) using namespace std; typedef long int li; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<string> vs; int main() { int n,h,m,t; cin>>n>>h>>m>>t; m+=(n-1)*t; while(m>=60) h++,m-=60; cout<<h<<endl<<m<<endl; return 0; }