Triangle Inequality

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 three edges, determine whether they can form a triangle.
- leonid

Options

exec is denied

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

Sample input:_

13 23 31
12 46 81
20 75 27
93 93 23
15 21 93
51 44 97
21 68 55
47 88 53
96 81 37
70 90 26
82 84 89
68 23 12
81 48 50
24 70 52
73 93 23
49 96 86
39 73 72
80 49 41
17 86 37
51 72 30
13 45 30
53 18 49
70 58 24
57 24 42
25 72 58
54 87 32
55 71 47
19 44 14
49 22 53
57 49 50
86 46 70
88 70 73
43 28 64
73 83 19
35 91 44
75 59 42
59 62 13
19 72 65
65 56 57
50 25 85
83 62 81
30 17 66
30 54 23
29 28 36
89 79 86
21 47 13
52 47 28
29 41 90
31 59 63
60 25 76
85 41 89
76 52 89
15 92 79
73 69 60
91 74 48
90 15 73
66 64 50
18 69 62
37 14 67
69 84 82
76 52 77
40 49 53
48 81 65
26 40 32
53 77 27
88 15 29
90 28 69
55 82 55
48 29 83
12 56 72
84 29 43
22 58 34
21 19 79
76 71 40
92 48 10
62 31 63
47 65 94
45 67 57
11 10 25
27 38 28
30 21 65
12 77 92
97 34 25
21 71 21
91 78 89
70 55 67
42 40 12
90 53 36
19 67 59
86 96 61
88 12 45
81 87 27
37 87 42
44 80 17
75 78 35
80 52 53
85 13 34
42 51 89
67 57 80
54 25 62
76 33 13
63 30 10
66 64 28
26 73 12
52 59 79
90 88 78
23 50 90
44 63 45
36 84 30
85 13 89
67 47 96
90 54 22
76 35 23
11 19 81
94 46 83
89 88 81
10 94 35
58 22 21
67 85 35
76 63 46
65 33 93
63 81 35
71 12 47
19 92 93
61 23 73
20 44 82
97 44 88
33 94 67
79 89 76
31 40 15
79 54 41
48 73 96
73 43 70
20 91 48
28 66 84
59 34 92
98 49 94
43 35 76
55 18 85
78 34 22
18 62 96
94 40 25
91 54 29
60 38 62
29 85 42
89 49 35
14 35 88
36 34 95
31 36 95
55 31 15
51 42 62
12 86 44
51 87 83
37 18 96
12 64 53
94 25 47
57 41 96
82 74 75
70 15 36
78 69 75
10 14 82
26 36 94
71 82 45
21 17 67
19 46 30
49 38 64
53 32 21
52 11 91
68 14 65
10 12 51
53 49 91
43 88 39
42 55 49
50 20 25
29 28 20
10 30 58
45 86 61
25 33 16
61 46 93
21 43 37
59 55 89
69 78 70
76 71 41
92 57 90
33 17 85
33 67 76
38 34 54
85 13 89
60 47 20
19 30 49
34 84 61
88 53 54
81 68 80
39 76 32
13 98 40
27 56 36
40 90 15
42 90 75
17 47 34
22 10 69
40 88 55
17 22 74
29 81 73
62 44 13
97 11 53
40 63 66
73 35 60
81 75 27
43 50 26
61 14 62
57 27 58
79 66 44
22 40 81
17 64 65
19 53 42
20 35 88
53 42 49
45 72 61
45 46 34
63 73 64
95 73 74
25 78 90
24 50 40
60 64 40
72 44 22
58 35 85
13 13 76
88 53 83
21 68 68
35 64 30
76 89 88
49 45 25
94 72 18
32 14 92
86 96 35
75 57 98
29 54 30
81 70 71
43 94 70
81 51 65
95 55 25
22 18 88
21 44 34
60 14 72
13 27 71
51 38 15
84 20 46
58 88 81
23 74 11
28 10 40
77 78 59
97 45 53
39 18 39
16 84 36
11 46 83
63 33 84
33 43 90
43 79 59
45 61 33
77 13 80
27 82 77
25 21 55
25 95 82
11 74 44
60 18 91
53 19 67
30 70 73
85 86 79
49 41 18
12 27 16
10 38 41
51 88 45
13 15 86
58 59 93
64 67 85
37 13 85
59 75 44
32 77 74
60 85 57
42 79 80
27 49 55
29 80 66
91 56 60
30 55 30
62 73 49
78 85 16
94 17 31
24 88 81
46 37 64
52 11 81
45 25 30
26 93 86
84 30 10
20 96 96
60 12 75
43 63 32
91 77 29
82 82 11
12 55 56
46 86 63
51 43 51
72 66 20
51 61 34
24 64 81
45 17 80
58 30 18
27 65 96
35 85 41
80 98 53
52 85 18
16 86 32
92 62 30
68 87 67
49 27 93
69 57 71
38 91 43
70 86 21
33 22 16
68 72 92
40 61 20
17 81 88
74 43 49
74 86 65
55 67 81
85 55 69
46 88 92
61 47 38
85 10 59
92 62 25
33 18 31
82 40 31
62 20 91
88 61 24
39 22 11
46 75 60
92 78 25
86 85 33
18 37 98
77 34 77
89 75 82
97 71 87
40 43 12
37 89 83
81 27 52
71 53 91
69 73 90
49 88 41
47 90 61
21 23 32
43 30 25
44 22 83
38 27 79
41 89 43
85 84 32
25 25 60
11 36 63
74 70 27
58 82 28
64 42 41
96 12 29
37 67 13
88 60 80
36 25 64
38 45 96
25 51 21
92 62 35
29 33 39
84 45 39
43 71 62
40 74 90
57 24 32
71 46 58
29 60 93
29 13 64
70 31 19
71 80 21
37 51 85
37 75 87
45 18 84
91 56 62
51 86 22
74 11 27
82 78 55
48 84 48
96 16 58
32 80 35
71 18 24
49 79 90
70 37 56
47 74 41
54 67 91
58 88 77
78 21 22
26 94 40
60 73 90
34 69 58
56 77 26
58 49 22
69 16 93
22 66 74
23 80 74
63 64 13
31 22 74
42 84 90
90 77 86
89 15 47
25 51 87
68 63 91
37 60 65
28 69 31
81 12 35
80 90 39
41 61 94
80 18 32
60 69 28
91 79 42
98 39 96
45 74 51
61 24 81
84 47 28
11 73 22
89 90 24
39 82 35
45 85 17
13 44 34
36 30 97
46 67 61
96 98 52
97 80 65
88 16 86
28 40 45
95 14 85
12 61 18
15 30 31
23 23 47
60 10 72
43 36 54
17 71 90
57 63 36
45 47 15
26 65 55
57 54 84
94 60 16
92 74 41
89 22 59
81 74 93
86 23 91
38 27 62
71 61 68
59 93 61
31 42 10
48 16 88
26 13 89
26 30 39
94 74 33
23 62 90
75 77 68
19 17 33
90 48 24
86 53 34
80 72 63
45 51 40
16 36 20
65 91 66
40 50 96
33 57 44
82 37 69
87 21 36
38 33 59
81 81 50
38 49 80
23 10 46
66 95 79
32 46 35
69 21 27
97 39 49
54 27 22
34 76 58
50 59 62
43 95 59
66 17 84
54 95 31
40 46 84
60 55 64
42 81 52
56 55 19
39 48 52
17 91 97
25 20 74
91 25 63
23 81 92
10 94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
1
1
1
1
0
0
1
1
0
0
1
1
1
0
1
0

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1leonid390.05972012/04/26 15:42:380B / 21B / 15B
2clock400.04442012/04/26 21:58:340B / 20B / 17B
3@tttttanaka420.05942012/04/26 18:32:570B / 22B / 18B
4eban530.12482012/04/26 16:50:070B / 28B / 21B
5Kotiya Sanae580.08782012/04/29 08:03:460B / 35B / 22B
6test620.12212012/04/26 15:33:280B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1test1390.01932012/04/27 01:34:050B / ?B / ?B
2teebee390.02002012/04/27 03:08:440B / 11B / 27B
3tybalt89390.01942012/04/27 06:27:350B / ?B / ?B
4shlomif400.02622012/04/27 18:37:270B / 19B / 18B
5Hem410.08022012/05/05 10:34:300B / 20B / 18B
6macik440.02502012/05/06 05:15:010B / ?B / ?B
7tails450.01732012/04/26 21:02:230B / 8B / 36B
8nfouille460.02072012/05/03 19:47:350B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1hallvabo610.03062012/04/27 00:19:570B / 37B / 23B
2leonid610.04502012/04/27 03:50:020B / 40B / 20B
3twobit610.02782012/04/27 06:17:530B / 40B / 20B
4purintai610.03112012/05/10 10:03:530B / 40B / 20B
5clock620.03742012/04/27 00:47:550B / 40B / 21B
6Defenestrator620.04072012/05/02 16:07:480B / 40B / 21B
7primo630.02412012/04/27 00:29:040B / 39B / 23B
8Hendrik640.05662012/04/27 20:47:310B / 42B / 21B
9p710.03222012/05/09 10:18:010B / 45B / 25B

