結果

問題 No.296 n度寝
ユーザー Yut176
提出日時 2016-10-06 22:43:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 485 ms
コンパイル使用メモリ 72,468 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-21 18:59:19
合計ジャッジ時間 1,112 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<string>
#include<sstream>
#include<cmath>
using namespace std;

int main(){

  int n, h, m, t;
  cin >> n >> h >> m >> t;

  m += t * (n-1);
  while( t >= 60 ){
    t -= 60;
    h += 1;
  }
  cout << h%24 << endl;
  cout << m << endl;

  return 0;
}
0