結果

問題 No.651 E869120 and Driving
ユーザー GrenacheGrenache
提出日時 2018-03-04 00:12:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 1,000 ms
コード長 594 bytes
コンパイル時間 3,247 ms
コンパイル使用メモリ 74,828 KB
実行使用メモリ 57,652 KB
最終ジャッジ日時 2023-10-22 07:53:28
合計ジャッジ時間 5,203 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
57,368 KB
testcase_01 AC 132 ms
57,652 KB
testcase_02 AC 133 ms
57,640 KB
testcase_03 AC 136 ms
57,640 KB
testcase_04 AC 123 ms
55,512 KB
testcase_05 AC 130 ms
57,652 KB
testcase_06 AC 128 ms
57,336 KB
testcase_07 AC 127 ms
57,428 KB
testcase_08 AC 128 ms
57,476 KB
testcase_09 AC 118 ms
56,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder651 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int a = sc.nextInt();

		int m = a / 10 * 6;
		int h = m / 60;

		pr.printf("%02d:%02d\n", (10 + h) % 24, m % 60);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0