Ellipse circumference

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

There is an ellipse of major axis A and minor axis B.
Request the length of circumference.
The answer is rounded off and made an integer.

Options

exec is denied

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

Sample input:_

672 550
675 231
777 292
140 139
485 478
773 293
520 501
948 794
913 554
890 68
629 354
740 172
870 764
945 936
756 741
982 89
153 84
327 169
724 703
541 127
981 291
512 90
805 214
557 498
891 660
686 190
592 353
383 69
836 80
396 37
898 398
981 577
329 173
645 275
329 60
831 319
607 549
777 30
745 334
358 286
649 474
601 121
826 46
733 599
728 523
809 312
976 907
744 659
569 432
889 293
561 313
921 629
656 398
316 237
582 90
947 251
646 214
760 397
783 599
749 591
378 330
915 849
979 877
704 662
642 631
904 252
430 395
435 148
990 139
734 174
803 352
603 37
200 173
720 295
221 171
713 35
120 67
498 331
859 507
492 358
921 767
510 208
897 508
992 567
682 419
746 55
483 232
746 158
221 77
824 676
818 817
911 805
398 238
21 5
618 43
687 528
669 179
720 17
971 492
373 176
254 125
816 743
897 810
952 172
780 492
960 5
78 73
934 838
666 380
192 41
500 103
904 299
667 222
711 308
949 730
894 644
658 51
739 620
371 122
910 539
921 280
717 699
522 157
369 317
725 99
532 530
608 592
924 263
849 844
115 78
515 64
649 453
906 480
132 70
987 356
616 461
642 636
308 136
922 302
362 200
607 462
52 34
940 595
475 176
346 146
671 455
978 462
846 16
909 386
941 905
688 503
792 131
491 198
873 365
516 139
931 872
971 462
794 668
945 692
638 587
954 163
626 579
553 288
148 42
864 558
592 186
995 301
920 742
534 67
291 187
692 68
711 482
885 326
913 551
365 219
215 179
431 281
354 25
876 75
768 88
863 437
952 329
630 438
709 447
515 348
747 559
364 265
173 88
419 79
623 73
889 679
997 786
774 536
453 171
975 115
928 63
239 221
753 550
993 284
868 328
727 633
907 648
850 122
123 111
960 893
868 152
674 315
970 237
661 12
271 132
492 93
397 146
838 77
632 517
554 161
987 700
986 768
491 15
930 666
494 167
320 141
260 111
684 112
475 249
976 929
383 29
777 38
366 265
801 777
813 181
695 322
630 102
523 347
772 36
450 95
873 175
751 175
822 308
854 476
423 340
941 119
663 550
711 700
924 105
984 639
713 417
452 65
911 813
848 466
653 352
577 130
951 746
637 232
767 710
999 62
313 307
610 593
780 195
859 585
704 490
940 106
359 21
967 343
680 194
733 29
883 723
555 417
576 470
765 544
553 150
214 140
966 787
203 62
508 237
592 459
665 324
557 445
776 482
820 711
760 553
887 862
476 380
980 66
875 505
915 161
313 85
437 384
485 479
829 24
993 538
405 135
175 90
479 129
632 508
830 233
857 655
549 30
999 223
682 289
790 500

Sample output:

3849
3020
3534
877
3025
3521
3208
5483
4678
3596
3149
3150
5139
5909
4703
3981
760
1598
4483
2305
4296
2132
3477
3317
4900
2977
3016
1597
3394
1607
4224
4977
1615
3008
1373
3794
3634
3118
3514
2030
3549
2527
3323
4195
3957
3697
5918
4412
3159
3953
2801
4913
3361
1746
2405
4089
2875
3725
4361
4224
2227
5544
5835
4292
3999
3927
2593
1944
4072
3131
3768
2429
1173
3330
1237
2865
599
2631
4363
2687
5314
2357
4499
4989
3508
3012
2316
3149
992
4724
5137
5396
2030
90
2493
3833
2892
2884
4720
1781
1225
4900
5366
3971
4047
3840
475
5571
3348
811
2106
4022
2971
3328
5297
4864
2659
4278
1649
4627
4047
4449
2290
2158
2978
3336
3770
4024
5319
612
2107
3489
4458
650
4455
3401
4015
1448
4096
1802
3374
273
4883
2155
1610
3570
4670
3387
4236
5800
3764
3285
2264
4055
2232
5666
4645
4602
5174
3850
3965
3787
2708
644
4519
2614
4369
5236
2186
1520
2811
3783
4010
4670
1863
1240
2262
1429
3547
3134
4194
4266
3382
3678
2737
4124
1988
842
1753
2544
4948
5621
4150
2062
3982
3743
1446
4118
4327
3951
4278
4919
3500
736
5823
3613
3210
4150
2646
1304
2059
1798
3398
3619
2419
5338
5532
1968
5048
2206
1503
1213
2836
2330
5986
1547
3123
1995
4958
3447
3303
2610
2761
3101
1899
3669
3198
3736
4263
2404
3853
3819
4433
3769
5157
3611
1861
5420
4216
3229
2449
5351
2880
4642
4024
1948
3780
3346
4577
3781
3834
1445
4352
2962
2941
5058
3069
3295
4142
2394
1124
5522
893
2419
3315
3200
3158
4006
4816
4151
5495
2698
3952
4414
3810
1355
2582
3029
3322
4917
1804
854
2072
3592
3609
4771
2208
4237
3177
4104

