結果

問題 No.651 E869120 and Driving
ユーザー sudo_yumsudo_yum
提出日時 2018-05-25 09:59:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 171 ms / 1,000 ms
コード長 315 bytes
コンパイル時間 3,138 ms
コンパイル使用メモリ 76,444 KB
実行使用メモリ 58,520 KB
最終ジャッジ日時 2023-10-22 07:58:09
合計ジャッジ時間 4,857 ms
ジャッジサーバーID
(参考情報)
judge11 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 163 ms
58,436 KB
testcase_01 AC 163 ms
58,344 KB
testcase_02 AC 171 ms
58,328 KB
testcase_03 AC 164 ms
58,368 KB
testcase_04 AC 165 ms
58,460 KB
testcase_05 AC 163 ms
58,176 KB
testcase_06 AC 164 ms
58,368 KB
testcase_07 AC 163 ms
58,360 KB
testcase_08 AC 166 ms
58,520 KB
testcase_09 AC 165 ms
58,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{

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