結果

問題 No.308 素数は通れません
ユーザー chocorusk
提出日時 2019-03-31 09:10:10
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 275 bytes
コンパイル時間 612 ms
コンパイル使用メモリ 55,000 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-20 20:47:39
合計ジャッジ時間 3,112 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 92 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
int main()
{
    string n; cin>>n;
	if(n=="4") cout<<3<<endl;
	else if(n=="6") cout<<5<<endl;
	else if(n=="8" || n=="9" || n=="10" || n=="15" || n=="16" || n=="22") cout<<7<<endl;
	else cout<<8<<endl;
    return 0;
}
0