結果
問題 | No.308 素数は通れません |
ユーザー |
![]() |
提出日時 | 2020-10-15 17:41:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 477 bytes |
コンパイル時間 | 1,610 ms |
コンパイル使用メモリ | 165,820 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-20 19:50:27 |
合計ジャッジ時間 | 3,959 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 92 WA * 15 |
ソースコード
/** * @FileName a.cpp * @Author kanpurin * @Created 2020.10.15 17:41:03 **/ #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 { cout << 8 << endl; } return 0; }