結果

問題 No.2971 無理積分
ユーザー titiatitia
提出日時 2024-11-29 22:50:43
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 1,000 ms
コード長 19,526 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 13,440 KB
実行使用メモリ 11,776 KB
最終ジャッジ日時 2024-11-29 22:50:46
合計ジャッジ時間 2,834 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
11,392 KB
testcase_01 AC 30 ms
11,392 KB
testcase_02 AC 32 ms
11,648 KB
testcase_03 AC 32 ms
11,520 KB
testcase_04 AC 30 ms
11,520 KB
testcase_05 AC 29 ms
11,776 KB
testcase_06 AC 32 ms
11,520 KB
testcase_07 AC 32 ms
11,520 KB
testcase_08 AC 30 ms
11,520 KB
testcase_09 AC 30 ms
11,520 KB
testcase_10 AC 32 ms
11,392 KB
testcase_11 AC 32 ms
11,520 KB
testcase_12 AC 32 ms
11,520 KB
testcase_13 AC 32 ms
11,392 KB
testcase_14 AC 32 ms
11,520 KB
testcase_15 AC 32 ms
11,392 KB
testcase_16 AC 31 ms
11,648 KB
testcase_17 AC 32 ms
11,520 KB
testcase_18 AC 33 ms
11,520 KB
testcase_19 AC 32 ms
11,392 KB
testcase_20 AC 31 ms
11,520 KB
testcase_21 AC 32 ms
11,392 KB
testcase_22 AC 33 ms
11,648 KB
testcase_23 AC 33 ms
11,648 KB
testcase_24 AC 31 ms
11,648 KB
testcase_25 AC 31 ms
11,520 KB
testcase_26 AC 31 ms
11,392 KB
testcase_27 AC 31 ms
11,520 KB
testcase_28 AC 30 ms
11,392 KB
testcase_29 AC 30 ms
11,648 KB
testcase_30 AC 31 ms
11,520 KB
testcase_31 AC 31 ms
11,648 KB
testcase_32 AC 30 ms
11,392 KB
testcase_33 AC 32 ms
11,648 KB
testcase_34 AC 31 ms
11,392 KB
testcase_35 AC 32 ms
11,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ANS=[0.39999999999722957, 1.1114479705325755, 2.8718647054465993, 5.220083023292129, 8.015590312082525, 11.191507485495254, 14.705438013397371, 18.52700573484162, 22.632939729379764, 27.004628722828073, 31.626728884264114, 36.48629859154195, 41.572226165758146, 46.87483323551885, 52.38558955170685, 58.096901759459804, 64.00195305688622, 70.09457893383288, 76.3691691493077, 82.8205892098775, 89.4441166175225, 96.23538849005006, 103.19035806757044, 110.30525825339845, 117.57657078919601, 125.00099999085735, 132.5754502117833, 140.29700637925023, 148.16291708482547, 156.17057981315276, 164.3175279732992, 172.6014194591854, 181.0200265147117, 189.57122671819423, 198.25299493195274, 207.06339608808565, 216.00057870193174, 225.06276902145189, 234.2482657345277, 243.5554351675637, 252.9827069182518, 262.52856987327783, 272.1915685684052, 281.970299853987, 291.8634098337169, 301.86959104848495, 311.9875798806639, 322.21615415712245, 332.5541309318204, 343.0003644310444, 353.55374414626027, 364.21319306121865, 374.97766600139954, 385.84614809515085, 396.817653336986, 407.8912232444813, 419.06592560107487, 430.34085327783083, 441.71512312790134, 453.18787494801995, 464.758270501889, 476.42549260079636, 488.18874423722195, 500.04724776756814, 512.000244140492, 524.0469921676173, 536.1867678336813, 548.4188636434137, 560.7425880026736, 573.1572646315659, 585.6622320074443, 598.2568428358709, 610.9404635477553, 623.7124738210294, 636.5722661253398, 649.5192452883535, 662.5528280823759, 675.6724428300713, 688.8775290281703, 702.1675369881176, 715.5419274926946, 729.000171467718, 742.5417496679655, 756.166152376556, 769.8728791170437, 783.6614383775478, 797.5313473462772, 811.4821316578508, 825.5133251498552, 839.6244696291144, 853.8151146471773, 868.0848172845632, 882.4331419433283, 896.8596601475479, 911.3639503513268, 925.9455977539807, 940.6041941220426, 955.3393376177796, 970.1506326339115, 985.0376896342491, 1000.0001249999822, 1015.0375608813599, 1030.1496250545263, 1045.3359507832788, 1060.5961766855387, 1075.9299466043235, 1091.3369094830355, 1106.8167192448727, 1122.3690346761996, 1137.9935193137017, 1153.6898413351767, 1169.4576734538045, 1185.2966928157632, 1201.2065809010478, 1217.1870234273722, 1233.237710257024, 1249.3583353065635, 1265.548596459254, 1281.8081954801146, 1298.1368379335006, 1314.5342331031127, 1331.0000939143424, 1347.5341368588734, 1364.1360819214442, 1380.8056525087045, 1397.542575380081, 1414.3465805805836, 1431.217401375483, 1448.1547741867892, 1465.1584385314754, 1482.2281369613759, 1499.3636150047098, 1516.5646211091673, 1533.8309065865087, 1551.1622255586267, 1568.5583349050144, 1586.0189942116053, 1603.5439657209254, 1621.1330142835263, 1638.7859073106506, 1656.5024147280897, 1674.282308931201, 1692.1253647410385, 1710.0313593615742, 1728.0000723379594, 1746.0312855158104, 1764.1247830014731, 1782.2803511232441, 1800.497778393518, 1818.776855471829, 1837.1173751287624, 1855.5191322107123, 1873.981923605453, 1892.5055482085104, 1911.0898068902977, 1929.734502464003, 1948.4394396542052, 1967.2044250661888, 1986.0292671559487, 2004.9137762008609, 2023.857764270996, 2042.8610452010669, 2061.92343456298, 2081.044749638987, 2100.224809395412, 2119.463434456937, 2138.7604470814385, 2158.1156711353533, 2177.5289320695592, 2197.000056895765, 2216.528874163383, 2236.1152139368837, 2255.758907773611, 2275.4597887020536, 2295.217691200553, 2315.0324511764397, 2334.9039059455954, 2354.8318942124074, 2374.8162560501387, 2394.8568328816646, 2414.9534674606043, 2435.106003852809, 2455.314287418211, 2475.578164793024, 2495.8974838722834, 2516.2720937927197, 2536.7018449159527, 2557.1865888120087, 2577.7261782431424, 2598.3204671479607, 2618.9693106258414, 2639.6725649216414, 2660.4300874106802, 2681.241736584002, 2702.1073720339086, 2723.0268544397422, 2744.000045553935, 2765.0268081883037, 2786.107006200587, 2807.240504481224, 2828.427168940363, 2849.666866495099, 2870.959465056934, 2892.304833519454, 2913.7028417462197, 2935.153360558865, 2956.6562617253967, 2978.2114179486985, 2999.818702855224, 3021.477990983882, 3043.1891577751126, 3064.9520795601356, 3086.766633550388, 3108.6326978271327, 3130.5501513312315, 3152.518873853097, 3174.5387460227976, 3196.609649300333, 3218.731465966056, 3240.9040791112593, 3263.127372628902, 3285.401231204493, 3307.7255403071154, 3330.1001861805894, 3352.5250558347807, 3375.0000370370362, 3397.525018303765, 3420.099888892136, 3442.7245387919143, 3465.3988587174204, 3488.1227400996086, 3510.8960750782694, 3533.7187564943533, 3556.5906778824015, 3579.511733463099, 3602.4818181359356, 3625.5008274719785, 3648.568657706745, 3671.6852057331935, 3694.8503690948028, 3718.064045978767, 3741.3261352092786, 3764.636536240915, 3787.995149152121, 3811.401874638779, 3834.856614007883, 3858.359269171289, 3881.9097426395683, 3905.5079375159385, 3929.153757490282, 3952.847106833251, 3976.5878903904536, 4000.376013576724, 4024.211382370463, 4048.0939033080735, 4072.0234834784537, 4096.000030517578, 4120.023452603152, 4144.0936584493365, 4168.210557301538, 4192.374058931287, 4216.584073631166, 4240.840512209814, 4265.143285987001, 4289.492306788765, 4313.887486942606, 4338.3287392727625, 4362.815977095526, 4387.349114214641, 4411.928064916743, 4436.552743966874, 4461.223066604045, 4485.938948536861, 4510.700305939201, 4535.507055445952, 4560.359114148797, 4585.256399592066, 4610.198829768625, 4635.186323115825, 4660.218798511503, 4685.296175270034, 4710.41837313842, 4735.585312292452, 4760.796913332893, 4786.053097281726, 4811.353785578442, 4836.698900076373, 4862.088363039075, 4887.522097136749, 4913.000025442702, 4938.522071429872, 4964.088158967365, 4989.698212317054, 5015.352156130216, 5041.049915444202, 5066.791415679157, 5092.576582634767, 5118.405342487053, 5144.277621785201, 5170.19334744843, 5196.152446762893, 5222.154847378618, 5248.200477306484, 5274.289264915225, 5300.42113892849, 5326.596028421904, 5352.81386282019, 5379.0745718943135, 5405.378085758664, 5431.724334868258, 5458.113250015979, 5484.54476232987, 5511.018803270408, 5537.535304627862, 5564.094198519648, 5590.695417387717, 5617.338893995981, 5644.0245614277765, 5670.752353083319, 5697.52220267723, 5724.334044236063, 5751.187812095863, 5778.083440899759, 5805.020865595575, 5832.0000214334705, 5859.020843963606, 5886.083269033831, 5913.187232787407, 5940.332671660738, 5967.519522381138, 5994.74772196462, 6022.017207713708, 6049.327917215267, 6076.679788338365, 6104.07275923215, 6131.506768323754, 6158.981754316212, 6186.497656186413, 6214.054413183071, 6241.651964824698, 6269.290250897624, 6296.96921145403, 6324.688786809989, 6352.448917543533, 6380.2495444927545, 6408.090608753905, 6435.972051679528, 6463.893814876603, 6491.855840204709, 6519.858069774219, 6547.900445944486, 6575.9829113220785, 6604.105408759008, 6632.267881350994, 6660.470272435724, 6688.712525591154, 6716.994584633815, 6745.3163936171295, 6773.677896829756, 6802.079038793949, 6830.519764263918, 6859.000018224232, 6887.51974588821, 6916.078892696352, 6944.677404314762, 6973.315226633598, 7001.992305765554, 7030.708588044308, 7059.46402002305, 7088.258548472961, 7117.09212038175, 7145.964682952191, 7174.8761836006615, 7203.8265699557205, 7232.815789856673, 7261.843791352166, 7290.910522698793, 7320.01593235971, 7349.159969003261, 7378.34258150162, 7407.563718929456, 7436.823330562585, 7466.121365876661, 7495.457774545863, 7524.8325064415885, 7554.245511631191, 7583.696740376688, 7613.186143133504, 7642.713670549223, 7672.279273462353, 7701.882902901081, 7731.524510082083, 7761.204046409293, 7790.921463472727, 7820.67671304728, 7850.469747091572, 7880.30051774677, 7910.16897733544, 7940.075078360405, 7970.018773503611, 8000.000015625, 8030.018757761403, 8060.074953125435, 8090.168555104399, 8120.2995172592, 8150.467793323275, 8180.673337201529, 8210.916102969266, 8241.196044871156, 8271.513117320192, 8301.867274896653, 8332.258472347099, 8362.68666458334, 8393.151806681444, 8423.65385388075, 8454.192761582857, 8484.768485350676, 8515.380980907432, 8546.030204135719, 8576.716111076546, 8607.438657928386, 8638.197801046234, 8668.99349694069, 8699.82570227703, 8730.694373874281, 8761.59946870433, 8792.540943891021, 8823.518756709253, 8854.532864584105, 8885.583225089953, 8916.669795949605, 8947.79253503343, 8978.951400358506, 9010.146350087773, 9041.377342529178, 9072.644336134863, 9103.947289500307, 9135.28616136353, 9166.660910604252, 9198.071496243112, 9229.517877440836, 9261.00001349746, 9292.51786385154, 9324.071388079352, 9355.660545894127, 9387.285297145283, 9418.945601817646, 9450.641420030706, 9482.372712037848, 9514.139438225613, 9545.94155911296, 9577.779035350524, 9609.65182771988, 9641.559897132829, 9673.503204630679, 9705.481711383522, 9737.495378689531, 9769.544167974267, 9801.62804078996, 9833.746958814834, 9865.90088385242, 9898.089777830872, 9930.313602802282, 9962.572320942016, 9994.865894548062, 10027.19428604034, 10059.557457960067, 10091.955372969107, 10124.387993849306, 10156.855283501878, 10189.357204946738, 10221.893721321896, 10254.464795882817, 10287.070392001799, 10319.710473167355, 10352.385002983614, 10385.093945169683, 10417.837263559073, 10450.614922099081, 10483.426884850202, 10516.273115985528, 10549.153579790182, 10582.068240660708, 10615.017063104515, 10648.000011739296, 10681.017051292447, 10714.068146600526, 10747.153262608663, 10780.272364370021, 10813.425417045239, 10846.612385901877, 10879.833236313872, 10913.087933761002, 10946.376443828342, 10979.698732205725, 11013.054764687226, 11046.444507170621, 11079.867925656878, 11113.324986249616, 11146.815655154614, 11180.339898679289, 11213.897683232179, 11247.488975322449, 11281.113741559386, 11314.771948651905, 11348.463563408042, 11382.188552734488, 11415.946883636065, 11449.73852321528, 11483.563438671814, 11517.421597302062, 11551.312966498655, 11585.237513749988, 11619.195206639746, 11653.186012846441, 11687.209900142976, 11721.26683639614, 11755.356789566194, 11789.479727706394, 11823.635618962555, 11857.824431572597, 11892.046133866113, 11926.300694263917, 11960.588081277609, 11994.908263509147, 12029.261209650407, 12063.646888482768, 12098.065268876673, 12132.516319791208, 12167.000010273692, 12201.516309459246, 12236.065186570395, 12270.64661091664, 12305.260551894056, 12339.906978984889, 12374.585861757152, 12409.297169864214, 12444.040873044414, 12478.816941120662, 12513.625344000036, 12548.466051673407, 12583.339034215043, 12618.244261782223, 12653.18170461485, 12688.151333035084, 12723.15311744695, 12758.187028335962, 12793.253036268765, 12828.35111189275, 12863.481225935691, 12898.643349205371, 12933.837452589236, 12969.063507054008, 13004.321483645348, 13039.611353487497, 13074.933087782896, 13110.28665781187, 13145.672034932259, 13181.089190579056, 13216.538096264088, 13252.018723575666, 13287.53104417822, 13323.075029812, 13358.650652292694, 13394.257883511127, 13429.896695432919, 13465.56706009814, 13501.268949620995, 13537.0023361895, 13572.767192065145, 13608.56348958258, 13644.391201149287, 13680.25029924526, 13716.140756422707, 13752.062545305702, 13788.015638589914, 13824.000009042247, 13860.015629500567, 13896.062472873384, 13932.140512139547, 13968.24972034793, 14004.390070617143, 14040.561536135227, 14076.764090159357, 14112.997706015543, 14149.262357098338, 14185.558016870538, 14221.884658862904, 14258.242256673859, 14294.630783969205, 14331.05021448184, 14367.500522011473, 14403.98168042434, 14440.493663652916, 14477.036445695641, 14513.610000616663, 14550.214302545513, 14586.849325676878, 14623.515044270307, 14660.21143264994, 14696.938465204239, 14733.696116385732, 14770.484360710723, 14807.303172759044, 14844.152527173792, 14881.032398661057, 14917.94276198967, 14954.883591990945, 14991.854863558412, 15028.856551647566, 15065.88863127562, 15102.951077521242, 15140.043865524302, 15177.166970485632, 15214.32036766677, 15251.504032389721, 15288.717940036699, 15325.962066049882, 15363.236385931186, 15400.540875242012, 15437.875509602998, 15475.240264693792, 15512.635116252815, 15550.060040077016, 15587.515012021642, 15625.000007999999, 15662.515003983235, 15700.059976000095, 15737.63490013668, 15775.23975253625, 15812.874509398978, 15850.539146981722, 15888.233641597797, 15925.957969616771, 15963.71210746423, 16001.496031621542, 16039.309718625673, 16077.153145068936, 16115.026287598792, 16152.929122917614, 16190.861627782506, 16228.823779005055, 16266.815553451142, 16304.83692804071, 16342.887879747568, 16380.968385599186, 16419.07842267647, 16457.217968113568, 16495.386999097656, 16533.585492868748, 16571.813426719476, 16610.070777994897, 16648.35752409228, 16686.67364246092, 16725.019110601937, 16763.393906068068, 16801.798006463476, 16840.231389443557, 16878.69403271473, 16917.185914034282, 16955.70701121012, 16994.25730210061, 17032.836764614403, 17071.4453767102, 17110.0831163966, 17148.749961731904, 17187.445890823918, 17226.170881829774, 17264.924912955747, 17303.707962457065, 17342.520008637726, 17381.361029850337, 17420.231004495894, 17459.12991102363, 17498.057727930835, 17537.014433762663, 17576.000007111976, 17615.014426619127, 17654.057670971848, 17693.129718905016, 17732.230549200514, 17771.360140687037, 17810.518472239935, 17849.70552278104, 17888.92127127849, 17928.165696746557, 17967.438778245494, 18006.740494881356, 18046.070825805822, 18085.429750216055, 18124.81724735452, 18164.233296508828, 18203.677877011556, 18243.15096824011, 18282.652549616534, 18322.182600607386, 18361.741100723535, 18401.328029520046, 18440.94336659597, 18480.58709159425, 18520.259184201503, 18559.959624147894, 18599.688391206986, 18639.445465195575, 18679.230825973536, 18719.044453443665, 18758.88632755154, 18798.756428285356, 18838.654735675795, 18878.581229795847, 18918.535890760682, 18958.51869872749, 18998.529633895356, 19038.56867650507, 19078.63580683902, 19118.73100522103, 19158.85425201622, 19199.005527630852, 19239.184812512198, 19279.39208714839, 19319.627332068285, 19359.890527841322, 19400.181655077355, 19440.50069442657, 19480.847626579292, 19521.222432265866, 19561.625092256523, 19602.05558736124, 19642.5138984296, 19683.00000635066, 19723.513892052808, 19764.055536503638, 19804.624920709808, 19845.222025716925, 19885.846832609368, 19926.49932251021, 19967.179476581063, 20007.887276021924, 20048.622702071083, 20089.38573600497, 20130.17635913804, 20170.994552822624, 20211.840298448828, 20252.713577444385, 20293.61437127453, 20334.54266144188, 20375.498429486335, 20416.48165698488, 20457.492325551535, 20498.530416837206, 20539.595912529534, 20580.688794352824, 20621.809044067886, 20662.956643471913, 20704.13157439838, 20745.333818716925, 20786.56335833319, 20827.82017518876, 20869.104251261, 20910.415568562952, 20951.754109143225, 20993.119855085853, 21034.512788510223, 21075.932891570897, 21117.380146457563, 21158.854535394865, 21200.356040642335, 21241.884644494232, 21283.440329279474, 21325.02307736149, 21366.632871138117, 21408.269693041515, 21449.93352553802, 21491.624351128045, 21533.342152345973, 21575.086911760056, 21616.85861197228, 21658.65723561828, 21700.482765367226, 21742.335183921714, 21784.214474017648, 21826.120618424153, 21868.053599943458, 21910.013401410783, 21952.00000569424, 21994.013395694747, 22036.05355434589, 22078.12046461383, 22120.21410949722, 22162.334472027083, 22204.481535266703, 22246.65528231154, 22288.855696289123, 22331.082760358935, 22373.33645771234, 22415.616771572448, 22457.923685194055, 22500.2571818635, 22542.617244898607, 22585.003857648553, 22627.417003493792, 22669.856665845946, 22712.32282814772, 22754.815473872775, 22797.33458652568, 22839.880149641765, 22882.452146787065, 22925.050561558197, 22967.675377582294, 23010.32657851687, 23053.004148049775, 23095.708069899047, 23138.438327812877, 23181.19490556947, 23223.977786976975, 23266.786955873387, 23309.622396126455, 23352.484091633596, 23395.372026321787, 23438.28618414751, 23481.22654909662, 23524.193105184288, 23567.18583645489, 23610.20472698193, 23653.249760867955, 23696.320922244453, 23739.418195271763, 23782.541564139017, 23825.691013064024, 23868.8665262932, 23912.068088101456, 23955.295682792144, 23998.54929469696, 24041.828908175852, 24085.13450761693, 24128.466077436424, 24171.82360207851, 24215.207066015355, 24258.616453746905, 24302.051749800878, 24345.512938732674, 24389.000005125265, 24432.51293358913, 24476.05170876218, 24519.616315309668, 24563.206737924098, 24606.822961325175, 24650.464970259687, 24694.13274950145, 24737.826283851216, 24781.5455581366, 24825.29055721201, 24869.06126595855, 24912.857669283952, 24956.67975212248, 25000.527499434887, 25044.400896208317, 25088.299927456224, 25132.224578218298, 25176.1748335604, 25220.150678574464, 25264.15209837845, 25308.179078116227, 25352.23160295756, 25396.30965809797, 25440.413228758687, 25484.5423001866, 25528.696857654133, 25572.876886459213, 25617.082371925182, 25661.313299400714, 25705.569654259754, 25749.85142190145, 25794.15858775006, 25838.491137254896, 25882.849055890274, 25927.23232915538, 25971.640942574268, 26016.07488169574, 26060.5341320933, 26105.018679365086, 26149.528509133772, 26194.06360704654, 26238.62395877497, 26283.20955001501, 26327.820366486856, 26372.45639393494, 26417.117618127835, 26461.804024858167, 26506.5155999426, 26551.25232922169, 26596.014198559904, 26640.801193845502, 26685.61330099048, 26730.450505930497, 26775.31279462483, 26820.200153056277, 26865.112567231132, 26910.050023179072, 26955.01250695314, 27000.00000462963, 27045.012502308076, 27090.049986111135, 27135.112442184574, 27180.199856697152, 27225.31221584061, 27270.44950582957, 27315.611712901475, 27360.79882331655, 27406.010823357712, 27451.247699330535, 27496.509437563167, 27541.796024406252, 27587.107446232923, 27632.443689438693, 27677.80474044139, 27723.19058568115, 27768.60121162029, 27814.036604743298, 27859.49675155673, 27904.981638589194, 27950.49125239125, 27996.02557953539, 28041.584606615936, 28087.16832024902, 28132.776707072484, 28178.409753745862, 28224.067446950306, 28269.74977338851, 28315.456719784688, 28361.18827288448, 28406.944419454903, 28452.72514628432, 28498.53044018235, 28544.36028797983, 28590.214676528754, 28636.093592702196, 28681.99702339431, 28727.924955520197, 28773.87737601591, 28819.85427183836, 28865.85562996531, 28911.881437395252, 28957.931681147395, 29004.00634826161, 29050.105425798374, 29096.22890083868, 29142.37676048404, 29188.54899185638, 29234.745582098025, 29280.96651837162, 29327.21178786009, 29373.481377766573, 29419.775275314394, 29466.093467746956, 29512.43594232777, 29558.802686340325, 29605.19368708808, 29651.608931894407, 29698.04840810251, 29744.512103075416, 29791.000004195896, 29837.512098866424, 29884.048374509097, 29930.60881856565, 29977.193418497332, 30023.802161784904, 30070.435035928567, 30117.092028447896, 30163.77312688186, 30210.47831878867, 30257.207591745806, 30303.960933349954, 30350.73833121692, 30397.53977298163, 30444.36524629804, 30491.214738839117, 30538.08823829678, 30584.98573238183, 30631.90720882394, 30678.852655371586, 30725.822059791986, 30772.8154098711, 30819.832693413508, 30866.87389824243, 30913.939012199662, 30961.028023145485, 31008.140918958685, 31055.277687536465, 31102.43831679439, 31149.622794666393, 31196.831109104656, 31244.063248079627, 31291.319199579935, 31338.598951612374, 31385.902492201814, 31433.2298093912, 31480.580891241505, 31527.95572583164, 31575.354301258438, 31622.776605636638]
N=int(input())
print(ANS[N])
0