結果

問題 No.1223 I hate Golf
ユーザー takutakutakutaku
提出日時 2020-10-05 14:19:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 573 bytes
コンパイル時間 4,831 ms
コンパイル使用メモリ 71,104 KB
実行使用メモリ 56,684 KB
最終ジャッジ日時 2023-09-27 03:06:09
合計ジャッジ時間 6,318 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,800 KB
testcase_01 AC 119 ms
56,092 KB
testcase_02 AC 121 ms
56,168 KB
testcase_03 WA -
testcase_04 AC 121 ms
56,328 KB
testcase_05 WA -
testcase_06 AC 156 ms
55,648 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 133 ms
55,620 KB
testcase_10 AC 123 ms
56,008 KB
testcase_11 AC 123 ms
56,684 KB
testcase_12 AC 125 ms
55,832 KB
testcase_13 AC 122 ms
55,664 KB
testcase_14 AC 122 ms
55,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int t = sc.nextInt();
        
        int distance = 0;
        for(int i = 0; i < t; i++) {
            distance += k;
        }
        
        if(n < 0) {
            n = -n;
        }
        
        
        if(distance >= n) {
            System.out.println("Yes");

        }else {
            System.out.println("No");
        }
    }
}
0