結果
問題 |
No.652 E869120 and TimeZone
|
ユーザー |
|
提出日時 | 2018-02-24 00:33:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 896 bytes |
コンパイル時間 | 891 ms |
コンパイル使用メモリ | 88,160 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 12:21:10 |
合計ジャッジ時間 | 1,666 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 30 |
ソースコード
#include <iostream> #include <cstdio> #include <bitset> #include <queue> #include <stack> #include <vector> #include <list> #include <set> #include <map> #include <utility> #include <string> #include <algorithm> #include <cmath> #include <limits> using namespace std; using ll=long long; using vint=vector<int>; using pint=pair<int,int>; const double EPS = 1e-9; const int inf = numeric_limits<int>::max(); #define rep(i,n) for(int i=0;i<int(n);++i) #define REP(i,a,b) for(int i=int(a);i<int(b);++i) #define SHOW(a) cout << #a << " = " << a << endl #define ARR(a,i,n) for(int i=0;i<int(n);++i) cout << #a << "[" << i << "]" << " = " << a[i] << endl void solve(){ int a, b; double t; scanf("%d%d", &a, &b); scanf("%*4c%lf", &t); int time; time = round(a * 60 + b + 60 * (t - 9 + 24)); time %= 60 * 24; printf("%02d:%02d\n", time / 60, time % 60); } int main(){ solve(); return 0; }