結果
| 問題 | No.652 E869120 and TimeZone |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-06-14 23:45:40 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 479 ms |
| コンパイル使用メモリ | 73,820 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-20 16:48:59 |
| 合計ジャッジ時間 | 1,410 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 3 |
| other | AC * 6 WA * 25 |
コンパイルメッセージ
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
6 | main()
| ^~~~
ソースコード
#include<iostream>
#include<cstdio>
using namespace std;
int a,b,c,d;
float x;
main()
{
scanf("%d %d UTC%f",&a,&b,&x);
x=8.999-x;
c=x;
d=x*10-c*10;
b=b-d*6;
if(b<0)b+=60,a--;
else if(b>=60)b-=60,a++;
a=(a-c+24)%24;
printf("%02d:%02d\n",a,b);
}