Equations
Submit
Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.
Problem
print the lines where the equation is wrong.
Equations have the following format:
a [b,c,d...] = e [f,g,h,i,...]
If the next number is greater than the preceding number you
have to add them together, if it is less you have to subtract the two numbers. If they're equal you have to multiply the numbers. You need to use the intermediate data.
Options
exec is denied
now post-mortem time, all source codes will be revealed
Sample input:_
5=2 3
5=3 2
1=3 2
4 4 = 16
3 3=12
1 2 3=6
1 4 1 = 2 2
Sample output:
5=3 2
3 3=12
1 2 3=6
Sample input:_
1 3 4=16
3 1 4=16
5 1 4=16
Sample output:
3 1 4=16
Sample input:_
19=20
19=19
1 1 1 1 1 1 1 = 0
5 1 1 1=2
5 1 1 = 2
Sample output:
19=20
1 1 1 1 1 1 1 = 0
5 1 1 = 2
Ranking
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 20 | 0.0565 | 2011/06/19 15:33:44 | 0B / 13B / 6B |
2 | teebee | 20 | 0.0548 | 2011/06/20 13:22:56 | 0B / 13B / 6B |
3 | teebee(alnum) | 31 | 0.0471 | 2011/06/20 09:30:59 | 0B / 26B / 0B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | hallvabo | 51 | 0.0882 | 2011/06/20 22:01:48 | 0B / 34B / 10B |
2 | twobit | 51 | 0.1891 | 2011/06/29 20:43:34 | 0B / 34B / 11B |
3 | pv2b | 125 | 0.0745 | 2011/06/19 13:54:45 | 0B / 74B / 40B |
4 | feuermonster | 136 | 0.0975 | 2011/07/02 07:41:32 | 0B / 80B / 46B |
5 | Kohlrabi | 160 | 0.3239 | 2011/06/20 06:11:13 | 8B / 80B / 39B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | I., S. | 52 | 0.1150 | 2011/06/19 10:42:58 | 0B / 14B / 37B |
2 | I., S.(embed) | 45 | 0.1556 | 2011/08/17 18:27:02 | 0B / 19B / 25B |
3 | I., S. | 51 | 0.1061 | 2011/08/17 18:27:38 | 0B / 12B / 38B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | inaniwa(embed) | 46 | 0.0410 | 2011/06/20 16:37:35 | 0B / 24B / 22B |
2 | koi | 74 | 0.0487 | 2011/06/20 22:17:05 | 0B / 38B / 35B |
3 | madogiwa | 74 | 0.0786 | 2011/06/28 20:28:27 | 0B / 38B / 36B |
4 | kou | 120 | 0.1087 | 2011/06/29 12:13:54 | 0B / 61B / 59B |
Rank | User | Size | Time | Date | Statistics |
---|
1 | tails | 13 | 0.1743 | 2011/06/19 23:36:13 | 0B / 7B / 6B |
Language Ranking_
Rank | Lang | User | Size | Score |
1 | GolfScript | tails | 13 | 10000 |
2 | sed | lvogel | 18 | 7222 |
3 | Ruby | leonid | 20 | 6500 |
4 | Perl | tails | 20 | 6500 |
5 | Bash | lvogel | 24 | 5416 |
6 | Fish | lvogel | 24 | 5416 |
7 | Zsh | lvogel | 24 | 5416 |
8 | J | I., S.(embed) | 45 | 2888 |
9 | C | inaniwa(embed) | 46 | 2826 |
10 | Python | hallvabo | 51 | 2549 |
11 | dc | lvogel | 91 | 1428 |
12 | Haskell | NearO (unclean) | 97 | 1340 |
13 | bc | teebee(lvogel) | 108 | 1203 |
return to the top page