結果
問題 |
No.337 P versus NP
|
ユーザー |
|
提出日時 | 2025-09-23 10:59:28 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 357 bytes |
コンパイル時間 | 2,458 ms |
コンパイル使用メモリ | 275,136 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-23 11:00:47 |
合計ジャッジ時間 | 3,404 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
#include <bits/stdc++.h> [[nodiscard]] static inline constexpr const char* solve(const int_fast32_t N, const int_fast32_t P) noexcept { if (P == 0 || N == 1) return "="; else return "!="; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); int_fast32_t N, P; std::cin >> N >> P; std::cout << solve(N, P) << '\n'; return 0; }