結果

問題 No.651 E869120 and Driving
ユーザー tsunabittsunabit
提出日時 2018-07-22 16:14:37
言語 Java21
(openjdk 21)
結果
AC  
実行時間 184 ms / 1,000 ms
コード長 367 bytes
コンパイル時間 3,796 ms
コンパイル使用メモリ 78,420 KB
実行使用メモリ 58,596 KB
最終ジャッジ日時 2023-10-22 07:59:35
合計ジャッジ時間 6,330 ms
ジャッジサーバーID
(参考情報)
judge9 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 166 ms
58,440 KB
testcase_01 AC 169 ms
58,596 KB
testcase_02 AC 184 ms
58,564 KB
testcase_03 AC 170 ms
58,552 KB
testcase_04 AC 168 ms
58,456 KB
testcase_05 AC 175 ms
58,536 KB
testcase_06 AC 175 ms
58,548 KB
testcase_07 AC 174 ms
58,560 KB
testcase_08 AC 165 ms
58,344 KB
testcase_09 AC 164 ms
58,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
import java.time.*;
import java.time.format.*;

public class No651 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
        int h = 10 + (a / 100);
        int m = (a / 10) % 10 * 6 ;
        System.out.println(h + ":" + (m > 10 ? m : "0"+m));
	}
}
0