結果

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

ソースコード

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;
  T += (int)(60*S);
  T %= 1440;
  if(T/60 < 10) cout<<0;
  cout<<T/60<<':';
  if(T%60 < 10) cout<<0;
  cout<<T%60<<endl;
}
0