結果

問題 No.296 n度寝
ユーザー xuelei
提出日時 2018-07-17 11:03:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 179 bytes
コンパイル時間 512 ms
コンパイル使用メモリ 62,976 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-24 15:11:33
合計ジャッジ時間 1,028 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
  int n,h,m,t;
  cin >>n>>h>>m>>t;
  cout << ((m+(n-1)*t)/60+h)%24 << endl;;
  cout << (m+(n-1)*t)%60 << endl;
  return 0;
}
0