結果
問題 | No.296 n度寝 |
ユーザー |
![]() |
提出日時 | 2024-03-07 04:12:39 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 14 ms / 1,000 ms |
コード長 | 259 bytes |
コンパイル時間 | 1,862 ms |
コンパイル使用メモリ | 192,476 KB |
最終ジャッジ日時 | 2025-02-20 01:31:30 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int n,h,m,t; cin>>n>>h>>m>>t; int T=(n-1)*t;//h:mのT分後起床 m+=T; h+=m/60; m=m%60; h=h%24; cout<<h<<endl; cout<<m<<endl; }