| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 330327 | 钟宜辰 | 【C5-1】找数游戏 | C++ | Wrong Answer | 0 | 6 MS | 248 KB | 453 | 2025-07-09 16:55:50 |
#include<bits/stdc++.h> using namespace std; bool ssb(int y){ if(y<=1) return 0; if(y==2) return 1; for(int i=2;i<y;i++){ if(y%i==0) return 0; } return 1; } bool sb(int x){ int a=0,b=0,c=0; a=x/100%10; b=x/10%10; c=x/1%10; if(a==b||a==c||b==c) return 0; if(b<=a+c) return 0; if(ssb(b+c)) return 0; return 1; } int main(){ for(int i=100;i<=999;i++){ if(sb(i)){ cout<<i<<endl; } } return 0; }