SQR

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

Given M,N,find the number of squares in a M X N grid.

Options

exec is denied

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

Sample input:_

6 3
10 3
20 20
19 14
14 9
20 20
9 9
19 4
18 18
17 13
19 19
16 16
3 1
4 2
13 3
14 4
17 13
17 12
18 9
13 13
18 2

Sample output:

32
56
2870
1540
510
2870
285
180
2109
1183
2470
1496
3
11
74
130
1183
1040
690
819
53

Sample input:_

19 10
11 7
17 9
19 19
19 2
20 10
13 3
19 16
20 16
16 16
18 14
20 19
14 11
16 16
11 11
16 11
14 4
17 4
20 14
18 17
20 19
15 13
18 9
20 20
17 14
9 2
14 13
18 11
4 6
6 4

Sample output:

880
252
645
2470
56
935
74
1904
2040
1496
1435
2660
704
1496
506
836
130
160
1645
1938
2660
1001
690
2870
1330
26
910
968
50
50

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1uru540.03102011/05/22 23:13:430B / 27B / 23B
2leonid600.03872011/05/16 10:38:570B / 31B / 26B
3kaki620.05572011/05/21 06:02:400B / 33B / 24B
4Cnry720.04452011/05/23 00:46:240B / ?B / ?B
5bk1e750.04732011/05/16 05:28:100B / 40B / 29B
6_550.03622011/05/23 23:33:450B / ?B / ?B
7moti630.04382011/05/23 23:56:420B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1tybalt89420.05152011/05/16 06:58:160B / ?B / ?B
2teebee430.02142011/05/16 04:38:380B / 12B / 29B
3tails430.01492011/05/16 19:52:300B / 12B / 29B
4Hem500.01232011/05/22 19:11:011B / 19B / 28B
5ninjalj580.01982011/05/18 21:32:250B / 16B / 40B
6airith770.02352011/06/03 17:43:580B / ?B / ?B
7a2250.02512011/06/03 17:13:5910B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1twobit680.05192011/05/17 07:03:400B / 41B / 26B
2hallvabo680.05252011/05/18 06:27:470B / 41B / 26B
3Sven680.05902011/05/18 22:17:490B / 40B / 27B
4recursive830.05272011/05/18 05:02:110B / 49B / 25B
5bk1e840.05472011/05/16 06:00:340B / 49B / 27B

Scheme _

RankUserSizeTimeDateStatistics
1kaki820.08862011/05/17 06:16:250B / 35B / 38B
2dico_leque820.09392011/05/20 06:53:340B / 35B / 38B
3kaki770.10282013/03/25 06:41:010B / 30B / 42B
4kaki(nn)800.13172011/05/23 11:51:460B / 35B / 37B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima820.15642011/05/16 21:37:140B / 46B / 26B

Io _

RankUserSizeTimeDateStatistics
1pooq1060.43872011/05/21 00:37:130B / 75B / 24B

JavaScript _

RankUserSizeTimeDateStatistics
1nn640.02182011/05/17 09:32:470B / 32B / 31B
2kaki650.02902011/05/17 07:52:020B / 34B / 30B
3E_1090.03162011/05/23 02:13:200B / ?B / ?B
4t640.06642011/06/26 19:34:360B / ?B / ?B

Lua _

RankUserSizeTimeDateStatistics
1pooq750.00912011/05/21 12:04:450B / 42B / 28B
2twobit800.01352011/05/17 09:47:230B / 45B / 29B

Tcl _

RankUserSizeTimeDateStatistics
1pooq720.03262011/05/21 00:29:360B / 38B / 27B
2bk1e1210.05082011/05/16 14:50:310B / 63B / 31B
3pooq(nn)680.24362011/05/23 06:04:010B / 35B / 26B

Xtal _

RankUserSizeTimeDateStatistics
1pooq970.36142011/05/21 08:58:230B / 49B / 46B
2teebee910.06352011/12/30 23:36:510B / 46B / 42B
3teebee(pooq)940.05332011/12/30 23:35:290B / 48B / 44B

REXX _

RankUserSizeTimeDateStatistics
1teebee470.03502012/04/18 02:53:090B / 26B / 15B
2pooq590.04512012/04/18 01:08:550B / 33B / 18B

Prolog _

RankUserSizeTimeDateStatistics
1pooq1040.11012011/05/22 22:48:420B / 48B / 53B
2pooq860.08792012/03/05 11:38:430B / 39B / 44B

BASIC _

RankUserSizeTimeDateStatistics
1*yuko*580.01492011/05/21 17:08:260B / 29B / 28B
2pooq820.00902011/05/20 23:42:570B / 44B / 34B

J _

RankUserSizeTimeDateStatistics
1I., S.370.08482011/05/16 07:33:070B / 16B / 20B
2pooq380.08992011/05/21 05:00:420B / 11B / 25B
3I., S.(alt,ad hoc)350.06602011/08/28 21:45:410B / 11B / 24B
4I., S.(alt)370.07502011/08/28 19:51:130B / 16B / 20B

A+ _

