Same sum FIXED

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

1 + 2 + 3 + ... + k = (k+1) + (k+2) + (k+3) + ... + n
1 < n < 1000000000
Print n,k.

Options

exec is denied

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

Sample input:_

*NOTHING*

Sample output:

n = 3 , k = 2
n = 20 , k = 14
n = 119 , k = 84
n = 696 , k = 492
n = 4059 , k = 2870
n = 23660 , k = 16730
n = 137903 , k = 97512
n = 803760 , k = 568344
n = 4684659 , k = 3312554
n = 27304196 , k = 19306982
n = 159140519 , k = 112529340
n = 927538920 , k = 655869060

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1clock550.01212013/09/26 02:31:250B / 23B / 26B
2leonid550.01632013/10/02 09:50:120B / 24B / 24B

Perl _

RankUserSizeTimeDateStatistics
1tails520.01932013/09/26 01:50:480B / 20B / 25B
2brx590.03402013/10/03 05:00:210B / 21B / 30B
3teebee610.01192013/09/22 09:43:503B / 21B / 29B
4whio630.02072013/10/02 08:07:494B / 25B / 25B
5_700.02112013/09/25 12:21:440B / 26B / 38B
6BioFALSE2030.00012013/12/09 04:51:450B / 147B / 49B

Python _

RankUserSizeTimeDateStatistics
1clock550.04672013/09/26 02:27:440B / 25B / 27B
2leonid550.03762013/10/02 09:45:370B / 25B / 26B
3hallvabo580.03072013/09/24 09:03:540B / 28B / 27B
4primo660.03802013/10/01 18:48:250B / 30B / 30B
5rolf670.03322013/09/25 02:29:220B / 34B / 28B

PHP _

RankUserSizeTimeDateStatistics
1clock590.02262013/09/26 08:24:001B / 21B / 31B

Io _

RankUserSizeTimeDateStatistics
1clock670.07672013/10/02 00:20:190B / 30B / 31B

JavaScript _

RankUserSizeTimeDateStatistics
1clock560.01302013/09/26 02:29:360B / 25B / 28B
2Shmiddty730.01422013/09/24 00:24:030B / 36B / 34B

Lua _

RankUserSizeTimeDateStatistics
1clock750.00012013/10/02 00:24:410B / 35B / 27B

Xtal _

RankUserSizeTimeDateStatistics
1clock620.01442013/09/28 08:10:470B / 26B / 30B

BASIC _

RankUserSizeTimeDateStatistics
1clock580.02242013/09/26 20:58:050B / 27B / 23B
2pooq700.02012013/09/26 12:15:070B / 33B / 24B

J _

RankUserSizeTimeDateStatistics
1I., S.(cheat)610.02522013/09/22 12:05:200B / 12B / 42B
2I., S.640.02532013/10/05 07:28:520B / 18B / 37B

C _

RankUserSizeTimeDateStatistics
1clock670.00012013/10/01 15:39:290B / 30B / 31B
2tails680.01312013/09/26 00:52:250B / 28B / 34B
3ush760.00012013/09/23 04:55:150B / 34B / 36B
4ordinary human being850.00012013/10/04 23:50:420B / ?B / ?B

Maxima _

RankUserSizeTimeDateStatistics
1clock680.10342013/09/26 21:06:300B / 31B / 30B
2pooq940.56312013/09/26 12:33:190B / 45B / 42B

Octave _

RankUserSizeTimeDateStatistics
1pooq961.24402013/09/26 18:55:230B / 41B / 48B

AWK _

RankUserSizeTimeDateStatistics
1clock550.01052013/09/28 20:50:060B / 25B / 24B
2I., S.700.01052013/10/05 07:38:520B / 32B / 32B

bc _

RankUserSizeTimeDateStatistics
1clock560.01042013/10/02 00:11:100B / 21B / 27B

dc _

RankUserSizeTimeDateStatistics
1tails480.01262013/09/24 00:42:030B / 26B / 16B

GolfScript _

RankUserSizeTimeDateStatistics
1tails380.01752013/09/27 02:03:500B / 11B / 21B
2clock380.01792013/10/01 15:51:330B / 11B / 21B

Groovy _

RankUserSizeTimeDateStatistics
1clock590.95392013/10/02 00:16:420B / 28B / 25B

Logo _

RankUserSizeTimeDateStatistics
1clock560.00022013/10/02 15:55:390B / 24B / 28B

Language Ranking_

RankLangUserSizeScore
1GolfScripttails3810000
2dctails487916
3Perltails527307
4Pythonclock556909
5Rubyclock556909
6AWKclock556909
7JavaScriptclock566785
8bcclock566785
9Logoclock566785
10BASICclock586551
11PHPclock596440
12Groovyclock596440
13JI., S.(cheat)616229
14Xtalclock626129
15Cclock675671
16Ioclock675671
17Maximaclock685588
18Luaclock755066
19Octavepooq963958

return top