結果

問題 No.651 E869120 and Driving
ユーザー ohagi_1182ohagi_1182
提出日時 2018-02-23 23:20:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 1,000 ms
コード長 326 bytes
コンパイル時間 2,237 ms
コンパイル使用メモリ 74,412 KB
実行使用メモリ 57,776 KB
最終ジャッジ日時 2023-10-22 07:51:04
合計ジャッジ時間 3,991 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
57,528 KB
testcase_01 AC 117 ms
56,296 KB
testcase_02 AC 130 ms
57,776 KB
testcase_03 AC 125 ms
57,184 KB
testcase_04 AC 129 ms
57,616 KB
testcase_05 AC 117 ms
56,208 KB
testcase_06 AC 128 ms
57,652 KB
testcase_07 AC 129 ms
57,648 KB
testcase_08 AC 126 ms
57,744 KB
testcase_09 AC 126 ms
57,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		double time = a / 100.0 * 60.0 + 10 * 60.0;
		int minute = (int)(time % 60);
		int hour = (int)((time / 60) % 24);
		System.out.printf("%02d:%02d\n", hour, minute);

	}

}
0