Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
12215 罗炜翰 aabb C++ 通过 100 1 MS 252 KB 335 2025-07-08 16:31:06

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int a(int x){ int a=1; for(int i=1;i<x;i++){ if(i*i==x){ return 1; a=0; break; } } if(a){ return 0; } } void fun(int q){ if(q/1000==q/100%10&&q/10%10==q%10&&a(q)){ cout<<q; } } int main() { for(int i=1000;i<=9999;i++){ fun(i); } }


测评信息: