sum of square numbers

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Sampleinput is natural number n.
Print the sum of the square numbers form 1 to n.

1^2 + 2^2 + 3^2 + ... + n^2

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

7

Sample output:

140

Sample input:_

1
100
200

Sample output:

1
338350
2686700

Sample input:_

191
197
139
141
91
98
136
164
108
71
19
99
149
11
7
92
10
178
1
75
150
116
122
179
73
14
154
50
130
132
184
166
80
18
172
161
100
70
111
57
81
190
84
182
23
152
188
135
196
174
140
170
36
2
74
56
101
85
198
131
46
65
114
94
88
4
68
189
192
58
32
177
112
176
158
43
40
160
118
117
52
106
3
89
162
199
194
51
37
115
47
121
27
49
148
5
62
173
30
35
93
169
156
147
16
44
163
119
129
102
24
142
53
127
146
137
153
167
15
48
76
82
39
83
64
165
180
79
175
105
107
69
159
72
25
6
29
113
186
28
133
63
109
195
144
138
151
168
128
200
134
42
67
31
9
22
41
97
120
124
21
55
33
110
20
45
12
17
95
193
34
38
13
183
157
143
61
96
54
86
103
123
8
171
187
145
185
87
126
181
60
125
66
155
104
26
59
90
78
77

Sample output:

2340896
2567895
904890
944371
255346
318549
847756
1483790
425754
121836
2470
328350
1113775
506
140
263810
385
1895789
1
143450
1136275
527046
612745
1927830
132349
1015
1229305
42925
740805
775390
2093460
1538571
173880
2109
1710970
1404081
338350
116795
462056
63365
180441
2304415
201110
2026115
4324
1182180
2232594
829260
2529086
1771175
924490
1652145
16206
5
137825
60116
348551
208335
2607099
757966
33511
93665
500365
281295
231044
30
107134
2268315
2377760
66729
11440
1864105
474600
1832776
1327279
27434
22140
1378160
554659
540735
48230
402641
14
238965
1430325
2646700
2452645
45526
17575
513590
35720
597861
6930
40425
1091574
55
81375
1740899
9455
14910
272459
1623245
1277666
1069670
1496
29370
1456894
568820
723905
358955
4900
964535
51039
690880
1048061
866525
1205589
1566460
1240
38024
149226
187165
20540
194054
89440
1511015
1960230
167480
1801800
391405
414090
111895
1352560
127020
5525
91
8555
487369
2162281
7714
793079
85344
437635
2490670
1005720
885569
1159076
1594684
707264
2686700
811035
25585
102510
10416
285
3795
23821
308945
583220
643250
3311
56980
12529
449735
2870
31395
650
1785
290320
2415009
13685
19019
819
2059604
1302315
984984
77531
299536
53955
215731
369564
627874
204
1681386
2197250
1026745
2127685
223300
674751
1992991
73810
658875
98021
1253330
380380
6201
70210
247065
161239
155155

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid310.12852008/07/31 22:16:590B / 21B / 9B
2flagitious310.15952008/07/31 22:35:030B / 18B / 13B
3yowa310.15062008/08/01 01:57:460B / 18B / 13B
4kurimura310.18032008/08/02 06:04:450B / 18B / 13B
5niha310.17032008/08/03 06:55:440B / 20B / 10B
6leonid (alt)310.19442008/08/03 07:38:100B / 18B / 13B
7ksk310.53132008/08/06 09:36:040B / 15B / 16B
8ozy4dm310.16622008/08/07 13:43:200B / 18B / 13B
9eban320.09072008/08/02 13:30:550B / 18B / 13B
10murky-satyr320.20112008/08/02 17:30:010B / 18B / 13B
11shinh330.18912008/08/01 02:07:530B / 20B / 12B
12kt3k350.13852008/07/31 21:04:380B / 15B / 16B
13kaki370.14832008/08/01 22:39:580B / 17B / 16B
14tabasa460.33982008/08/01 07:42:271B / ?B / ?B
15@tttttanaka310.06332012/03/31 22:14:040B / 18B / 13B

Perl _

RankUserSizeTimeDateStatistics
1ySas290.05082008/08/02 09:28:490B / 8B / 19B
2leonid290.04002008/08/07 14:50:190B / 8B / 19B
3shinh300.09642008/08/01 02:16:140B / 9B / 19B
4Terje K300.04722008/08/06 23:10:550B / 9B / 19B
5eban310.05342008/08/01 00:42:550B / 11B / 20B
6Mithran310.12042008/08/01 18:02:470B / 7B / 22B
7kurimura310.04752008/08/02 07:40:070B / 11B / 20B
8ozy4dm310.28852008/08/02 17:20:580B / 11B / 20B