PHP _

RankUserSizeTimeDateStatistics
1clock650.22762012/04/27 00:31:462B / 35B / 28B
2primo730.07602012/04/26 23:52:417B / 30B / 36B

Scheme _

RankUserSizeTimeDateStatistics
1kaki710.06432012/04/26 19:55:510B / 30B / 33B
2kaki680.02582013/03/25 05:41:340B / 27B / 36B

Common LISP _

RankUserSizeTimeDateStatistics
1kaki760.49562012/04/26 23:57:470B / 43B / 28B

Clojure _

RankUserSizeTimeDateStatistics
1kaki643.52852012/04/27 00:08:020B / 29B / 33B

Io _

RankUserSizeTimeDateStatistics
1pooq930.31882012/04/29 07:50:500B / 72B / 16B
2pooq810.32822012/05/12 08:36:240B / 65B / 12B

JavaScript _

RankUserSizeTimeDateStatistics
1nn570.03812012/04/30 11:43:160B / 32B / 24B
2clock570.05952012/05/10 07:14:190B / 32B / 24B

Lua _

RankUserSizeTimeDateStatistics
1twobit740.01352012/04/28 19:55:470B / 48B / 21B
2Hendrik760.07842012/05/09 16:37:430B / 46B / 29B

Xtal _

RankUserSizeTimeDateStatistics
1teebee970.05392012/05/07 10:27:320B / 50B / 45B

