結果
問題 | No.2971 無理積分 |
ユーザー | ecottea |
提出日時 | 2024-11-30 03:34:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 1,000 ms |
コード長 | 13,734 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 13,696 KB |
実行使用メモリ | 11,776 KB |
最終ジャッジ日時 | 2024-11-30 03:34:52 |
合計ジャッジ時間 | 2,667 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 29 ms
11,648 KB |
testcase_01 | AC | 32 ms
11,520 KB |
testcase_02 | AC | 32 ms
11,520 KB |
testcase_03 | AC | 30 ms
11,520 KB |
testcase_04 | AC | 28 ms
11,648 KB |
testcase_05 | AC | 29 ms
11,648 KB |
testcase_06 | AC | 28 ms
11,648 KB |
testcase_07 | AC | 28 ms
11,520 KB |
testcase_08 | AC | 31 ms
11,520 KB |
testcase_09 | AC | 29 ms
11,520 KB |
testcase_10 | AC | 27 ms
11,776 KB |
testcase_11 | AC | 28 ms
11,648 KB |
testcase_12 | AC | 28 ms
11,648 KB |
testcase_13 | AC | 28 ms
11,648 KB |
testcase_14 | AC | 28 ms
11,520 KB |
testcase_15 | AC | 29 ms
11,520 KB |
testcase_16 | AC | 28 ms
11,648 KB |
testcase_17 | AC | 30 ms
11,648 KB |
testcase_18 | AC | 29 ms
11,648 KB |
testcase_19 | AC | 30 ms
11,648 KB |
testcase_20 | AC | 29 ms
11,648 KB |
testcase_21 | AC | 33 ms
11,520 KB |
testcase_22 | AC | 29 ms
11,648 KB |
testcase_23 | AC | 28 ms
11,648 KB |
testcase_24 | AC | 29 ms
11,648 KB |
testcase_25 | AC | 29 ms
11,520 KB |
testcase_26 | AC | 28 ms
11,648 KB |
testcase_27 | AC | 29 ms
11,648 KB |
testcase_28 | AC | 29 ms
11,520 KB |
testcase_29 | AC | 28 ms
11,648 KB |
testcase_30 | AC | 28 ms
11,520 KB |
testcase_31 | AC | 29 ms
11,648 KB |
testcase_32 | AC | 30 ms
11,520 KB |
testcase_33 | AC | 30 ms
11,648 KB |
testcase_34 | AC | 29 ms
11,648 KB |
testcase_35 | AC | 29 ms
11,648 KB |
ソースコード
# https://qiita.com/nuo_t/items/d3f61f55ef5ba689dab4 # 埋め込み用コード # from scipy import integrate # for n in range(1001): # def f(x) : # return (x**3 + n**3)**0.5 # ans,err = integrate.quad(f,0,1) # print('{:f}'.format(ans)) ans_all = [0.400000, 1.111448, 2.871865, 5.220083, 8.015590, 11.191507, 14.705438, 18.527006, 22.632940, 27.004629, 31.626729, 36.486299, 41.572226, 46.874833, 52.385590, 58.096902, 64.001953, 70.094579, 76.369169, 82.820589, 89.444117, 96.235388, 103.190358, 110.305258, 117.576571, 125.001000, 132.575450, 140.297006, 148.162917, 156.170580, 164.317528, 172.601419, 181.020027, 189.571227, 198.252995, 207.063396, 216.000579, 225.062769, 234.248266, 243.555435, 252.982707, 262.528570, 272.191569, 281.970300, 291.863410, 301.869591, 311.987580, 322.216154, 332.554131, 343.000364, 353.553744, 364.213193, 374.977666, 385.846148, 396.817653, 407.891223, 419.065926, 430.340853, 441.715123, 453.187875, 464.758271, 476.425493, 488.188744, 500.047248, 512.000244, 524.046992, 536.186768, 548.418864, 560.742588, 573.157265, 585.662232, 598.256843, 610.940464, 623.712474, 636.572266, 649.519245, 662.552828, 675.672443, 688.877529, 702.167537, 715.541927, 729.000171, 742.541750, 756.166152, 769.872879, 783.661438, 797.531347, 811.482132, 825.513325, 839.624470, 853.815115, 868.084817, 882.433142, 896.859660, 911.363950, 925.945598, 940.604194, 955.339338, 970.150633, 985.037690, 1000.000125, 1015.037561, 1030.149625, 1045.335951, 1060.596177, 1075.929947, 1091.336909, 1106.816719, 1122.369035, 1137.993519, 1153.689841, 1169.457673, 1185.296693, 1201.206581, 1217.187023, 1233.237710, 1249.358335, 1265.548596, 1281.808195, 1298.136838, 1314.534233, 1331.000094, 1347.534137, 1364.136082, 1380.805653, 1397.542575, 1414.346581, 1431.217401, 1448.154774, 1465.158439, 1482.228137, 1499.363615, 1516.564621, 1533.830907, 1551.162226, 1568.558335, 1586.018994, 1603.543966, 1621.133014, 1638.785907, 1656.502415, 1674.282309, 1692.125365, 1710.031359, 1728.000072, 1746.031286, 1764.124783, 1782.280351, 1800.497778, 1818.776855, 1837.117375, 1855.519132, 1873.981924, 1892.505548, 1911.089807, 1929.734502, 1948.439440, 1967.204425, 1986.029267, 2004.913776, 2023.857764, 2042.861045, 2061.923435, 2081.044750, 2100.224809, 2119.463434, 2138.760447, 2158.115671, 2177.528932, 2197.000057, 2216.528874, 2236.115214, 2255.758908, 2275.459789, 2295.217691, 2315.032451, 2334.903906, 2354.831894, 2374.816256, 2394.856833, 2414.953467, 2435.106004, 2455.314287, 2475.578165, 2495.897484, 2516.272094, 2536.701845, 2557.186589, 2577.726178, 2598.320467, 2618.969311, 2639.672565, 2660.430087, 2681.241737, 2702.107372, 2723.026854, 2744.000046, 2765.026808, 2786.107006, 2807.240504, 2828.427169, 2849.666866, 2870.959465, 2892.304834, 2913.702842, 2935.153361, 2956.656262, 2978.211418, 2999.818703, 3021.477991, 3043.189158, 3064.952080, 3086.766634, 3108.632698, 3130.550151, 3152.518874, 3174.538746, 3196.609649, 3218.731466, 3240.904079, 3263.127373, 3285.401231, 3307.725540, 3330.100186, 3352.525056, 3375.000037, 3397.525018, 3420.099889, 3442.724539, 3465.398859, 3488.122740, 3510.896075, 3533.718756, 3556.590678, 3579.511733, 3602.481818, 3625.500827, 3648.568658, 3671.685206, 3694.850369, 3718.064046, 3741.326135, 3764.636536, 3787.995149, 3811.401875, 3834.856614, 3858.359269, 3881.909743, 3905.507938, 3929.153757, 3952.847107, 3976.587890, 4000.376014, 4024.211382, 4048.093903, 4072.023483, 4096.000031, 4120.023453, 4144.093658, 4168.210557, 4192.374059, 4216.584074, 4240.840512, 4265.143286, 4289.492307, 4313.887487, 4338.328739, 4362.815977, 4387.349114, 4411.928065, 4436.552744, 4461.223067, 4485.938949, 4510.700306, 4535.507055, 4560.359114, 4585.256400, 4610.198830, 4635.186323, 4660.218799, 4685.296175, 4710.418373, 4735.585312, 4760.796913, 4786.053097, 4811.353786, 4836.698900, 4862.088363, 4887.522097, 4913.000025, 4938.522071, 4964.088159, 4989.698212, 5015.352156, 5041.049915, 5066.791416, 5092.576583, 5118.405342, 5144.277622, 5170.193347, 5196.152447, 5222.154847, 5248.200477, 5274.289265, 5300.421139, 5326.596028, 5352.813863, 5379.074572, 5405.378086, 5431.724335, 5458.113250, 5484.544762, 5511.018803, 5537.535305, 5564.094199, 5590.695417, 5617.338894, 5644.024561, 5670.752353, 5697.522203, 5724.334044, 5751.187812, 5778.083441, 5805.020866, 5832.000021, 5859.020844, 5886.083269, 5913.187233, 5940.332672, 5967.519522, 5994.747722, 6022.017208, 6049.327917, 6076.679788, 6104.072759, 6131.506768, 6158.981754, 6186.497656, 6214.054413, 6241.651965, 6269.290251, 6296.969211, 6324.688787, 6352.448918, 6380.249544, 6408.090609, 6435.972052, 6463.893815, 6491.855840, 6519.858070, 6547.900446, 6575.982911, 6604.105409, 6632.267881, 6660.470272, 6688.712526, 6716.994585, 6745.316394, 6773.677897, 6802.079039, 6830.519764, 6859.000018, 6887.519746, 6916.078893, 6944.677404, 6973.315227, 7001.992306, 7030.708588, 7059.464020, 7088.258548, 7117.092120, 7145.964683, 7174.876184, 7203.826570, 7232.815790, 7261.843791, 7290.910523, 7320.015932, 7349.159969, 7378.342582, 7407.563719, 7436.823331, 7466.121366, 7495.457775, 7524.832506, 7554.245512, 7583.696740, 7613.186143, 7642.713671, 7672.279273, 7701.882903, 7731.524510, 7761.204046, 7790.921463, 7820.676713, 7850.469747, 7880.300518, 7910.168977, 7940.075078, 7970.018774, 8000.000016, 8030.018758, 8060.074953, 8090.168555, 8120.299517, 8150.467793, 8180.673337, 8210.916103, 8241.196045, 8271.513117, 8301.867275, 8332.258472, 8362.686665, 8393.151807, 8423.653854, 8454.192762, 8484.768485, 8515.380981, 8546.030204, 8576.716111, 8607.438658, 8638.197801, 8668.993497, 8699.825702, 8730.694374, 8761.599469, 8792.540944, 8823.518757, 8854.532865, 8885.583225, 8916.669796, 8947.792535, 8978.951400, 9010.146350, 9041.377343, 9072.644336, 9103.947290, 9135.286161, 9166.660911, 9198.071496, 9229.517877, 9261.000013, 9292.517864, 9324.071388, 9355.660546, 9387.285297, 9418.945602, 9450.641420, 9482.372712, 9514.139438, 9545.941559, 9577.779035, 9609.651828, 9641.559897, 9673.503205, 9705.481711, 9737.495379, 9769.544168, 9801.628041, 9833.746959, 9865.900884, 9898.089778, 9930.313603, 9962.572321, 9994.865895, 10027.194286, 10059.557458, 10091.955373, 10124.387994, 10156.855284, 10189.357205, 10221.893721, 10254.464796, 10287.070392, 10319.710473, 10352.385003, 10385.093945, 10417.837264, 10450.614922, 10483.426885, 10516.273116, 10549.153580, 10582.068241, 10615.017063, 10648.000012, 10681.017051, 10714.068147, 10747.153263, 10780.272364, 10813.425417, 10846.612386, 10879.833236, 10913.087934, 10946.376444, 10979.698732, 11013.054765, 11046.444507, 11079.867926, 11113.324986, 11146.815655, 11180.339899, 11213.897683, 11247.488975, 11281.113742, 11314.771949, 11348.463563, 11382.188553, 11415.946884, 11449.738523, 11483.563439, 11517.421597, 11551.312966, 11585.237514, 11619.195207, 11653.186013, 11687.209900, 11721.266836, 11755.356790, 11789.479728, 11823.635619, 11857.824432, 11892.046134, 11926.300694, 11960.588081, 11994.908264, 12029.261210, 12063.646888, 12098.065269, 12132.516320, 12167.000010, 12201.516309, 12236.065187, 12270.646611, 12305.260552, 12339.906979, 12374.585862, 12409.297170, 12444.040873, 12478.816941, 12513.625344, 12548.466052, 12583.339034, 12618.244262, 12653.181705, 12688.151333, 12723.153117, 12758.187028, 12793.253036, 12828.351112, 12863.481226, 12898.643349, 12933.837453, 12969.063507, 13004.321484, 13039.611353, 13074.933088, 13110.286658, 13145.672035, 13181.089191, 13216.538096, 13252.018724, 13287.531044, 13323.075030, 13358.650652, 13394.257884, 13429.896695, 13465.567060, 13501.268950, 13537.002336, 13572.767192, 13608.563490, 13644.391201, 13680.250299, 13716.140756, 13752.062545, 13788.015639, 13824.000009, 13860.015630, 13896.062473, 13932.140512, 13968.249720, 14004.390071, 14040.561536, 14076.764090, 14112.997706, 14149.262357, 14185.558017, 14221.884659, 14258.242257, 14294.630784, 14331.050214, 14367.500522, 14403.981680, 14440.493664, 14477.036446, 14513.610001, 14550.214303, 14586.849326, 14623.515044, 14660.211433, 14696.938465, 14733.696116, 14770.484361, 14807.303173, 14844.152527, 14881.032399, 14917.942762, 14954.883592, 14991.854864, 15028.856552, 15065.888631, 15102.951078, 15140.043866, 15177.166970, 15214.320368, 15251.504032, 15288.717940, 15325.962066, 15363.236386, 15400.540875, 15437.875510, 15475.240265, 15512.635116, 15550.060040, 15587.515012, 15625.000008, 15662.515004, 15700.059976, 15737.634900, 15775.239753, 15812.874509, 15850.539147, 15888.233642, 15925.957970, 15963.712107, 16001.496032, 16039.309719, 16077.153145, 16115.026288, 16152.929123, 16190.861628, 16228.823779, 16266.815553, 16304.836928, 16342.887880, 16380.968386, 16419.078423, 16457.217968, 16495.386999, 16533.585493, 16571.813427, 16610.070778, 16648.357524, 16686.673642, 16725.019111, 16763.393906, 16801.798006, 16840.231389, 16878.694033, 16917.185914, 16955.707011, 16994.257302, 17032.836765, 17071.445377, 17110.083116, 17148.749962, 17187.445891, 17226.170882, 17264.924913, 17303.707962, 17342.520009, 17381.361030, 17420.231004, 17459.129911, 17498.057728, 17537.014434, 17576.000007, 17615.014427, 17654.057671, 17693.129719, 17732.230549, 17771.360141, 17810.518472, 17849.705523, 17888.921271, 17928.165697, 17967.438778, 18006.740495, 18046.070826, 18085.429750, 18124.817247, 18164.233297, 18203.677877, 18243.150968, 18282.652550, 18322.182601, 18361.741101, 18401.328030, 18440.943367, 18480.587092, 18520.259184, 18559.959624, 18599.688391, 18639.445465, 18679.230826, 18719.044453, 18758.886328, 18798.756428, 18838.654736, 18878.581230, 18918.535891, 18958.518699, 18998.529634, 19038.568677, 19078.635807, 19118.731005, 19158.854252, 19199.005528, 19239.184813, 19279.392087, 19319.627332, 19359.890528, 19400.181655, 19440.500694, 19480.847627, 19521.222432, 19561.625092, 19602.055587, 19642.513898, 19683.000006, 19723.513892, 19764.055537, 19804.624921, 19845.222026, 19885.846833, 19926.499323, 19967.179477, 20007.887276, 20048.622702, 20089.385736, 20130.176359, 20170.994553, 20211.840298, 20252.713577, 20293.614371, 20334.542661, 20375.498429, 20416.481657, 20457.492326, 20498.530417, 20539.595913, 20580.688794, 20621.809044, 20662.956643, 20704.131574, 20745.333819, 20786.563358, 20827.820175, 20869.104251, 20910.415569, 20951.754109, 20993.119855, 21034.512789, 21075.932892, 21117.380146, 21158.854535, 21200.356041, 21241.884644, 21283.440329, 21325.023077, 21366.632871, 21408.269693, 21449.933526, 21491.624351, 21533.342152, 21575.086912, 21616.858612, 21658.657236, 21700.482765, 21742.335184, 21784.214474, 21826.120618, 21868.053600, 21910.013401, 21952.000006, 21994.013396, 22036.053554, 22078.120465, 22120.214109, 22162.334472, 22204.481535, 22246.655282, 22288.855696, 22331.082760, 22373.336458, 22415.616772, 22457.923685, 22500.257182, 22542.617245, 22585.003858, 22627.417003, 22669.856666, 22712.322828, 22754.815474, 22797.334587, 22839.880150, 22882.452147, 22925.050562, 22967.675378, 23010.326579, 23053.004148, 23095.708070, 23138.438328, 23181.194906, 23223.977787, 23266.786956, 23309.622396, 23352.484092, 23395.372026, 23438.286184, 23481.226549, 23524.193105, 23567.185836, 23610.204727, 23653.249761, 23696.320922, 23739.418195, 23782.541564, 23825.691013, 23868.866526, 23912.068088, 23955.295683, 23998.549295, 24041.828908, 24085.134508, 24128.466077, 24171.823602, 24215.207066, 24258.616454, 24302.051750, 24345.512939, 24389.000005, 24432.512934, 24476.051709, 24519.616315, 24563.206738, 24606.822961, 24650.464970, 24694.132750, 24737.826284, 24781.545558, 24825.290557, 24869.061266, 24912.857669, 24956.679752, 25000.527499, 25044.400896, 25088.299927, 25132.224578, 25176.174834, 25220.150679, 25264.152098, 25308.179078, 25352.231603, 25396.309658, 25440.413229, 25484.542300, 25528.696858, 25572.876886, 25617.082372, 25661.313299, 25705.569654, 25749.851422, 25794.158588, 25838.491137, 25882.849056, 25927.232329, 25971.640943, 26016.074882, 26060.534132, 26105.018679, 26149.528509, 26194.063607, 26238.623959, 26283.209550, 26327.820366, 26372.456394, 26417.117618, 26461.804025, 26506.515600, 26551.252329, 26596.014199, 26640.801194, 26685.613301, 26730.450506, 26775.312795, 26820.200153, 26865.112567, 26910.050023, 26955.012507, 27000.000005, 27045.012502, 27090.049986, 27135.112442, 27180.199857, 27225.312216, 27270.449506, 27315.611713, 27360.798823, 27406.010823, 27451.247699, 27496.509438, 27541.796024, 27587.107446, 27632.443689, 27677.804740, 27723.190586, 27768.601212, 27814.036605, 27859.496752, 27904.981639, 27950.491252, 27996.025580, 28041.584607, 28087.168320, 28132.776707, 28178.409754, 28224.067447, 28269.749773, 28315.456720, 28361.188273, 28406.944419, 28452.725146, 28498.530440, 28544.360288, 28590.214677, 28636.093593, 28681.997023, 28727.924956, 28773.877376, 28819.854272, 28865.855630, 28911.881437, 28957.931681, 29004.006348, 29050.105426, 29096.228901, 29142.376760, 29188.548992, 29234.745582, 29280.966518, 29327.211788, 29373.481378, 29419.775275, 29466.093468, 29512.435942, 29558.802686, 29605.193687, 29651.608932, 29698.048408, 29744.512103, 29791.000004, 29837.512099, 29884.048375, 29930.608819, 29977.193418, 30023.802162, 30070.435036, 30117.092028, 30163.773127, 30210.478319, 30257.207592, 30303.960933, 30350.738331, 30397.539773, 30444.365246, 30491.214739, 30538.088238, 30584.985732, 30631.907209, 30678.852655, 30725.822060, 30772.815410, 30819.832693, 30866.873898, 30913.939012, 30961.028023, 31008.140919, 31055.277688, 31102.438317, 31149.622795, 31196.831109, 31244.063248, 31291.319200, 31338.598952, 31385.902492, 31433.229809, 31480.580891, 31527.955726, 31575.354301, 31622.776606] n = int(input()) print(ans_all[n])