結果

問題 No.296 n度寝
ユーザー KKT89
提出日時 2019-12-15 02:10:21
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 16 ms / 1,000 ms
コード長 306 bytes
コンパイル時間 604 ms
コンパイル使用メモリ 72,180 KB
最終ジャッジ日時 2025-01-08 11:37:07
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int ll;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int n,h,m,t; cin >> n >> h >> m >> t;
	n--;
	int sum=0;
	sum=h*60+m+n*t;
	sum%=60*24;
	cout << sum/60 << endl;
	cout << sum%60 << endl;
}
0