Ranking

Perl _

RankUserSizeTimeDateStatistics
1tybalt891042.48012011/01/30 04:42:520B / ?B / ?B
2tails (tybalt89)1032.48622011/02/01 17:24:330B / 32B / 67B

Python _

RankUserSizeTimeDateStatistics
1notogawa1180.47842011/01/24 00:56:580B / 63B / 54B
2hallvabo1210.42792011/01/19 07:19:390B / 66B / 54B
3recursive1420.03402011/01/19 07:38:390B / 85B / 56B
4twobit1490.03542011/01/19 06:47:250B / 82B / 64B

JavaScript _

RankUserSizeTimeDateStatistics
1notogawa1032.96502011/01/26 00:53:090B / 54B / 48B
2nn1052.09282011/01/25 22:34:210B / 54B / 50B
3pooq1130.32522011/01/20 19:50:060B / 58B / 54B
4idealmachine1300.56542011/01/19 08:17:201B / ?B / ?B
5nn(notogawa)1012.83502011/02/02 22:12:470B / 54B / 46B

Lua _

RankUserSizeTimeDateStatistics
1pooq1252.62702011/01/20 01:51:350B / 71B / 44B

BASIC _

RankUserSizeTimeDateStatistics
1pooq1050.24642011/01/19 20:28:100B / 61B / 35B
2pooq(notogawa)902.56012011/02/08 22:11:380B / 54B / 31B

J _

RankUserSizeTimeDateStatistics
1I., S.500.19552011/01/19 05:48:100B / 21B / 26B
2I., S.470.15472013/08/14 07:11:510B / 18B / 28B

C _

RankUserSizeTimeDateStatistics
1notogawa1190.10132011/01/22 22:01:080B / 61B / 57B
2nn1240.10432011/01/24 23:39:340B / 63B / 60B
3inaniwa1272.26202011/01/22 22:52:380B / 71B / 55B
4hos1500.00162011/01/19 14:06:070B / 77B / 72B
5idealmachine1610.00672011/01/19 08:38:420B / ?B / ?B
6nn(notogawa)1180.10352011/02/02 22:07:330B / 61B / 56B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai1762.33532011/01/18 21:26:510B / 104B / 55B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa1110.03622011/01/23 23:21:590B / 64B / 44B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*1090.00232011/01/21 22:09:270B / 59B / 49B
2*yuko*(notogawa,nn)930.03312011/11/27 00:17:100B / 53B / 37B
3*yuko*980.10322011/02/13 02:44:510B / 58B / 38B

Maxima _

RankUserSizeTimeDateStatistics
1pooq870.67342011/01/25 01:55:270B / 52B / 33B

Groovy _

RankUserSizeTimeDateStatistics
1nn1253.25292011/01/24 00:08:260B / 71B / 52B

Language Ranking_

RankLangUserSizeScore
1JI., S.4710000
2Maximapooq875402
3BASICpooq(notogawa)905222
4Fortran*yuko*(notogawa,nn)935053
5JavaScriptnn(notogawa)1014653
6Perltails (tybalt89)1034563
7Haskellnotogawa1114234
8Pythonnotogawa1183983
9Cnn(notogawa)1183983
10Luapooq1253760
11Groovynn1253760
12OCamlm.ukai1762670

return top