看着大佬们各现神通,再看自己打表。
查看原帖
看着大佬们各现神通,再看自己打表。
1283023
liumoumou_haha楼主2024/12/8 20:32
#include<bits/stdc++.h>
using namespace std;
int a[100] = {0,11,13,17,31,37,71,73,79,97};
int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0); cout.tie(0);
	int x,y;
	cin >> x >> y;
	for(int i=1; i<=12; i++)
	{
		if(a[i] <= y && a[i] >= x)
		{
			cout << a[i] << endl;
		} 
	}	
	return 0;
}
2024/12/8 20:32
加载中...