結果

問題 No.652 E869120 and TimeZone
ユーザー keisuke6
提出日時 2022-08-30 07:42:58
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 11 ms / 1,000 ms
コード長 316 bytes
コンパイル時間 1,663 ms
コンパイル使用メモリ 192,360 KB
最終ジャッジ日時 2025-02-06 23:51:03
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  int A,B;
  cin>>A>>B;
  char a,b,c;
  cin>>a>>b>>c;
  int T = 60*A+B+2340;
  double S;
  cin>>S;
  S *= 10;
  T += (int)(6*S);
  T %= 1440;
  if(T/60 < 10) cout<<0;
  cout<<T/60<<':';
  if(T%60 < 10) cout<<0;
  cout<<T%60<<endl;
}
0