結果
問題 | No.296 n度寝 |
ユーザー |
![]() |
提出日時 | 2019-08-25 18:24:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 279 bytes |
コンパイル時間 | 852 ms |
コンパイル使用メモリ | 77,484 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 21:33:01 |
合計ジャッジ時間 | 1,709 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include<iostream> #include<algorithm> #include <vector> #include<cmath> #include<iomanip> using namespace std; typedef long long int lont; int main() { int N,H,M,T; cin >> N >> H >> M >> T; cout << (H + (M + N * T-T) / 60) % 24 << endl; cout << (M + N * T-T) % 60 << endl; }