记录编号 570734 评测结果 AAAAA
题目名称 特殊的质数肋骨 最终得分 100
用户昵称 Gravatarムラサメ 是否通过 通过
代码语言 C++ 运行时间 0.000 s
提交时间 2022-04-14 08:12:24 内存使用 0.00 MiB
显示代码纯文本
#include<bits/stdc++.h>
using namespace std;
int n;
int a[]={2,3,5,7};
int b[]={23,29,31,37,53,59,71,73,79};
int c[]={233,239,293,311,313,317,373,379,593,599,719,733,739,797};
int d[]={2333,2339,2393,2399,2939,3119,3137,3733,3739,3793,3797,5939,7193,7331,7333,7393};
int e[]={23333,23339,23399,23993,29399,31193,31379,37337,37339,37397,59393,59399,71933,73331,73939};
int f[]={233993,239933,293999,373379,373393,593933,593993,719333,739391,739393,739397,739399};
int g[]={2339933,2399333,2939999,3733799,5939333,7393913,7393931,7393933};
int h[]={23399339,29399999,37337999,59393339,73939133};
int main(){
	freopen("sprime.in","r",stdin);
	freopen("sprime.out","w",stdout);
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin>>n;
	if(n==1){
		for(int i=0;i<4;i++){
			cout<<a[i]<<endl;
		}
	}
	if(n==2){
		for(int i=0;i<9;i++){
			cout<<b[i]<<endl;
		}
	}
	if(n==3){
		for(int i=0;i<14;i++){
			cout<<c[i]<<endl;
		}
	}
	if(n==4){
		for(int i=0;i<16;i++){
			cout<<d[i]<<endl;
		}
	}
	if(n==5){
		for(int i=0;i<15;i++){
			cout<<e[i]<<endl;
		}
	}
	if(n==6){
		for(int i=0;i<12;i++){
			cout<<f[i]<<endl;
		}
	}
	if(n==7){
		for(int i=0;i<8;i++){
			cout<<g[i]<<endl;
		}
	}
	if(n==8){
		for(int i=0;i<5;i++){
			cout<<h[i]<<endl;
		}
	}
	return 0;
}