結果

問題 No.1223 I hate Golf
ユーザー takutakutakutaku
提出日時 2020-10-05 14:26:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 508 bytes
コンパイル時間 2,090 ms
コンパイル使用メモリ 71,180 KB
実行使用メモリ 56,452 KB
最終ジャッジ日時 2023-09-27 03:06:20
合計ジャッジ時間 4,828 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,828 KB
testcase_01 AC 125 ms
55,872 KB
testcase_02 AC 125 ms
55,624 KB
testcase_03 AC 121 ms
55,976 KB
testcase_04 AC 125 ms
56,452 KB
testcase_05 AC 124 ms
55,768 KB
testcase_06 AC 124 ms
56,068 KB
testcase_07 AC 125 ms
55,992 KB
testcase_08 AC 126 ms
53,772 KB
testcase_09 AC 124 ms
55,768 KB
testcase_10 AC 124 ms
55,672 KB
testcase_11 AC 123 ms
55,624 KB
testcase_12 AC 122 ms
55,632 KB
testcase_13 AC 125 ms
55,912 KB
testcase_14 AC 123 ms
55,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        Long n = sc.nextLong();
        Long k = sc.nextLong();
        Long t = sc.nextLong();
        
        Long distance = k * t;
        
        if(n < 0) {
            n = -n;
        }
        
        if(distance < n) {
            System.out.println("No");
        }else {
            System.out.println("Yes");
        }
        
    }
}
0