結果
問題 | No.308 素数は通れません |
ユーザー |
![]() |
提出日時 | 2015-12-01 09:43:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 269 bytes |
コンパイル時間 | 1,229 ms |
コンパイル使用メモリ | 160,052 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-14 06:41:38 |
合計ジャッジ時間 | 3,588 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 WA * 100 |
ソースコード
#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 5:cout<<3<<endl;break;case 6:cout<<5<<endl;break;default:cout<<7<<endl;break;}return 0;}