kM4_

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

You have some money.
[I'm korean so they will be won]

the money range is 10000<=x<=50000.

And First, You go to the bookstore to buy some
comicbooks.

And you go to the market.. to buy some eatings..
You buy some chocolates, cookies, and orangejuice.
And Then.. You are surprised!!!
"OMFG... There isn't any money...
I have to buy some pen..."
How sad... (What a stupid guy... And then.. You have to buy pen first!!!)

Anyway.. Here is a problem..
-----Input condition------------
First line.. Enter starting money.
Second line... Enter comic book costs and
how much books did you buy..
Third line... Enter prices chocolates,cookies,orangejuice..
--------------------------------

-----Output---------------------
Output how many cases that you didn't have
any money.. after buy some foods..

[Danger] You have to buy each food more than 1...
--------------------------------

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

10000
3 1500
400 700 500

Sample output:

10

Sample input:_

25000
6 1300
400 850 650

Sample output:

33

Sample input:_

42000
11 1500
200 850 650

Sample output:

146

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid (embed)120.06552010/11/27 21:53:181B / 2B / 8B
2teebee120.01292014/01/15 07:38:331B / 4B / 6B
3clock120.03492014/01/30 23:55:211B / 2B / 8B

Perl _

RankUserSizeTimeDateStatistics
1teebee150.03312012/07/04 08:02:430B / 10B / 5B
2test1160.05172012/07/04 05:57:240B / ?B / ?B
3tails210.00262011/04/01 02:59:231B / 10B / 8B
4dcutter230.03672010/11/30 00:19:560B / 13B / 10B
5Phocine_Panacea250.00052014/09/05 23:54:570B / ?B / ?B
6teebee(alnum)370.02472011/05/20 07:43:590B / 29B / 0B

Python _

RankUserSizeTimeDateStatistics
1leonid180.10382014/05/31 20:29:080B / 13B / 4B
2teebee190.08772014/01/18 14:16:460B / 13B / 5B
3hallvabo240.08152010/11/28 04:55:280B / 17B / 7B
4llhuii240.18392014/12/13 11:52:350B / 18B / 5B
5leonid (embed)250.10342010/11/27 21:58:210B / 16B / 9B
6tobiesque250.07542011/01/15 11:15:450B / 16B / 9B
7dekosuke260.10062010/11/29 22:44:000B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1primo (luck)180.11532012/01/12 23:07:030B / 9B / 9B
2teebee180.05872013/07/12 13:01:360B / 9B / 9B
3clock240.05932014/01/31 00:07:530B / 14B / 10B
4primo300.10352012/01/12 22:49:490B / 16B / 14B
5o-cn310.10052010/12/14 07:41:050B / 17B / 14B

Pike _

RankUserSizeTimeDateStatistics
1teebee370.17692014/02/28 10:05:410B / 23B / 13B

Scheme _

RankUserSizeTimeDateStatistics
1kaki380.21292011/03/21 11:11:310B / 24B / 12B
2clock380.12222012/10/21 05:21:380B / 24B / 12B

Common LISP _

RankUserSizeTimeDateStatistics
1kaki430.09292011/10/29 13:33:230B / 29B / 11B
2kozima(embed)440.71492010/11/30 14:01:470B / 27B / 14B

Arc _

RankUserSizeTimeDateStatistics
1clock242.83352012/10/18 12:12:170B / 14B / 8B
2pooq266.01602010/12/10 13:06:400B / 19B / 4B

Clojure _

RankUserSizeTimeDateStatistics
1pooq293.16472012/03/18 07:49:460B / 17B / 9B
2teebee292.29662015/05/21 05:44:480B / 17B / 9B

Io _

RankUserSizeTimeDateStatistics
1teebee330.22722013/09/08 23:06:110B / 25B / 7B
2clock390.32822012/08/27 05:22:290B / 30B / 8B
3pooq400.49042011/01/27 16:19:190B / 31B / 8B

JavaScript _

RankUserSizeTimeDateStatistics
1teebee270.04892014/01/17 05:52:260B / 20B / 7B
2Hendrik290.03942014/01/14 04:46:270B / 21B / 8B
3idealmachine300.01302010/12/04 10:41:020B / ?B / ?B
4xulapp300.00052011/02/13 20:05:010B / 20B / 9B
5Shmiddty300.06312013/04/06 02:26:000B / 20B / 9B
6Shmiddty (readline)350.04252014/01/15 08:08:360B / 21B / 14B
7_nderscore390.07252013/10/29 06:01:390B / 25B / 13B

Lua _

RankUserSizeTimeDateStatistics
1teebee270.03202014/01/14 09:26:590B / 19B / 8B
2Hendrik280.03632014/01/14 03:03:340B / 19B / 9B
3clock290.04392012/12/17 06:38:390B / 21B / 8B
4pooq360.02732011/01/03 23:04:520B / 21B / 15B

Tcl _

RankUserSizeTimeDateStatistics
1teebee340.08182014/01/17 10:07:310B / 24B / 7B
2clock370.14292012/12/17 06:54:320B / 27B / 7B

Xtal _

RankUserSizeTimeDateStatistics
1teebee250.04552014/01/22 07:11:210B / 17B / 7B
2pooq300.21212010/12/01 05:27:430B / 19B / 11B

Kite _

RankUserSizeTimeDateStatistics
1teebee430.01102012/07/09 09:18:220B / 27B / 16B
2clock510.03652012/07/07 18:23:280B / 36B / 15B

SNOBOL _

RankUserSizeTimeDateStatistics
1clock520.02822012/07/27 17:36:140B / 29B / 12B

Icon _

RankUserSizeTimeDateStatistics
1teebee450.06572014/01/15 07:56:520B / 33B / 9B
2clock460.03722012/04/22 23:30:270B / 33B / 10B
3pooq500.04722012/04/04 00:29:390B / 34B / 13B

REXX _

RankUserSizeTimeDateStatistics
1teebee180.02332014/01/22 08:06:000B / 14B / 3B

PARI/GP _

RankUserSizeTimeDateStatistics
1teebee230.07902014/01/15 07:58:540B / 18B / 5B
2clock250.06252012/12/17 06:42:370B / 20B / 5B

Cyan _

RankUserSizeTimeDateStatistics
1teebee361.18402013/09/08 22:38:200B / 19B / 17B
2clock361.27322013/09/08 22:48:270B / 19B / 17B
3pooq373.66202011/06/15 18:26:370B / 22B / 15B

Squirrel _

RankUserSizeTimeDateStatistics
1teebee320.07202014/01/22 07:10:030B / 22B / 10B

Smalltalk _

RankUserSizeTimeDateStatistics
1clock260.04682013/01/05 03:35:040B / 20B / 3B

BASIC _

RankUserSizeTimeDateStatistics
1teebee290.03262014/01/12 08:53:180B / 20B / 9B
2Carlos Gutierrez340.02062010/11/29 16:10:430B / 19B / 14B

Erlang _

RankUserSizeTimeDateStatistics
1teebee820.29252016/07/15 00:27:581B / 49B / 28B
2pooq980.36562012/08/24 21:17:370B / 56B / 37B

J _

RankUserSizeTimeDateStatistics
1Hendrik230.07152014/06/06 08:21:090B / 13B / 10B
2pooq260.41512010/11/30 23:09:090B / 13B / 10B
3I., S.(embed)270.14202010/11/28 05:50:450B / 15B / 9B
4I., S.(IIUC 8,31,139?)860.38022010/11/28 00:35:130B / 25B / 58B

K _

RankUserSizeTimeDateStatistics
1teebee120.03582014/09/07 19:31:330B / 7B / 5B
2twobit150.05532012/03/21 00:39:430B / 9B / 4B
3clock150.03212013/04/11 02:56:460B / 9B / 4B
4pooq170.05582012/03/20 13:18:580B / 9B / 8B

C _

RankUserSizeTimeDateStatistics
1not330.04262010/11/30 19:19:382B / 18B / 13B
2teebee(embed)330.03442010/12/03 07:11:262B / 18B / 13B
3llhuii(rand)330.00052015/01/01 00:40:172B / 19B / 12B
4david_werecat350.02192012/07/27 21:26:262B / 19B / 14B
5atetubou480.00172011/02/14 17:44:240B / ?B / ?B
6csanders500.04342010/11/30 08:45:310B / 28B / 16B
7deadlysins510.00162011/02/16 03:36:490B / ?B / ?B

C++ _

RankUserSizeTimeDateStatistics
1deadlysins740.00202011/02/16 03:39:231B / ?B / ?B

Rust _

RankUserSizeTimeDateStatistics
1teebee620.03942014/01/13 02:55:330B / 34B / 27B
2pooq640.07822013/05/01 11:53:320B / 34B / 29B

OCaml _

RankUserSizeTimeDateStatistics
1teebee380.08172014/01/15 08:50:580B / 29B / 7B
2Hendrik380.18602014/07/05 18:49:010B / 29B / 8B
3m.ukai410.10282010/12/07 10:29:210B / 27B / 14B

Haskell _

RankUserSizeTimeDateStatistics
1int-e390.04492014/12/13 09:08:390B / 29B / 9B
2henkma390.03922015/02/10 23:24:410B / 29B / 9B
3Hendrik400.05462014/01/14 13:13:180B / 29B / 10B
4koyama41450.04512011/10/20 08:53:310B / 30B / 14B
5rst76450.07532012/04/05 21:53:300B / 30B / 14B
6tanakh480.04862010/11/28 18:19:570B / 34B / 11B

Java _

RankUserSizeTimeDateStatistics
1teebee580.16262014/09/08 06:34:300B / 38B / 19B
2Klemmbrett730.21542016/02/08 23:22:150B / ?B / ?B
3hallvabo750.40532010/12/02 02:55:110B / 47B / 26B
4teebee(embed)750.38352010/12/03 07:14:540B / 46B / 28B

Pascal _

RankUserSizeTimeDateStatistics
1*yuko*340.04142014/01/19 20:23:400B / 27B / 5B
2teebee340.03582014/01/20 11:08:300B / 27B / 5B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*440.03672010/12/13 03:58:070B / 27B / 15B

C# _

RankUserSizeTimeDateStatistics
1teebee790.12692014/01/22 07:07:580B / 56B / 19B
2Hendrik820.13322014/01/13 00:43:580B / 58B / 20B

Nemerle _

RankUserSizeTimeDateStatistics
1teebee430.12462014/02/23 07:52:260B / 33B / 9B

LMNtal _

RankUserSizeTimeDateStatistics
1pooq611.37642011/03/28 17:54:040B / 39B / 22B

Maxima _

RankUserSizeTimeDateStatistics
1teebee350.23082014/01/17 06:23:000B / 22B / 13B
2clock370.23682012/10/30 19:20:410B / 22B / 15B
3pooq380.41792010/12/01 07:07:050B / 23B / 15B

Octave _

RankUserSizeTimeDateStatistics
1pooq370.81002011/10/23 20:08:160B / 20B / 17B

REBOL _

RankUserSizeTimeDateStatistics
1clock430.06682012/12/17 06:48:390B / 30B / 7B

Asymptote _

RankUserSizeTimeDateStatistics
1teebee290.26742014/01/14 09:46:460B / 21B / 8B
2clock340.37302012/12/17 06:59:270B / 25B / 8B

Euphoria _

RankUserSizeTimeDateStatistics
1teebee270.03282014/01/22 07:23:370B / 18B / 9B

AWK _

RankUserSizeTimeDateStatistics
1clock190.03172014/01/30 01:54:080B / 12B / 7B
2teebee190.03182014/01/31 06:00:370B / 11B / 8B
3llhuii200.02542014/09/08 00:15:120B / ?B / ?B
4nn230.03172012/12/04 00:05:180B / 11B / 12B

sed _

RankUserSizeTimeDateStatistics
1clock210.06042012/04/04 10:14:100B / 14B / 4B
2mitchs210.03892015/12/04 09:47:350B / 14B / 4B
3%20210.03172015/12/04 10:12:490B / 14B / 4B

jq _

RankUserSizeTimeDateStatistics
1teebee250.03652014/11/28 18:50:030B / 16B / 9B
2eban250.03252014/12/13 00:22:550B / 16B / 9B
3clock250.03362015/02/11 13:53:500B / 16B / 9B

Bash _

RankUserSizeTimeDateStatistics
1Hendrik170.02652014/12/11 22:22:170B / 12B / 4B
2idealmachine290.00052010/12/05 07:05:270B / ?B / ?B

wake _

RankUserSizeTimeDateStatistics
1clock300.07612011/11/22 15:47:410B / 9B / 18B
2idealmachine310.05242010/12/05 06:55:410B / ?B / ?B

bc _

RankUserSizeTimeDateStatistics
1teebee260.03222014/01/14 10:28:180B / 18B / 7B

dc _

RankUserSizeTimeDateStatistics
1int-e110.03382014/12/13 09:14:080B / 7B / 4B
2Hendrik120.03362014/01/15 02:02:040B / 9B / 3B
3llhuii130.03962014/12/13 11:51:200B / 9B / 4B
4clock150.03302012/12/17 07:00:570B / 11B / 4B
5csanders250.01242011/01/07 07:41:370B / 18B / 7B

xgawk _

RankUserSizeTimeDateStatistics
1teebee190.03222014/03/15 22:53:140B / 11B / 8B
2llhuii200.03472014/09/07 23:58:480B / ?B / ?B

R _

RankUserSizeTimeDateStatistics
1pooq270.89162011/01/04 16:14:430B / ?B / ?B
2clock270.51902012/10/11 02:02:080B / 18B / 9B

QCL _

RankUserSizeTimeDateStatistics
1teebee390.03582014/01/14 09:56:540B / 30B / 4B
2clock430.03962012/12/17 06:34:060B / 32B / 6B
3pooq740.18242011/12/30 01:09:010B / 50B / 17B

Brainfuck _

RankUserSizeTimeDateStatistics
1mitchs (cheat)330.03372015/10/04 17:44:463B / 10B / 20B
2mitchs450.03192014/02/01 23:49:390B / 0B / 45B
3hess480.03532011/01/09 13:08:570B / 0B / 48B

Befunge _

RankUserSizeTimeDateStatistics
1kaki120.04002015/10/13 15:53:351B / 5B / 6B
2clock140.04112012/08/21 05:05:372B / 6B / 6B
3test1170.03912012/07/04 18:45:070B / ?B / ?B

><> _

RankUserSizeTimeDateStatistics
1teebee160.22232015/10/11 17:52:500B / 4B / 8B

GolfScript _

RankUserSizeTimeDateStatistics
1clock100.17682012/05/06 21:48:551B / 2B / 6B
2leonid (embed)140.17702010/11/28 19:59:340B / 8B / 6B

gs2 _

RankUserSizeTimeDateStatistics
1whio60.23022017/06/16 06:23:002B / 1B / 2B
2mitchs70.28002015/04/23 05:17:273B / 2B / 1B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu130.12562010/12/09 12:53:521B / ?B / ?B
2clock130.11112012/08/21 16:59:591B / 1B / 10B

Burlesque _

RankUserSizeTimeDateStatistics
1Hendrik160.03412014/01/18 20:51:000B / 10B / 6B
2teebee160.03682014/01/19 20:38:510B / 8B / 8B
3clock200.04472013/05/03 02:02:130B / 12B / 8B
4pooq250.03552012/09/18 19:06:420B / 10B / 12B

Malbolge _

RankUserSizeTimeDateStatistics
1test12880.05152012/07/04 21:29:180B / ?B / ?B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*240.07532010/12/13 04:28:5911B / 10B / 2B

Vim _

RankUserSizeTimeDateStatistics
1udioica180.03542017/06/16 10:11:101B / 14B / 1B
2clock230.28212011/12/20 23:00:001B / 14B / 5B
3nn240.07522011/12/03 21:44:290B / 16B / 5B

goruby _

RankUserSizeTimeDateStatistics
1pooq150.13622011/09/27 10:06:420B / 9B / 5B

Groovy _

RankUserSizeTimeDateStatistics
1teebee342.60922014/01/13 03:29:300B / 26B / 7B
2nn386.18992010/11/30 23:30:060B / 25B / 13B

Scala _

RankUserSizeTimeDateStatistics
1teebee245.41572014/01/17 05:38:030B / 19B / 5B
2Hendrik265.40182014/01/14 04:28:530B / 20B / 6B
3pooq359.97712011/02/17 04:35:330B / 25B / 10B
4tarhashi359.35822012/07/13 16:55:500B / ?B / ?B

Logo _

RankUserSizeTimeDateStatistics
1clock250.03332014/01/29 00:36:030B / 18B / 4B
2teebee250.03322014/01/29 07:46:530B / 18B / 4B
3pooq292.50742011/03/20 15:27:240B / 22B / 2B

Language Ranking_

RankLangUserSizeScore
1gs2whio610000
2GolfScriptclock106000
3dcint-e115454
4Rubyleonid (embed)125000
5Kteebee125000
6Befungekaki125000
7FlogScriptmilieu134615
8gorubypooq154000
9Perlteebee154000
10BurlesqueHendrik163750
11><>teebee163750
12BashHendrik173529
13PHPprimo (luck)183333
14REXXteebee183333
15Pythonleonid183333
16Vimudioica183333
17AWKclock193157
18xgawkteebee193157
19sedclock212857
20PARI/GPteebee232608
21JHendrik232608
22z80*yuko*242500
23Arcclock242500
24Scalateebee242500
25Xtalteebee252400
26Logoclock252400
27jqteebee252400
28Smalltalkclock262307
29bcteebee262307
30Rpooq272222
31Luateebee272222
32JavaScriptteebee272222
33Euphoriateebee272222
34Clojurepooq292068
35BASICteebee292068
36Asymptoteteebee292068
37wakeclock302000
38Squirrelteebee321875
39Cnot331818
40Ioteebee331818
41Brainfuckmitchs (cheat)331818
42Groovyteebee341764
43Tclteebee341764
44Pascal*yuko*341764
45Maximateebee351714
46Cyanteebee361666
47Octavepooq371621
48Piketeebee371621
49Schemekaki381578
50OCamlteebee381578
51QCLteebee391538
52Haskellint-e391538
53Common LISPkaki431395
54Kiteteebee431395
55REBOLclock431395
56Nemerleteebee431395
57Fortran*yuko*441363
58Iconteebee451333
59SNOBOLclock521153
60Javateebee581034
61LMNtalpooq61983
62Rustteebee62967
63C++deadlysins74810
64C#teebee79759
65Erlangteebee82731
66Malbolgetest1288208

return top