RankUserSizeTimeDateStatistics
1twobit710.11402011/05/19 22:41:4019B / 31B / 21B

C _

RankUserSizeTimeDateStatistics
1nn740.02382011/05/17 23:20:510B / 34B / 40B
2hinoe750.02072011/05/17 22:34:510B / 33B / 42B
3inaniwa780.02912011/05/17 21:24:470B / 34B / 44B
4kou790.02712011/05/17 13:04:300B / 35B / 44B
5chocobi800.02412011/05/19 22:11:070B / 38B / 42B
6Agano800.02442011/05/20 01:53:500B / 38B / 42B
7koi800.02182011/05/21 02:05:480B / 38B / 42B
8not800.02512011/05/22 20:48:170B / 38B / 42B
9bk1e830.02142011/05/16 05:53:190B / 38B / 44B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai1060.26282011/05/16 23:45:220B / 62B / 33B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa750.03042011/05/21 16:12:190B / 47B / 26B
2kaki780.03062011/05/21 06:13:150B / 47B / 27B
3Lost_dog820.03232011/05/21 14:38:410B / 48B / 30B

Java _

RankUserSizeTimeDateStatistics
1cactusman2740.27322011/05/23 01:43:280B / 170B / 96B
2teebee(nn)1480.37682011/05/23 06:35:260B / 94B / 48B
3teebee1520.37642011/05/23 03:57:070B / 94B / 52B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*890.02562011/05/21 16:50:040B / 59B / 25B
2uru890.02592011/05/22 22:15:290B / 59B / 25B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*610.02732011/05/19 09:45:230B / 33B / 27B
2sha700.02272011/05/20 00:47:270B / 38B / 31B
3*yuko*590.02712011/12/03 01:36:530B / 31B / 27B

COBOL _

RankUserSizeTimeDateStatistics
1*yuko*2740.03092011/05/21 16:52:480B / 190B / 44B

Maxima _

RankUserSizeTimeDateStatistics
1pooq790.28142011/05/16 15:22:510B / 40B / 38B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee(pooq)620.28082011/12/21 20:54:420B / 36B / 25B
2pooq630.28272011/12/21 18:05:220B / 37B / 25B

AWK _

RankUserSizeTimeDateStatistics
1pooq350.02292011/05/21 17:44:530B / 13B / 22B
2teebee290.00182011/06/19 06:20:520B / 9B / 19B
3pooq(nn)310.00622011/05/23 07:36:170B / 11B / 20B

Bash _

RankUserSizeTimeDateStatistics
1bk1e880.10922011/05/16 15:26:070B / 47B / 25B

dc _

RankUserSizeTimeDateStatistics
1narb400.02302011/05/19 01:03:240B / 20B / 20B
2ninjalj410.01772011/05/19 16:58:180B / 30B / 11B
3tails420.02332011/05/20 17:28:060B / 26B / 16B
4bk1e450.01092011/05/16 17:21:220B / 33B / 12B
5tails (narb)390.01442011/05/23 11:54:310B / 22B / 17B

R _

RankUserSizeTimeDateStatistics
1pooq1060.59762011/08/22 13:07:300B / 53B / 52B

Befunge _

RankUserSizeTimeDateStatistics
1ninjalj420.01612011/05/19 22:12:240B / 22B / 19B
2kaki420.02582011/05/20 07:31:350B / 20B / 21B
3kaki(nn)400.02332011/05/23 10:41:160B / 20B / 20B

GolfScript _

RankUserSizeTimeDateStatistics
1narb240.13042011/05/17 17:29:110B / 4B / 20B
2twobit250.12782011/05/17 09:39:400B / 4B / 21B

FlogScript _

RankUserSizeTimeDateStatistics
1zzo38(narb)220.18102011/06/07 12:21:300B / 3B / 19B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*640.04982011/09/18 15:38:1533B / 18B / 8B

Groovy _

RankUserSizeTimeDateStatistics
1nn804.46592011/05/16 22:36:420B / 49B / 28B

Language Ranking_

RankLangUserSizeScore
1FlogScriptzzo38(narb)2210000
2GolfScriptnarb249166
3AWKteebee297586
4JI., S.(alt,ad hoc)356285
5dctails (narb)395641
6Befungekaki(nn)405500
7Perltybalt89425238
8REXXteebee474680
9Rubyuru544074
10BASIC*yuko*583793
11Fortran*yuko*593728
12Asymptoteteebee(pooq)623548
13JavaScriptnn643437
14z80*yuko*643437
15Pythontwobit683235
16Tclpooq(nn)683235
17A+twobit713098
18Cnn742972
19Luapooq752933
20Haskellnotogawa752933
21Schemekaki772857
22Maximapooq792784
23Groovynn802750
24Common LISPkozima822682
25Prologpooq862558
26Bashbk1e882500
27Pascal*yuko*892471
28Xtalteebee912417
29OCamlm.ukai1062075
30Iopooq1062075
31Rpooq1062075
32Javateebee(nn)1481486
33COBOL*yuko*274802

return top