結果
問題 |
No.8114 Prime Checker+1
|
ユーザー |
|
提出日時 | 2025-03-27 21:51:25 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 3,599 ms |
コンパイル使用メモリ | 272,904 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-27 21:51:31 |
合計ジャッジ時間 | 5,401 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 30 |
ソースコード
#include <bits/stdc++.h> using namespace std; void testcase() { string N; cin >> N; if (N == "2") cout << "0\nYes\n"; if (N[N.size() - 1] % 2 == 1) cout << "1\n"; else cout << "0\n"; cout << "No\n"; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); testcase(); return 0; }