1 条题解
-
0
C :
#include<stdio.h> #include<math.h> int main() {int s=0,n=0; while(s<=1000) {n++;s=s+n;} printf("%d",n); return 0; }
C++ :
#include<iostream> using namespace std; int main() { int n=0,s=0; while(s<=1000) { ++n; s+=n; } cout<<n; return 0; }
Pascal :
PROGRAM AA; BEGIN WRITE('45');END.
- 1
信息
- ID
- 655
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者