結果

問題 No.1223 I hate Golf
ユーザー takutakutakutaku
提出日時 2020-10-05 14:19:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 573 bytes
コンパイル時間 3,029 ms
コンパイル使用メモリ 83,336 KB
実行使用メモリ 41,396 KB
最終ジャッジ日時 2024-07-19 20:29:31
合計ジャッジ時間 5,577 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
39,988 KB
testcase_01 AC 114 ms
41,104 KB
testcase_02 AC 103 ms
40,020 KB
testcase_03 WA -
testcase_04 AC 108 ms
39,988 KB
testcase_05 WA -
testcase_06 AC 129 ms
41,396 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 122 ms
40,956 KB
testcase_10 AC 103 ms
39,800 KB
testcase_11 AC 102 ms
40,024 KB
testcase_12 AC 113 ms
41,144 KB
testcase_13 AC 115 ms
41,212 KB
testcase_14 AC 101 ms
39,680 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