結果

問題 No.532 Possible or Impossible
ユーザー htensaihtensai
提出日時 2019-12-30 19:11:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 344 bytes
コンパイル時間 2,374 ms
コンパイル使用メモリ 73,756 KB
実行使用メモリ 41,292 KB
最終ジャッジ日時 2024-04-26 17:51:58
合計ジャッジ時間 5,899 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
41,036 KB
testcase_01 AC 107 ms
41,024 KB
testcase_02 AC 101 ms
40,232 KB
testcase_03 AC 120 ms
41,192 KB
testcase_04 AC 114 ms
41,140 KB
testcase_05 AC 100 ms
40,020 KB
testcase_06 AC 114 ms
41,004 KB
testcase_07 AC 116 ms
40,180 KB
testcase_08 AC 111 ms
41,224 KB
testcase_09 AC 111 ms
40,952 KB
testcase_10 AC 117 ms
39,844 KB
testcase_11 AC 113 ms
39,884 KB
testcase_12 AC 105 ms
39,916 KB
testcase_13 AC 115 ms
41,152 KB
testcase_14 AC 122 ms
41,112 KB
testcase_15 AC 107 ms
39,912 KB
testcase_16 AC 109 ms
40,784 KB
testcase_17 AC 107 ms
40,392 KB
testcase_18 AC 122 ms
41,292 KB
testcase_19 AC 114 ms
40,296 KB
testcase_20 AC 114 ms
41,276 KB
testcase_21 AC 115 ms
41,004 KB
testcase_22 AC 119 ms
41,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        if (k == 0 && n < 3) {
            System.out.println("Impossible");
       } else {
           System.out.println("Possible");
       }
    }
}
0