結果

問題 No.308 素数は通れません
ユーザー saytakaPCsaytakaPC
提出日時 2015-12-01 13:23:26
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 601 bytes
コンパイル時間 1,254 ms
コンパイル使用メモリ 158,612 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-14 05:16:17
合計ジャッジ時間 4,087 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 92 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define PB push_back
#define MP make_pair
#define REP(i,n) for (int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define ALL(a) (a).begin(),(a).end()
int INF=1e9;
int MOD=1000000007;
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
double EPS = 1e-10;
int main(){
	string s;
	cin>>s;
	if(s=="1"){
		cout<<1<<endl;
		return 0;
	}
	if(s=="4"){
		cout<<3<<endl;
		return 0;
	}
	if(s=="6"){
		cout<<5<<endl;
		return 0;
	}
	if(s=="8"||s=="9"||s=="10"||s=="15"||s=="16"||s=="22"){
		cout<<7<<endl;
		return 0;
	}
	cout<<8<<endl;
	return 0;
}
0