結果
| 問題 |
No.532 Possible or Impossible
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-29 19:16:54 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 350 bytes |
| コンパイル時間 | 786 ms |
| コンパイル使用メモリ | 75,252 KB |
| 最終ジャッジ日時 | 2025-01-10 16:16:48 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include <iostream>
#include <set>
std::set<std::pair<int, int>> outs{{1, 0}, {2, 0}};
void solve() {
std::pair<int, int> p;
std::cin >> p.first >> p.second;
std::cout << (outs.count(p) ? "Impossible" : "Possible") << "\n";
}
int main() {
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
solve();
return 0;
}