Python _

RankUserSizeTimeDateStatistics
1kt3k360.23782008/07/31 19:17:550B / 22B / 13B
2hirose360.14322008/08/07 17:45:150B / 22B / 13B
3Defenestrator370.16802008/08/01 17:05:090B / 22B / 14B
4Levi Self380.26332008/08/03 10:30:430B / 18B / 19B
5EPAstor410.17572008/08/02 09:33:590B / 24B / 15B
6lolz640.17332008/08/07 06:53:230B / 45B / 16B
7hero360.09792016/11/22 04:10:050B / ?B / ?B
8Vim Lover410.11562016/07/13 06:36:120B / ?B / ?B
9_420.09462016/07/13 06:28:580B / ?B / ?B
10ftdbb49510.14972009/07/27 10:10:380B / ?B / ?B
11ch3ka510.11592010/12/12 01:57:420B / 31B / 14B

PHP _

RankUserSizeTimeDateStatistics
1murky-satyr510.39962008/08/04 02:49:470B / 23B / 27B
2murky-satyr500.43942008/08/07 23:56:360B / 23B / 26B
3_760.12032012/09/25 22:17:420B / ?B / ?B

Scheme _

RankUserSizeTimeDateStatistics
1murky-satyr470.11642008/08/01 11:35:250B / 24B / 18B
2kaki550.21322008/08/01 22:57:110B / 31B / 19B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima540.46332008/08/03 13:11:340B / 26B / 24B
2pooq560.50462008/08/03 22:22:410B / 26B / 24B

Arc _

RankUserSizeTimeDateStatistics
1murky-satyr3711.06072009/10/08 08:05:470B / 21B / 13B
2pooq5310.70032009/10/06 08:18:430B / 31B / 18B

Clojure _

RankUserSizeTimeDateStatistics
1uochan535.50802010/11/23 17:20:220B / ?B / ?B

Io _

RankUserSizeTimeDateStatistics
1murky-satyr702.54202008/08/02 22:32:570B / 50B / 16B
251b732.72342008/08/02 21:04:210B / 53B / 17B
3pooq752.60932008/07/31 23:51:140B / 55B / 17B

JavaScript _

RankUserSizeTimeDateStatistics
1yowa390.06012008/08/01 02:03:150B / 22B / 17B
2murky-satyr390.11182008/08/01 11:31:590B / 22B / 17B
3nn390.31692008/08/02 11:31:150B / 22B / 17B

Lua _

RankUserSizeTimeDateStatistics
1pooq470.16052008/08/02 19:59:550B / 31B / 12B
2murky-satyr460.38882008/08/07 23:31:380B / 31B / 13B

Tcl _

RankUserSizeTimeDateStatistics
1murky-satyr540.41832008/08/04 01:20:570B / 28B / 20B
2murky-satyr530.43952008/08/07 23:49:520B / 28B / 19B

Xtal _

RankUserSizeTimeDateStatistics
1murky-satyr550.18392008/08/02 17:27:210B / 28B / 25B
2pooq590.27992008/08/01 23:19:230B / 30B / 27B

Icon _

RankUserSizeTimeDateStatistics
1teebee610.04472012/04/02 00:53:330B / 37B / 21B
2pooq720.05502012/04/02 00:39:480B / 47B / 20B

PARI/GP _

RankUserSizeTimeDateStatistics
1pooq340.13132012/03/25 19:48:320B / 23B / 11B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr591.11432008/08/04 00:38:130B / 38B / 19B

Prolog _

RankUserSizeTimeDateStatistics
1teebee(pooq)490.24442012/03/05 00:18:430B / 23B / 25B
2pooq530.24012012/03/04 21:44:070B / 25B / 27B

Forth _

RankUserSizeTimeDateStatistics
151b910.25952008/07/31 20:21:540B / 57B / 14B
251b890.05152009/06/07 04:50:410B / 55B / 14B

BASIC _

RankUserSizeTimeDateStatistics
1pooq410.41652008/08/02 19:34:380B / 26B / 11B
2*yuko*340.23512010/05/05 14:38:410B / 20B / 14B

Erlang _

RankUserSizeTimeDateStatistics
151b1171.18802008/07/31 20:16:070B / 57B / 56B

J _

RankUserSizeTimeDateStatistics
1pooq300.85312008/08/02 19:20:280B / 13B / 15B
2I., S.250.12142011/10/24 06:59:220B / 11B / 13B
3pooq290.39972009/05/10 12:12:150B / 12B / 15B
4medialuna420.08132014/08/31 21:14:510B / 12B / 28B

K _

