結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2018-09-04 17:50:40 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 267 bytes |
コンパイル時間 | 1,994 ms |
コンパイル使用メモリ | 157,560 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 23:59:20 |
合計ジャッジ時間 | 2,698 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 8 |
ソースコード
#include<bits/stdc++.h> #define REP(i,n) for(int i=0;i<(int)(n);i++) using namespace std; typedef long long int ll; int main() { int N,H,M,T; cin >> N >> H >> M >> T; cout << (H*60+M+T*(N-1))/60 << endl; cout << (H*60+M+T*(N-1))%60 << endl; return 0; }