結果

問題 No.2050 Speed
ユーザー tentententen
提出日時 2022-08-22 11:24:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 1,133 bytes
コンパイル時間 2,075 ms
コンパイル使用メモリ 74,688 KB
実行使用メモリ 52,384 KB
最終ジャッジ日時 2024-04-18 13:20:37
合計ジャッジ時間 3,455 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
50,268 KB
testcase_01 AC 50 ms
50,344 KB
testcase_02 AC 52 ms
50,400 KB
testcase_03 AC 51 ms
50,384 KB
testcase_04 AC 51 ms
50,404 KB
testcase_05 AC 51 ms
50,060 KB
testcase_06 AC 53 ms
50,276 KB
testcase_07 AC 52 ms
50,148 KB
testcase_08 AC 52 ms
50,272 KB
testcase_09 AC 52 ms
52,384 KB
testcase_10 AC 51 ms
50,304 KB
testcase_11 AC 51 ms
50,400 KB
testcase_12 AC 48 ms
50,312 KB
testcase_13 AC 50 ms
50,172 KB
testcase_14 AC 52 ms
50,312 KB
testcase_15 AC 53 ms
50,520 KB
testcase_16 AC 51 ms
50,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner();
        long a = sc.nextLong() * 1000;
        long b = sc.nextLong() * 3600;
        if (a > b) {
            System.out.println("KoD");
        } else if (a == b) {
            System.out.println("same");
        } else {
            System.out.println("blackyuki");
        }
    }
}

class Scanner {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer("");
    
    public Scanner() throws Exception {
        
    }
    
    public int nextInt() throws Exception {
        return Integer.parseInt(next());
    }
    
    public long nextLong() throws Exception {
        return Long.parseLong(next());
    }
    
    public double nextDouble() throws Exception {
        return Double.parseDouble(next());
    }
    
    public String next() throws Exception {
        while (!st.hasMoreTokens()) {
            st = new StringTokenizer(br.readLine());
        }
        return st.nextToken();
    }
}
0