RankUserSizeTimeDateStatistics
1teebee210.03792012/07/02 10:25:390B / 5B / 16B

Mind _

RankUserSizeTimeDateStatistics
1pooq1030.13202008/08/02 04:53:1759B / 14B / 5B

C _

RankUserSizeTimeDateStatistics
1kurimura600.05862008/07/31 19:41:310B / 30B / 30B
251b600.04492008/07/31 20:02:090B / 28B / 32B
3yowa600.04512008/08/01 02:00:360B / 28B / 32B
4ozy4dm600.05312008/08/02 10:59:410B / 28B / 32B
5pooh600.04742008/08/05 16:44:440B / 28B / 32B
6sky_way650.04452008/08/02 09:58:250B / 31B / 34B
7inaniwa600.05032009/10/28 08:47:460B / 28B / 32B
8Debanjan640.00182010/08/10 00:46:290B / ?B / ?B
9shally720.03202015/10/08 04:24:290B / ?B / ?B
10isshiki800.08512008/09/01 01:56:140B / 41B / 39B

C++ _

RankUserSizeTimeDateStatistics
1kurimura680.10552008/07/31 19:54:390B / 41B / 25B
2ozy4dm680.08342008/08/02 10:59:030B / 39B / 27B

D _

RankUserSizeTimeDateStatistics
1kurimura800.03352008/07/31 19:44:060B / 48B / 29B
251b800.05382008/07/31 20:03:390B / 48B / 29B
3komono820.12162008/08/03 14:13:350B / 43B / 36B

OCaml _

RankUserSizeTimeDateStatistics
1ksk710.26382009/04/25 19:59:070B / 36B / 33B
2pooq720.18552009/04/24 06:17:080B / 46B / 21B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa450.13242008/07/31 21:46:110B / ?B / ?B
2moriA450.07582008/07/31 22:21:010B / 29B / 15B
3test480.18612008/08/01 12:11:540B / 29B / 18B
4peryaudo460.03952013/12/03 22:04:210B / 28B / 17B

Java _

RankUserSizeTimeDateStatistics
1teebee1380.48122010/11/07 08:30:580B / ?B / ?B
2rings2441.54532008/12/07 05:07:391B / ?B / ?B

Pascal _

RankUserSizeTimeDateStatistics
1uru760.06372008/12/07 21:31:410B / ?B / ?B
2mugi666970.10262008/08/08 11:43:450B / ?B / ?B

Fortran _

RankUserSizeTimeDateStatistics
1pooq610.06792008/08/01 16:09:020B / 34B / 22B
2*yuko*470.05482011/11/21 19:59:430B / 26B / 20B
3pooq500.03942008/12/09 07:06:340B / 29B / 17B

C# _

RankUserSizeTimeDateStatistics
1ASAQ1200.81592008/09/17 23:24:110B / ?B / ?B

Maxima _

RankUserSizeTimeDateStatistics
1pooq540.80112011/03/16 23:58:420B / 29B / 24B

Octave _

RankUserSizeTimeDateStatistics
1inaniwa460.75522011/10/22 20:40:000B / 21B / 25B

REBOL _

RankUserSizeTimeDateStatistics
1clock570.06972012/07/18 18:13:220B / 30B / 17B
2leonid580.24352009/02/14 00:59:030B / 30B / 17B
3pooq630.22472009/02/14 00:45:510B / 32B / 18B
4oofoe730.23262009/02/11 21:07:460B / 44B / 14B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee380.35082011/12/15 08:40:250B / 23B / 14B
2teebee(pooq)450.35892011/12/13 15:25:130B / 28B / 16B
3pooq463.07472009/04/27 17:27:050B / 27B / 18B
4chocobi473.48922009/04/04 02:13:030B / 26B / 20B

AWK _

RankUserSizeTimeDateStatistics
1nn180.03182008/08/02 11:25:550B / 5B / 13B
2kt3k190.06342008/08/02 03:34:360B / 6B / 13B
3eban210.04802008/07/31 23:05:480B / 7B / 14B
4tabasa360.08222008/08/02 12:57:580B / ?B / ?B
5waldner310.18312008/10/20 03:37:270B / ?B / ?B

sed _

RankUserSizeTimeDateStatistics
1tails (demo)6420.81772016/01/15 20:26:060B / 302B / 203B

jq _

RankUserSizeTimeDateStatistics
1eban360.03332014/12/24 00:00:210B / 12B / 23B

Bash _

RankUserSizeTimeDateStatistics
1eban420.55462008/08/05 13:48:000B / 25B / 11B
2tails (yamaya)200.03982016/01/15 18:32:120B / 12B / 7B
3yamaya210.04802010/09/11 18:30:060B / 13B / 7B

