比赛 期末考试2 评测结果 WWWWWWWWWW
题目名称 数图 最终得分 0
用户昵称 dream 运行时间 0.028 s
代码语言 C++ 内存使用 3.75 MiB
提交时间 2026-02-10 12:26:26
显示代码纯文本
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=505;
ll n;
int main(){
	freopen("grafy.in","r",stdin);
	freopen("grafy.out","w",stdout);
	ios::sync_with_stdio(0);
	cin.tie(0);
	cin>>n;
	cout<<(ll)((sqrt(n)+1)*(sqrt(n)+1));
	return 0;
}