結果
| 問題 | 
                            No.296 n度寝
                             | 
                    
| コンテスト | |
| ユーザー | 
                             acerola
                         | 
                    
| 提出日時 | 2016-11-30 09:24:47 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 9 ms / 1,000 ms | 
| コード長 | 400 bytes | 
| コンパイル時間 | 1,214 ms | 
| コンパイル使用メモリ | 165,924 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-07 02:51:36 | 
| 合計ジャッジ時間 | 1,738 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
ソースコード
#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%24<<endl<<m<<endl;
    return 0;
}
            
            
            
        
            
acerola