結果

問題 No.652 E869120 and TimeZone
ユーザー pazzle1230pazzle1230
提出日時 2018-02-23 23:00:03
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 821 bytes
コンパイル時間 1,575 ms
コンパイル使用メモリ 166,964 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-17 13:25:35
合計ジャッジ時間 2,568 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 25 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#define INF_LL (ll)1e18
#define INF (int)1e9
#define REP(i, n) for(int i = 0;i < (n);i++)
#define FOR(i, a, b) for(int i = (a);i < (b);i++)
#define all(x) x.begin(),x.end()
#define fs first
#define sc second
using ll = long long;
using PII = pair<int, int>;
using PLL = pair<ll, ll>;

const double eps = 1e-10;

template<typename A, typename B>inline void chmin(A &a, B b){if(a > b) a = b;}
template<typename A, typename B>inline void chmax(A &a, B b){if(a < b) a = b;}

int main(void){
	cin.tie(0);
	ios::sync_with_stdio(false);
	int a, b;
	double s;
	char c;
	scanf("%d %d %c%c%c%lf", &a, &b, &c, &c, &c, &s);
	int d = (s-9)*60;
	int now = (a*60+b+d+60*24)%(60*24);

	cout << setfill('0') << setw(2) << now/60 << ":";
	cout << setfill('0') << setw(2) << now%60 << endl;
}
0