結果
| 問題 | No.652 E869120 and TimeZone | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-06-14 23:34:23 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 237 bytes | 
| コンパイル時間 | 522 ms | 
| コンパイル使用メモリ | 64,184 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-06-30 14:36:36 | 
| 合計ジャッジ時間 | 1,905 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 5 | 
| other | AC * 8 WA * 22 | 
コンパイルメッセージ
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);
	c=x;
	if(c>=0)d=x*10-c*10;
	else d=(c+1)*10-x*10;
	b=(b-d*6+60)%60;
	a=(a-9+c+24)%24;
	printf("%02d:%02d\n",a,b);
}
            
            
            
        