結果

問題 No.525 二度寝の季節
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2017-06-10 02:07:14
言語 Java19
(openjdk 21)
結果
AC  
実行時間 232 ms / 1,000 ms
コード長 701 bytes
コンパイル時間 2,177 ms
コンパイル使用メモリ 74,820 KB
実行使用メモリ 59,820 KB
最終ジャッジ日時 2023-10-24 04:54:24
合計ジャッジ時間 11,388 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 226 ms
59,464 KB
testcase_01 AC 224 ms
59,444 KB
testcase_02 AC 227 ms
59,576 KB
testcase_03 AC 224 ms
59,544 KB
testcase_04 AC 228 ms
59,696 KB
testcase_05 AC 224 ms
59,224 KB
testcase_06 AC 225 ms
59,612 KB
testcase_07 AC 225 ms
59,208 KB
testcase_08 AC 204 ms
56,508 KB
testcase_09 AC 224 ms
59,624 KB
testcase_10 AC 227 ms
59,688 KB
testcase_11 AC 226 ms
59,416 KB
testcase_12 AC 227 ms
59,608 KB
testcase_13 AC 221 ms
59,420 KB
testcase_14 AC 224 ms
59,264 KB
testcase_15 AC 221 ms
59,432 KB
testcase_16 AC 220 ms
59,484 KB
testcase_17 AC 205 ms
58,740 KB
testcase_18 AC 220 ms
59,400 KB
testcase_19 AC 223 ms
59,452 KB
testcase_20 AC 221 ms
59,252 KB
testcase_21 AC 224 ms
59,500 KB
testcase_22 AC 221 ms
59,396 KB
testcase_23 AC 221 ms
59,208 KB
testcase_24 AC 203 ms
58,584 KB
testcase_25 AC 219 ms
59,416 KB
testcase_26 AC 220 ms
59,536 KB
testcase_27 AC 221 ms
59,264 KB
testcase_28 AC 232 ms
59,820 KB
testcase_29 AC 223 ms
59,520 KB
testcase_30 AC 221 ms
59,500 KB
testcase_31 AC 219 ms
59,512 KB
testcase_32 AC 222 ms
59,444 KB
testcase_33 AC 221 ms
59,372 KB
testcase_34 AC 212 ms
59,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        System.out.println(solve(S));
    }
    static int p(String S){
        return Integer.parseInt(S);
    }
    static long second(String S){
        String [] arr = S.split(":");
        int hour = p(arr[0])-9;
        int min = p(arr[1]);
        int t = (hour*60+min)*60*1000;
        return t;
    }
    static String solve(String S){
        long now = second(S);
        long after = now + 300000;
        Date d = new Date();
        d.setTime(after);
        String T = d.toString();
        return T.substring(11,16);
    }
}
0