結果
問題 | No.652 E869120 and TimeZone |
ユーザー |
![]() |
提出日時 | 2018-02-23 22:26:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 433 bytes |
コンパイル時間 | 786 ms |
コンパイル使用メモリ | 91,816 KB |
最終ジャッジ日時 | 2025-01-05 08:27:54 |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 30 |
ソースコード
#include<algorithm> #include<iostream> #include<sstream> #include<vector> #include<cmath> using namespace std; typedef long long lint; typedef vector<int>vi; typedef pair<int,int>pii; #define rep(i,n)for(int i=0;i<(int)(n);++i) int main(){ int a,b; string s; cin>>a>>b>>s; stringstream st(s.substr(3)); double t;st>>t; int diff=floor(t*60+0.5); int c=60*a+b+diff+15*60; c%=1440; printf("%02d:%02d\n",c/60,c%60); }