Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
40981 | YOYOLEE-李昕颖 | 找素数(蓝桥杯2012决赛第1题) | C++ | 运行超时 | 1000 MS | 228 KB | 256 | 2024-02-18 12:13:00 |
#include<bits/stdc++.h> using namespace std; int main(){ int c=0,k=2,f=0; while(c<100002){ for(int i=2;i<k;i++){ if(k%i==0) f=1; } if(f==0) c++; k++; } cout<<k; return 0; } /* 笔记 大小写差32 0:48 A:65 */