結果
問題 | No.296 n度寝 |
ユーザー |
![]() |
提出日時 | 2015-11-06 22:26:15 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 310 bytes |
コンパイル時間 | 376 ms |
コンパイル使用メモリ | 55,872 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 22:19:41 |
合計ジャッジ時間 | 985 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <iostream>#include <cstdlib>#include <time.h>using namespace std;#define MOD 1000000007int main(){long long n,h,m,t;cin>>n>>h>>m>>t;long long tt = 60*h+m;long long tt2 = t*(n-1);long long tt3 = tt+tt2;cout << (tt3 / 60) % 24 << endl;cout << tt3 % 60 << endl;return 0;}