結果

問題 No.651 E869120 and Driving
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2018-04-14 15:08:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 170 ms / 1,000 ms
コード長 372 bytes
コンパイル時間 2,939 ms
コンパイル使用メモリ 86,656 KB
実行使用メモリ 58,604 KB
最終ジャッジ日時 2023-10-22 07:56:16
合計ジャッジ時間 4,709 ms
ジャッジサーバーID
(参考情報)
judge15 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 167 ms
58,604 KB
testcase_01 AC 170 ms
58,496 KB
testcase_02 AC 164 ms
58,468 KB
testcase_03 AC 163 ms
58,536 KB
testcase_04 AC 164 ms
58,576 KB
testcase_05 AC 163 ms
58,468 KB
testcase_06 AC 163 ms
58,540 KB
testcase_07 AC 162 ms
58,256 KB
testcase_08 AC 166 ms
58,460 KB
testcase_09 AC 167 ms
58,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        System.out.println(solve(n));
    }
    
    static String solve(int n) {
        int hour = 10 + n / 100;
        int min = n % 100 /10 * 6;
        return hour +":" + String.format("%02d",min);
    }
}
0