結果

問題 No.651 E869120 and Driving
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-24 00:53:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 159 ms / 1,000 ms
コード長 311 bytes
コンパイル時間 2,240 ms
コンパイル使用メモリ 76,040 KB
実行使用メモリ 58,412 KB
最終ジャッジ日時 2023-10-22 07:51:37
合計ジャッジ時間 4,535 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 158 ms
58,296 KB
testcase_01 AC 158 ms
58,304 KB
testcase_02 AC 157 ms
58,412 KB
testcase_03 AC 157 ms
58,244 KB
testcase_04 AC 157 ms
58,380 KB
testcase_05 AC 159 ms
58,304 KB
testcase_06 AC 157 ms
58,228 KB
testcase_07 AC 158 ms
58,328 KB
testcase_08 AC 158 ms
58,312 KB
testcase_09 AC 156 ms
58,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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