結果
問題 | No.296 n度寝 |
ユーザー |
|
提出日時 | 2022-01-09 19:23:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 350 bytes |
コンパイル時間 | 1,797 ms |
コンパイル使用メモリ | 165,332 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-14 10:29:43 |
合計ジャッジ時間 | 2,370 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> #define rep(i,a,b) for(int i = (a); i < (b); i++) #define all(A) (A).begin(),(A).end() #define MOD 1000000007 using namespace std; using ll = long long; using Graph = vector<vector<int>>; int main() { int n,h,m,t; cin >> n >> h >> m >> t; ll time = h*60+m+(n-1)*t; cout << time/60%24 << endl; cout << time%60 << endl; }