結果
問題 |
No.308 素数は通れません
|
ユーザー |
![]() |
提出日時 | 2020-10-15 17:54:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 897 bytes |
コンパイル時間 | 1,543 ms |
コンパイル使用メモリ | 166,432 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-20 19:50:32 |
合計ジャッジ時間 | 4,210 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 96 WA * 11 |
ソースコード
/** * @FileName a.cpp * @Author kanpurin * @Created 2020.10.15 17:54:41 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { string s;cin >> s; if (s == "4") { puts("3"); } else if (s == "6") { cout << 5 << endl; } else if (s == "8" || s == "9" || s == "10" || s == "15" || s == "16" || s == "22") { cout << 7 << endl; } else if (s == "12") { cout << 11 << endl; } else if (s == "14") { cout << 13 << endl; } else if (s == "20") { cout << 19 << endl; } else if (s == "21") { cout << 20 << endl; } else if (s == "22") { cout << 21 << endl; } else if (s == "24") { cout << 23 << endl; } else if (s == "25") { cout << 24 << endl; } else { cout << 8 << endl; } return 0; }