結果

問題 No.651 E869120 and Driving
ユーザー YamaKasa
提出日時 2018-05-09 17:36:41
言語 Java
(openjdk 23)
結果
AC  
実行時間 158 ms / 1,000 ms
コード長 335 bytes
コンパイル時間 2,064 ms
コンパイル使用メモリ 76,016 KB
実行使用メモリ 55,136 KB
最終ジャッジ日時 2024-09-22 09:00:10
合計ジャッジ時間 4,222 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		scan.close();
		int h = a / 100;
		int m = a % 100 * 6 / 10;
		if(m < 10) {
			System.out.println(h + 10 + ":0" + m);
		}else {
			System.out.println(h + 10 + ":" + m);
		}
	}
}
0