結果
問題 | No.308 素数は通れません |
ユーザー |
![]() |
提出日時 | 2015-12-01 23:05:43 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 564 bytes |
コンパイル時間 | 1,231 ms |
コンパイル使用メモリ | 158,804 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-14 06:43:54 |
合計ジャッジ時間 | 3,555 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 94 WA * 13 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){string S;cin>>S;int a=7;if(S.size()<7)a=stoi(S);switch(a){case 4:cout<<3<<endl;break;case 6:cout<<5<<endl;break;case 8:cout<<7<<endl;break;case 9:cout<<7<<endl;break;case 10:cout<<7<<endl;break;case 12:cout<<11<<endl;break;case 14:cout<<13<<endl;break;case 15:cout<<7<<endl;break;case 16:cout<<7<<endl;break;case 22:cout<<7<<endl;break;default:cout<<8<<endl;break;}return 0;}