結果

問題 No.532 Possible or Impossible
ユーザー GrenacheGrenache
提出日時 2017-09-09 12:46:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 647 bytes
コンパイル時間 3,218 ms
コンパイル使用メモリ 74,504 KB
実行使用メモリ 41,476 KB
最終ジャッジ日時 2024-04-24 23:52:59
合計ジャッジ時間 6,523 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
40,020 KB
testcase_01 AC 99 ms
40,112 KB
testcase_02 AC 96 ms
39,816 KB
testcase_03 AC 101 ms
40,424 KB
testcase_04 AC 110 ms
41,476 KB
testcase_05 AC 100 ms
40,380 KB
testcase_06 AC 114 ms
41,128 KB
testcase_07 AC 111 ms
41,088 KB
testcase_08 AC 104 ms
40,352 KB
testcase_09 AC 108 ms
40,068 KB
testcase_10 AC 121 ms
41,404 KB
testcase_11 AC 117 ms
41,004 KB
testcase_12 AC 114 ms
41,076 KB
testcase_13 AC 115 ms
41,372 KB
testcase_14 AC 117 ms
41,212 KB
testcase_15 AC 98 ms
39,952 KB
testcase_16 AC 110 ms
41,188 KB
testcase_17 AC 114 ms
41,092 KB
testcase_18 AC 121 ms
41,268 KB
testcase_19 AC 112 ms
40,612 KB
testcase_20 AC 102 ms
40,156 KB
testcase_21 AC 114 ms
41,344 KB
testcase_22 AC 107 ms
40,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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


public class Main_yukicoder532 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int n = sc.nextInt();
		int m = sc.nextInt();

		if ((n == 1 && m == 0) || (n == 2 && m == 0)) {
			pr.println("Impossible");
		} else {
			pr.println("Possible");
		}
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0