提交记录 21354


用户 题目 状态 得分 用时 内存 语言 代码长度
lotus_f test. 自定义测试 Accepted 100 240.023 ms 19568 KB C++14 213 B
提交时间 评测时间
2024-03-01 21:49:55 2024-03-01 21:49:57
#include<bits/stdc++.h>
using namespace std;
int n=5e6,a[5000010];
int main()
{
	for(int i=1; i<=n; ++i) a[i]=i;
	long long sum=0;
	for(int i=1; i<=n; ++i) sum+=lower_bound(a+1,a+n+1,i)-a;
	cout<<sum;
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1240.023 ms19 MB + 112 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2025-07-19 14:27:59 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