結果

問題 No.652 E869120 and TimeZone
ユーザー fal_rndfal_rnd
提出日時 2018-02-27 00:08:21
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 306 bytes
コンパイル時間 2,695 ms
コンパイル使用メモリ 74,536 KB
実行使用メモリ 54,360 KB
最終ジャッジ日時 2024-12-17 13:49:05
合計ジャッジ時間 8,181 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 25 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{

	public static void main(String[]$) {
		Scanner s=new Scanner(System.in);
		int t=2880+s.nextInt()*60+s.nextInt()
		+(int)((Double.parseDouble(s.next().substring(3))-9)*60);
		t%=1440;
		if(t<0)
			System.exit(-1);
		System.out.printf("%02d:%02d\n",t/60,t%60);
	}
}
0