dc _

RankUserSizeTimeDateStatistics
1tails230.03412016/01/15 18:30:120B / 13B / 10B

m4 _

RankUserSizeTimeDateStatistics
151b1030.10962008/07/31 20:44:230B / 52B / 49B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)331.18932008/07/31 20:08:1311B / 16B / 6B
2yshl561.30302008/07/31 20:07:480B / 40B / 6B

R _

RankUserSizeTimeDateStatistics
1pooq433.73162008/08/02 19:38:480B / 24B / 18B
251b433.95152008/08/02 21:14:580B / 24B / 19B

Whitespace _

RankUserSizeTimeDateStatistics
1yowa880.47642008/08/04 03:42:260B / 0B / 0B
2%20820.05362016/11/22 04:58:010B / 0B / 0B

Befunge _

RankUserSizeTimeDateStatistics
1yowa210.15152008/08/01 17:27:190B / 5B / 16B
2kaki230.13302008/08/01 23:39:440B / 4B / 19B
3@tttttanaka210.05702012/03/31 22:35:410B / 5B / 16B

GolfScript _

RankUserSizeTimeDateStatistics
1kt3k141.02232008/07/31 19:10:190B / 1B / 13B
251b141.02502008/07/31 19:16:190B / 1B / 13B
3flagitious140.92772008/07/31 21:51:290B / 1B / 13B
4irori140.96192008/07/31 22:55:020B / 1B / 13B
5leonid140.99042008/08/05 23:25:050B / 1B / 13B
6whio140.54682016/01/15 04:18:430B / 2B / 12B
7%20140.56152016/11/22 05:06:350B / 1B / 13B

gs2 _

RankUserSizeTimeDateStatistics
1whio60.40052016/01/15 04:22:581B / 3B / 2B

FlogScript _

RankUserSizeTimeDateStatistics
1zzo38130.31862010/03/15 13:11:570B / ?B / ?B

Burlesque _

RankUserSizeTimeDateStatistics
1mroman120.45812014/09/24 17:06:120B / ?B / ?B
2Hendrik130.19642014/05/18 07:20:580B / 7B / 6B

Lazy-K _

RankUserSizeTimeDateStatistics
1irori19910.48112008/08/05 23:24:130B / 1017B / 974B

Vim _

RankUserSizeTimeDateStatistics
1nn431.14112009/10/31 21:06:442B / 22B / 18B

goruby _

RankUserSizeTimeDateStatistics
1leonid230.58912008/07/31 22:38:140B / 12B / 10B
2murky-satyr250.63162008/08/02 17:12:350B / 11B / 13B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr547.82962008/08/02 17:05:430B / 36B / 18B
2nn557.73232008/08/02 20:19:080B / 37B / 17B

Logo _

RankUserSizeTimeDateStatistics
1teebee420.10212011/06/06 10:11:120B / 23B / 17B
2pooq570.02282011/03/20 07:36:070B / 27B / 25B

Language Ranking_

RankLangUserSizeScore
1gs2whio610000
2Burlesquemroman125000
3FlogScriptzzo38134615
4GolfScriptkt3k144285
5AWKnn183333
6Bashtails (yamaya)203000
7Befungeyowa212857
8Kteebee212857
9gorubyleonid232608
10dctails232608
11JI., S.252400
12PerlySas292068
13Rubyleonid311935
14Postscriptyshl(bin)331818
15BASIC*yuko*341764
16PARI/GPpooq341764
17Pythonkt3k361666
18jqeban361666
19Arcmurky-satyr371621
20Asymptoteteebee381578
21JavaScriptyowa391538
22Logoteebee421428
23Rpooq431395
24Vimnn431395
25Haskellnotogawa451333
26Luamurky-satyr461304
27Octaveinaniwa461304
28Schememurky-satyr471276
29Fortran*yuko*471276
30Prologteebee(pooq)491224
31PHPmurky-satyr501200
32Tclmurky-satyr531132
33Clojureuochan531132
34Groovymurky-satyr541111
35Common LISPkozima541111
36Maximapooq541111
37Xtalmurky-satyr551090
38REBOLclock571052
39Smalltalkmurky-satyr591016
40Ckurimura601000
41Iconteebee61983
42C++kurimura68882
43Iomurky-satyr70857
44OCamlksk71845
45Pascaluru76789
46Dkurimura80750
47Whitespace%2082731
48Forth51b89674
49m451b103582
50Mindpooq103582
51Erlang51b117512
52C#ASAQ120500
53Javateebee138434
54sedtails (demo)64293
55Lazy-Kirori199130

return top