結果

問題 No.296 n度寝
ユーザー conf
提出日時 2016-09-25 15:29:55
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 263 bytes
コンパイル時間 460 ms
コンパイル使用メモリ 64,028 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-07 02:50:54
合計ジャッジ時間 1,021 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;

int main(){
    int N,H,M,T;
    cin>>N>>H>>M>>T;
    int t=H*60+M+T*(N-1);
    int h=t/60;
    h%=24;
    t%=60;
    cout<<h<<endl;
    cout<<t<<endl;
    return 0;
}
0