SNOBOL _

RankUserSizeTimeDateStatistics
1chocobi1280.01982012/04/26 22:17:100B / 61B / 47B

Icon _

RankUserSizeTimeDateStatistics
1clock810.01012012/04/29 14:05:550B / 47B / 31B
2teebee830.02202012/04/28 04:13:590B / 52B / 27B

REXX _

RankUserSizeTimeDateStatistics
1teebee420.02292012/04/29 01:32:460B / 27B / 7B
2pooq430.02242012/04/29 02:08:530B / 27B / 8B

PARI/GP _

RankUserSizeTimeDateStatistics
1teebee600.02912012/05/07 07:52:140B / 36B / 24B
2clock610.05252012/05/08 00:06:060B / 36B / 25B

BASIC _

RankUserSizeTimeDateStatistics
1teebee430.03662012/04/29 09:35:310B / 25B / 17B
2pooq550.04062012/04/29 00:35:110B / 31B / 20B

J _

RankUserSizeTimeDateStatistics
1pooq250.05422012/04/29 09:13:560B / 6B / 19B
2I., S.270.39062012/04/26 23:49:530B / 9B / 18B
3medialuna740.02132014/08/13 19:32:240B / ?B / ?B

K _

RankUserSizeTimeDateStatistics
1twobit240.02182012/04/26 20:11:220B / 5B / 19B
2eiyuu240.01462012/04/26 21:24:000B / 5B / 19B
3teebee240.01712012/04/28 03:35:450B / 5B / 19B

C _

