結果
| 問題 |
No.532 Possible or Impossible
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-06-23 22:35:38 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 258 bytes |
| コンパイル時間 | 590 ms |
| コンパイル使用メモリ | 67,200 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-02 14:45:23 |
| 合計ジャッジ時間 | 1,389 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
bool solve() {
int n, m;
std::cin >> n >> m;
if (n == 1) return m == 1;
if (n == 2) return m != 0;
return true;
}
int main() {
puts(solve() ? "Possible" : "Impossible");
}