結果

問題 No.651 E869120 and Driving
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-13 14:48:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 227 ms / 1,000 ms
コード長 424 bytes
コンパイル時間 4,087 ms
コンパイル使用メモリ 75,020 KB
実行使用メモリ 58,412 KB
最終ジャッジ日時 2023-10-22 08:04:59
合計ジャッジ時間 6,457 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 217 ms
58,252 KB
testcase_01 AC 216 ms
58,180 KB
testcase_02 AC 211 ms
58,412 KB
testcase_03 AC 209 ms
58,188 KB
testcase_04 AC 220 ms
58,132 KB
testcase_05 AC 215 ms
58,276 KB
testcase_06 AC 215 ms
58,204 KB
testcase_07 AC 227 ms
58,260 KB
testcase_08 AC 213 ms
58,072 KB
testcase_09 AC 226 ms
58,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.text.SimpleDateFormat;
import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		Calendar cl = Calendar.getInstance();
		cl.set(Calendar.HOUR_OF_DAY, 10);
		cl.set(Calendar.MINUTE, 0);
		cl.add(Calendar.MINUTE, sc.nextInt()*60/100);
		SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
		System.out.println(sdf.format(cl.getTime()));
		
	}
}
0