1 solutions
-
0
C++ :
#include<iostream> using namespace std; int main() { int i=0; float x; for (;i<=100;i+=1) { x=x+i*i; } cout<<x<<endl; return 0; }Pascal :
var a,b,s:longint; begin s:=0; begin for b:=1 to 100 do s:=b*b+s; end; writeln(s); end.Python :
# coding=utf-8 results = 0 for i in range(1, 101): results = results + i**2 print(results)
- 1
Information
- ID
- 16255
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By