Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75615 sh25_shenpy 大等于n的最小完全平方数 C++ 通过 0 MS 252 KB 206 2025-12-08 16:55:22

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n; double s; cin>>n; for (int i=1;i<=n;i++){ if (i*i==n){ cout<<n; return 0; } } s=floor(sqrt(n))+1; cout<<s*s; return 0;}


测评信息: