結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2016-12-21 20:29:49 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 156 bytes | 
| コンパイル時間 | 492 ms | 
| コンパイル使用メモリ | 64,284 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-07 02:51:44 | 
| 合計ジャッジ時間 | 923 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
            
            ソースコード
#include<iostream>
#include<list>
using namespace std;
main(){
	int n,h,m,t;cin>>n>>h>>m>>t;n--;
	m+=t*n;
	h+=m/60;m%=60;
	h%=24;
	cout<<h<<endl<<m<<endl;
}
            
            
            
        