結果
| 問題 | No.652 E869120 and TimeZone |
| コンテスト | |
| ユーザー |
hoget
|
| 提出日時 | 2018-02-23 22:27:56 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,076 bytes |
| 記録 | |
| コンパイル時間 | 1,588 ms |
| コンパイル使用メモリ | 166,356 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-17 13:09:38 |
| 合計ジャッジ時間 | 2,877 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 WA * 1 |
| other | AC * 4 WA * 26 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define all(x) (x).begin(),(x).end()
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define in(x,y,h,w) x >= 0 && x < h && y >= 0 && y < w
#define int long long
//typedef long long ll;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<vb> vvb;
typedef vector<vi> vvi;
typedef pair<int,int> P;
template <typename T> T &chmin(T &a, const T &b) { return a = min(a, b); }
template <typename T> T &chmax(T &a, const T &b) { return a = max(a, b); }
const int INF=1e+18;
const double EPS=1e-9;
const int MOD=1000000007;
const int dx[]={1,0,-1,0},dy[]={0,-1,0,1};
signed main(){
int h,m;
double t;
scanf("%lld %lld UTC%lf",&h,&m,&t);
if(t > (double)(int)(t + EPS)) m += 30;
h += (int)(t + EPS) - 9;
if(m >= 60){
m -= 60;
h++;
}
while(h < 0) h += 24;
while(h >= 24) h -= 24;
printf("%02lld:%02lld\n",h,m);
return 0;
}
hoget