結果
問題 |
No.296 n度寝
|
ユーザー |
|
提出日時 | 2019-03-29 22:28:23 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 452 bytes |
コンパイル時間 | 1,229 ms |
コンパイル使用メモリ | 157,440 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 01:28:14 |
合計ジャッジ時間 | 2,016 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define REP(i,N) for(i=0;i<N;i++) typedef long long ll; typedef pair<int, int> P; typedef struct{ int first; int second; int third; }T; //昇順 bool comp_Se(T& l, T& r){ return l.second < r.second; } int main(void){ int N,H,M,T; int d=1440; int h=24; int m=60; cin >> N >> H >> M >> T; T=(((N-1)%d)*T)%d; H=(H+T/m)%h; M=(M+T%m)%m; cout << H << endl << M << endl; return 0; }