社区讨论
看着大佬们各现神通,再看自己打表。
B3939[GESP样题 四级] 绝对素数参与者 2已保存回复 1
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 1 条
- 当前快照
- 1 份
- 快照标识符
- @m4fl3mom
- 此快照首次捕获于
- 2024/12/08 20:32 去年
- 此快照最后确认于
- 2024/12/08 20:52 去年
CPP
#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;
}
回复
共 1 条回复,欢迎继续交流。
正在加载回复...