結果
| 問題 | No.296 n度寝 | 
| コンテスト | |
| ユーザー |  keisuke6 | 
| 提出日時 | 2022-10-23 09:13:30 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 39 ms / 1,000 ms | 
| コード長 | 203 bytes | 
| コンパイル時間 | 1,697 ms | 
| コンパイル使用メモリ | 191,636 KB | 
| 最終ジャッジ日時 | 2025-02-08 11:40:48 | 
| ジャッジサーバーID (参考情報) | judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  int A,B,C,D;
  cin>>A>>B>>C>>D;
  int t = B*60+C;
  t += (A-1)*D;
  t %= 1440;
  cout<<t/60<<endl;cout<<t%60<<endl;
}
            
            
            
        