Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
91683 张永良 斐波那契数列 C++ Time Limit Exceeded 1000 MS 260 KB 160 2024-09-22 12:03:01

Tests(0/11):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n=1,sum=0; while(n++){ sum=sum+n; if(sum==1000){ cout<<n; } } return 0; }