RankUserSizeTimeDateStatistics
1eha750.01522012/04/26 20:03:520B / 38B / 37B
2inaniwa760.01702012/04/26 18:19:230B / 38B / 38B
3eiyuu760.01112012/04/27 14:42:100B / 36B / 40B
4nn760.01392012/04/30 12:25:150B / 38B / 38B
5chocobi770.01692012/04/26 21:28:320B / 36B / 41B
6ush770.02182012/05/01 15:02:010B / 38B / 39B
7fill780.01212012/04/28 10:30:290B / 38B / 40B
8biggles780.01352012/04/30 11:57:280B / 38B / 40B
9amat780.01802012/05/07 18:59:010B / 38B / 40B
10tr880.01832012/05/03 18:32:210B / ?B / ?B
11smkt1170.01372012/04/27 05:13:211B / 59B / 53B

Haskell _

RankUserSizeTimeDateStatistics
1henkma680.02182012/04/30 12:41:180B / 46B / 18B
2cojna710.09622012/04/30 22:06:370B / ?B / ?B
3Hendrik800.08982012/05/03 19:02:140B / 56B / 20B

Java _

RankUserSizeTimeDateStatistics
1teebee1650.33192012/05/08 05:26:540B / 106B / 53B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*560.16072012/04/27 01:13:200B / 33B / 22B

Maxima _

RankUserSizeTimeDateStatistics
1pooq950.27012012/04/29 02:23:010B / 55B / 31B
2pooq840.79362012/05/12 08:22:450B / 50B / 30B
3teebee(pooq)850.19922012/05/11 07:41:500B / 49B / 30B

Asymptote _

RankUserSizeTimeDateStatistics
1chocobi630.16792012/04/27 20:40:270B / 35B / 27B

Euphoria _

RankUserSizeTimeDateStatistics
1clock1420.02262012/05/06 18:40:180B / 94B / 41B

AWK _

RankUserSizeTimeDateStatistics
1teebee290.02022012/04/28 02:49:570B / 10B / 19B
2I., S.340.02472012/04/27 06:08:290B / 12B / 22B
3eban360.02382012/04/26 16:20:020B / 10B / 26B

bc _

RankUserSizeTimeDateStatistics
1teebee550.02012012/04/28 02:56:110B / 28B / 26B

xgawk _

RankUserSizeTimeDateStatistics
1teebee290.16212012/05/10 07:02:350B / 10B / 19B

GolfScript _

RankUserSizeTimeDateStatistics
1leonid130.34172012/04/26 16:44:330B / 2B / 11B
2clock130.33792012/04/26 18:21:000B / 2B / 11B
3twobit130.22252012/04/26 20:07:060B / 2B / 11B

FlogScript _

RankUserSizeTimeDateStatistics
1milieu100.63172012/04/26 22:36:440B / ?B / ?B
2clock101.14812012/05/09 21:32:140B / 0B / 10B

Vim _

RankUserSizeTimeDateStatistics
1clock430.42162012/04/26 23:39:346B / 19B / 16B

goruby _

RankUserSizeTimeDateStatistics
1leonid290.16102012/05/05 21:05:460B / 13B / 15B
2clock310.12472012/05/01 22:26:530B / 12B / 17B
3@tttttanaka370.11772012/04/26 18:17:560B / 16B / 18B

Groovy _

RankUserSizeTimeDateStatistics
1clock722.23842012/05/02 12:37:140B / 48B / 22B
2nn733.08832012/05/03 10:56:140B / 48B / 23B

Logo _

RankUserSizeTimeDateStatistics
1teebee650.03532012/05/10 06:46:000B / 34B / 26B

Language Ranking_

RankLangUserSizeScore
1FlogScriptmilieu1010000
2GolfScriptleonid137692
3Ktwobit244166
4Jpooq254000
5AWKteebee293448
6gorubyleonid293448
7xgawkteebee293448
8Rubyleonid392564
9Perltest1392564
10REXXteebee422380
11Vimclock432325
12BASICteebee432325
13bcteebee551818
14Fortran*yuko*561785
15JavaScriptnn571754
16PARI/GPteebee601666
17Pythonhallvabo611639
18Asymptotechocobi631587
19Clojurekaki641562
20PHPclock651538
21Logoteebee651538
22Haskellhenkma681470
23Schemekaki681470
24Groovyclock721388
25Luatwobit741351
26Ceha751333
27Common LISPkaki761315
28Iconclock811234
29Iopooq811234
30Maximapooq841190
31Xtalteebee971030
32SNOBOLchocobi128781
33Euphoriaclock142704
34Javateebee165606

return top