Submission #22255

#TimeUsernameProblemLanguageResultExecution timeMemory
22255크리님 제가 귀여우면 됬지 뭘 더 원하세요 진짜 (#40)August14 Beginner Contest (KRIII5_ABC)Cpython 3
2 / 7
517 ms5 KiB
e={8320, 8322, 8330, 8393, 8394, 8462, 8467, 8477, 8478, 8595, 8741, 8872, 8877, 8882, 8891, 8892, 8893, 8895, 8901, 8902, 8903, 8907, 8911, 8916, 8922, 8925, 8926, 8932, 8933, 8944, 8949, 8958, 8974, 8975, 8976, 8977, 8978, 8979, 8981, 8984, 8986, 8992, 9006, 9007, 9008, 9009, 9010, 9011, 9012, 9013, 9014, 9015, 9019, 9020, 9021, 9029, 9037, 9046, 9047, 9076, 9078, 9079, 9081, 9084, 9085, 9086, 9093, 9094, 9095, 9177, 9184, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 9237, 1049, 9238, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 9246, 1062, 1063, 1064, 1065, 1066, 1067, 9251, 1069, 1071, 1072, 1073, 1074, 1075, 1076, 1078, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 9272, 1088, 1089, 1090, 9274, 1092, 9276, 1094, 1095, 9279, 1097, 1099, 1100, 1102, 1103, 1104, 1105, 1106, 9295, 1108, 1109, 1110, 1112, 1114, 1115, 1117, 1119, 1120, 1121, 1124, 9316, 1126, 9318, 1128, 1129, 9319, 1131, 1132, 9320, 9321, 1135, 1136, 1137, 1138, 1139, 1140, 1141, 9325, 1143, 1144, 1145, 1146, 9335, 9339, 1149, 1150, 9341, 1152, 1153, 9343, 1155, 9347, 1157, 1158, 1159, 1166, 1167, 1168, 9358, 9359, 9363, 1173, 9367, 1176, 1177, 9368, 9369, 9370, 1181, 1182, 9371, 1184, 1185, 9372, 9373, 1188, 1189, 9374, 9375, 9376, 1193, 1197, 1198, 1199, 1200, 1201, 1203, 1204, 1205, 1206, 1208, 1209, 1212, 1213, 1215, 1222, 1225, 9417, 1229, 9421, 1233, 1234, 1235, 1236, 1237, 1238, 1239, 1240, 1241, 1242, 1243, 9435, 9436, 1246, 1247, 1248, 9437, 9438, 1251, 1252, 1253, 1254, 1255, 9439, 9440, 9441, 9442, 1260, 1261, 1262, 9447, 9455, 1265, 9457, 1267, 1268, 1269, 1270, 9460, 9461, 1273, 9463, 1275, 9465, 9468, 9469, 1279, 1280, 9470, 1282, 1283, 9471, 1285, 9472, 9475, 9478, 1289, 9479, 1291, 1292, 9481, 1294, 9486, 1296, 1297, 1298, 9488, 1300, 1301, 1302, 1303, 9490, 1305, 1306, 9492, 9494, 1309, 9497, 9498, 1312, 9501, 9506, 1315, 1316, 9507, 9509, 1321, 1322, 1323, 9514, 1325, 1326, 9515, 1328, 9516, 9517, 1331, 9518, 9519, 9520, 9521, 9522, 1337, 9527, 1339, 9529, 1341, 1342, 1343, 1344, 1345, 9535, 1347, 9536, 9537, 1350, 1351, 9540, 9543, 1354, 9544, 1356, 1357, 1358, 1359, 9545, 9546, 9550, 9553, 9556, 1365, 1371, 1373, 1376, 1377, 1381, 9575, 9576, 1388, 1389, 1390, 1392, 9584, 1394, 9586, 1396, 1398, 1399, 9592, 1402, 9594, 1404, 1405, 1406, 1407, 1408, 9596, 1410, 9598, 1412, 1413, 9601, 1415, 1416, 1417, 1418, 9602, 9610, 1421, 1422, 1423, 1424, 9613, 9614, 1427, 9616, 9619, 1430, 1431, 1432, 9623, 9625, 1435, 1436, 1437, 9626, 1439, 1440, 1441, 1442, 9627, 1444, 9629, 1446, 1448, 1449, 1450, 9644, 1453, 1455, 1456, 1457, 9649, 1459, 9653, 1462, 1463, 1464, 9654, 9655, 9656, 9657, 1469, 1470, 9658, 9659, 9660, 9661, 1475, 1476, 1477, 9662, 9663, 1480, 9664, 1484, 1485, 1488, 1491, 1492, 1495, 1500, 1501, 1502, 9693, 1504, 1505, 1506, 1507, 1508, 1509, 1510, 1512, 1513, 1515, 1516, 1517, 1519, 1520, 1521, 1522, 1523, 1524, 1526, 1527, 1528, 1529, 1530, 1531, 1535, 1538, 1540, 1541, 1543, 1544, 1545, 1546, 1547, 1548, 1550, 1551, 1554, 1555, 1557, 1560, 1561, 1562, 1563, 1564, 1565, 1566, 9753, 1568, 1569, 1570, 9763, 1572, 9764, 1577, 1581, 1582, 1587, 1588, 1590, 1591, 1592, 1593, 1595, 1598, 1599, 1600, 1603, 1604, 1605, 1607, 1612, 1613, 1614, 1615, 1620, 1622, 1629, 1630, 1633, 1637, 1638, 1639, 1643, 1644, 1645, 1646, 1647, 1652, 1654, 1655, 1656, 1657, 1660, 1662, 1664, 1668, 1669, 1670, 1671, 1672, 1673, 9866, 9867, 1676, 1677, 9868, 1679, 9869, 1681, 9870, 9871, 1684, 9872, 9873, 1687, 9874, 1689, 1690, 1691, 1692, 1695, 1697, 1699, 1701, 1704, 1707, 1708, 1709, 1712, 1713, 1715, 1717, 1718, 1720, 1722, 1725, 1727, 1729, 1730, 1731, 1732, 1735, 1737, 1740, 9933, 9934, 1743, 1744, 9935, 9936, 1747, 1748, 1749, 1750, 9937, 1752, 1753, 9938, 1755, 1756, 1757, 9945, 1759, 9946, 1761, 1763, 1764, 1766, 1767, 1769, 1773, 1777, 1780, 1781, 1782, 1785, 1786, 1787, 1788, 1789, 1790, 1792, 1793, 9987, 10126, 1797, 1799, 9992, 1801, 1802, 9995, 9996, 1805, 1806, 1807, 9997, 9999, 1810, 10000, 1812, 1813, 10001, 1816, 1817, 1818, 1821, 1822, 10022, 1833, 1834, 1835, 1836, 10026, 1838, 1843, 1847, 10039, 1849, 1850, 10040, 10041, 10042, 10045, 1855, 10046, 10047, 10048, 10053, 1863, 10056, 1865, 1871, 1874, 1889, 1890, 1895, 1898, 1900, 10093, 1904, 10097, 1908, 10101, 10102, 1911, 1912, 1913, 1914, 1915, 1916, 10103, 1919, 1920, 1922, 1924, 1925, 1926, 1927, 1929, 1930, 10121, 1932, 1933, 1934, 1935, 10122, 1937, 10124, 1939, 1940, 1941, 1942, 1943, 10131, 1945, 1946, 1947, 1948, 1949, 1951, 1952, 1953, 1954, 1955, 1956, 1957, 1958, 1959, 1963, 1964, 1965, 1966, 1967, 10156, 1969, 10157, 10158, 1972, 10159, 10160, 1975, 1976, 1977, 1978, 10162, 1980, 1981, 10163, 10166, 10170, 10171, 10164, 1987, 10172, 1989, 1990, 1991, 1992, 10178, 10179, 1995, 1996, 10182, 1999, 2002, 2003, 2004, 2005, 2007, 2008, 2010, 2011, 2012, 10205, 2014, 2015, 2018, 10211, 10212, 10213, 2022, 2023, 2024, 10214, 10215, 10216, 10217, 10219, 10220, 10173, 10221, 2033, 2034, 10222, 2036, 2037, 2038, 10223, 2040, 10227, 2042, 2043, 2045, 2052, 10244, 2056, 2057, 10250, 10251, 10252, 10253, 2063, 10256, 2066, 10258, 10259, 2069, 10261, 10262, 2072, 2073, 10263, 2075, 10265, 10266, 2078, 2079, 10267, 10270, 2082, 2086, 2087, 2088, 2089, 2090, 2092, 2096, 2097, 2098, 2099, 2103, 2104, 2108, 2109, 2110, 2112, 2115, 2117, 2118, 10311, 10312, 2123, 2124, 10315, 2126, 2128, 10321, 2133, 2135, 2136, 10329, 2138, 10330, 2141, 2142, 2143, 10337, 10341, 2150, 10342, 10343, 2153, 2154, 2155, 2156, 2157, 10345, 2159, 2160, 2161, 2162, 2163, 2164, 10348, 2166, 2167, 2168, 2169, 2170, 2171, 10356, 10357, 10363, 2175, 2176, 10366, 2178, 10369, 2180, 10370, 2183, 2184, 2185, 2186, 2188, 2190, 2192, 2193, 2194, 2195, 2196, 2197, 10386, 2200, 2201, 2205, 2206, 2207, 2208, 2210, 2211, 2212, 2216, 2217, 2218, 2220, 2224, 2225, 2226, 10419, 2228, 2229, 2230, 2231, 2232, 2233, 2234, 10420, 10422, 2237, 10425, 2239, 2240, 10430, 2242, 2243, 10431, 10432, 2246, 2247, 2248, 10434, 2250, 10435, 2252, 2253, 10448, 2257, 2258, 2259, 10451, 2261, 2262, 10453, 10454, 2266, 2268, 2270, 2272, 10464, 2277, 10472, 2281, 10474, 2285, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2300, 2301, 2302, 2303, 2304, 2305, 2309, 2312, 2313, 10504, 2315, 2316, 10506, 10509, 10510, 2320, 10513, 2322, 2327, 10520, 10521, 10522, 2331, 10523, 10525, 10526, 10527, 2336, 10528, 2338, 2342, 2344, 2346, 10539, 10540, 2349, 2352, 2355, 2357, 2358, 10551, 10552, 10553, 10554, 10555, 2364, 10556, 2366, 10560, 2369, 2370, 2373, 10565, 2376, 10569, 10570, 2381, 2385, 2388, 2392, 2394, 2395, 2399, 2401, 2405, 10597, 2407, 10599, 10600, 2410, 2413, 2415, 2417, 2418, 2419, 2420, 2421, 2422, 2423, 2424, 10610, 2426, 10612, 2428, 10615, 2431, 10623, 2433, 10624, 2435, 2436, 2437, 2438, 2439, 2440, 2441, 2442, 2443, 2444, 2445, 2446, 2447, 2448, 10634, 10637, 10639, 10641, 10643, 10644, 2455, 2456, 10645, 2458, 2460, 2461, 2463, 2464, 2465, 2467, 2468, 10659, 2470, 10661, 10663, 2473, 10664, 2475, 2476, 2477, 2480, 10672, 2482, 2484, 2485, 2487, 2490, 2491, 2492, 2493, 10685, 2495, 2496, 10687, 10688, 2500, 2501, 2502, 2503, 2504, 2505, 2506, 10699, 2508, 10701, 10702, 2511, 2512, 10703, 2514, 2515, 10704, 2517, 10705, 10706, 2520, 2521, 2522, 2523, 10707, 2525, 2526, 2527, 10711, 2529, 2530, 2531, 2532, 2533, 10717, 2535, 10720, 10721, 10722, 10725, 10726, 2541, 10727, 10729, 10730, 10731, 2546, 2547, 2548, 10733, 10734, 2551, 2552, 2553, 10737, 2555, 2556, 2557, 2558, 2559, 2560, 10753, 2562, 2563, 10754, 2565, 2566, 2567, 2568, 10756, 10757, 10759, 2573, 10767, 2576, 2577, 2578, 2579, 2580, 2581, 10768, 2583, 2584, 10769, 10772, 2587, 2588, 2589, 10773, 2591, 2592, 2594, 10787, 2596, 2597, 10791, 2600, 10793, 2605, 2606, 2607, 2608, 2609, 10797, 10798, 2612, 10799, 10801, 2615, 10803, 10804, 10807, 10808, 10809, 10810, 2622, 2623, 2624, 10811, 10812, 10813, 2628, 10814, 2630, 2631, 2632, 10816, 10817, 10818, 2636, 10820, 2638, 10822, 10823, 10824, 10825, 2643, 2644, 10828, 10829, 10830, 10833, 10835, 10843, 10844, 10845, 10846, 10847, 10848, 2658, 2659, 2660, 2661, 2665, 2666, 2667, 2668, 2669, 2670, 2671, 10864, 2673, 10865, 2675, 2676, 10866, 10867, 10868, 10869, 2681, 2682, 10870, 2684, 2685, 10871, 10872, 2688, 10874, 10877, 10878, 10881, 2693, 2694, 10883, 2696, 2697, 2698, 10885, 10886, 10887, 2702, 2703, 2704, 2705, 10889, 10890, 2708, 10892, 10893, 2711, 2712, 10896, 10897, 2715, 2716, 10900, 2718, 10903, 2720, 2721, 10906, 10907, 10908, 2725, 10909, 10910, 2728, 2729, 10913, 2731, 10915, 10916, 2734, 10918, 10926, 2737, 2738, 2739, 2740, 2741, 2742, 2743, 2744, 2745, 10929, 2747, 2748, 2749, 2750, 2751, 2752, 2753, 2754, 2755, 10939, 2757, 10941, 10942, 10943, 10945, 10946, 10949, 2764, 10950, 2766, 10951, 10952, 10953, 10954, 10958, 2774, 2775, 2776, 2777, 2778, 2779, 2780, 2781, 10971, 2783, 2784, 10972, 2786, 2787, 2788, 2789, 2790, 10974, 10976, 2793, 2794, 10978, 10979, 10980, 2798, 2799, 2800, 10984, 10985, 10986, 2804, 2805, 10989, 10990, 10991, 10992, 2810, 2811, 2812, 10996, 10997, 2815, 2816, 11002, 2818, 2819, 2820, 2821, 2822, 2823, 2824, 2825, 11009, 11010, 2828, 2829, 2830, 11021, 2832, 11022, 11023, 11025, 2836, 11028, 2839, 2840, 2841, 2844, 2845, 2846, 2847, 2849, 2850, 2851, 2852, 2853, 2854, 2855, 11042, 2857, 2858, 11046, 11047, 11048, 2862, 2863, 2864, 2865, 11050, 2867, 11051, 2869, 2870, 11054, 11055, 11057, 11059, 2875, 11060, 2877, 2878, 2879, 11066, 11068, 2884, 2885, 2887, 11080, 2890, 11082, 2892, 2893, 2894, 2895, 2896, 2897, 2898, 2899, 2900, 2901, 2902, 2903, 10346, 2905, 2906, 10347, 2908, 2909, 2910, 11094, 2912, 11096, 2914, 11098, 2916, 10349, 11101, 11102, 2920, 2921, 10350, 2923, 2924, 11108, 11109, 10351, 11112, 11113, 11115, 11116, 11117, 11118, 11119, 2935, 11120, 10353, 2938, 11123, 11125, 2941, 2942, 2943, 10354, 11128, 11131, 2947, 2948, 2949, 11133, 11134, 2952, 2953, 2954, 2957, 2959, 2960, 2961, 2963, 2965, 2966, 2974, 2977, 2978, 2979, 2981, 2985, 2986, 2987, 2988, 2989, 2990, 2991, 2992, 2993, 11179, 11180, 11181, 2997, 2998, 2999, 3000, 3001, 11185, 3003, 3004, 3005, 3006, 3007, 11191, 3009, 11193, 3011, 3012, 3013, 3015, 3019, 3020, 3021, 3022, 3023, 3024, 3026, 3028, 3029, 3033, 3034, 3035, 3036, 3037, 3038, 3039, 3040, 3041, 3045, 3046, 3047, 3049, 3052, 3053, 3054, 3056, 11249, 3058, 3059, 3060, 3061, 3062, 3063, 11250, 3066, 3067, 3071, 3076, 3077, 3078, 3079, 3080, 3081, 11269, 3085, 3086, 11277, 11279, 3098, 3100, 3101, 11292, 3106, 3107, 3108, 3110, 3120, 3121, 11312, 3123, 3124, 3125, 3126, 3127, 3128, 3129, 3131, 3133, 3135, 3136, 3158, 3163, 3164, 3165, 3167, 11365, 3174, 3178, 11382, 11383, 11384, 11385, 11386, 11387, 11388, 11389, 11390, 11391, 11392, 11393, 11394, 11396, 11397, 11398, 11399, 11401, 11402, 11403, 11404, 3213, 3216, 3221, 11414, 3226, 11437, 11438, 11439, 11441, 3257, 3273, 11478, 11479, 3295, 3300, 11497, 11501, 11502, 11506, 3321, 3323, 11522, 11526, 3343, 3344, 3345, 3356, 3360, 11557, 3366, 11558, 11561, 11562, 11564, 11565, 11566, 11567, 11568, 11570, 11571, 11572, 11573, 11574, 11575, 11576, 11577, 11583, 11584, 11586, 3405, 3406, 3407, 3408, 3412, 3414, 3419, 11614, 11616, 3428, 3442, 3447, 3449, 11650, 11651, 3460, 11653, 3462, 11654, 11655, 11656, 11659, 11660, 11663, 11664, 11665, 3495, 3498, 11690, 11692, 11693, 11695, 11706, 11711, 11717, 3526, 11718, 11719, 11720, 11721, 11722, 11723, 11724, 11725, 11726, 11727, 11728, 11729, 11747, 11751, 11755, 11758, 3568, 11776, 11784, 11785, 3595, 11787, 11788, 11790, 11791, 11792, 11795, 3613, 3614, 3621, 3622, 3640, 3644, 3645, 3650, 3652, 3653, 3654, 11845, 3660, 3665, 3666, 3673, 11869, 3679, 3681, 11873, 3684, 11877, 3687, 11880, 11881, 11882, 3691, 11883, 3693, 11884, 3699, 11895, 11896, 11899, 11900, 3711, 11904, 11905, 11906, 11908, 11909, 11910, 11912, 11913, 11914, 11916, 11917, 3726, 11918, 11920, 11928, 11929, 11930, 11931, 3745, 3747, 11942, 11943, 3752, 11944, 11945, 11948, 11949, 3758, 11950, 11951, 11952, 11953, 11962, 11966, 3778, 11993, 3806, 3807, 12016, 3825, 3826, 3827, 3828, 3829, 3830, 3831, 3833, 3841, 3845, 3863, 3875, 3876, 3885, 12087, 3896, 12088, 12089, 12090, 12091, 12092, 12093, 3903, 12094, 12095, 12096, 12097, 3908, 12098, 12099, 12100, 12104, 12105, 3914, 12106, 3925, 3930, 3943, 3944, 3945, 3946, 3948, 3952, 3955, 3964, 3967, 3981, 3985, 3986, 3987, 3988, 3989, 3990, 3991, 3995, 3996, 3997, 3999, 4002, 4008, 4016, 4017, 4030, 4083, 4084, 4092, 4095, 4097, 4101, 4105, 4110, 4134, 4153, 4158, 4159, 4206, 4211, 4217, 4218, 4222, 4223, 4225, 12418, 4233, 4237, 4243, 4256, 4257, 4299, 10625, 4307, 4312, 4315, 4320, 4328, 10630, 4342, 4343, 4344, 4348, 4354, 4355, 4370, 4375, 4388, 4435, 4446, 4457, 4458, 4461, 4470, 4493, 4504, 4539, 12735, 12736, 12739, 12740, 12741, 12744, 12745, 12746, 12747, 12748, 4563, 4564, 4574, 12771, 12782, 12788, 4597, 12790, 12791, 12794, 12796, 12797, 4606, 12798, 12803, 12804, 12805, 12806, 12808, 12809, 12810, 12811, 4620, 12812, 12813, 4626, 12833, 12834, 12835, 12836, 4645, 12837, 12840, 12841, 12842, 12843, 12844, 12845, 12846, 12847, 12848, 12849, 12850, 12851, 12852, 4673, 4690, 4706, 4716, 10708, 10709, 12939, 10713, 10714, 10715, 10716, 4766, 10718, 4779, 4781, 4782, 4792, 4796, 4800, 4803, 4806, 4811, 4839, 4841, 4843, 4848, 10735, 4880, 4881, 4882, 4883, 4884, 4885, 10740, 4889, 4892, 10742, 4913, 4921, 4924, 13125, 13132, 4948, 4963, 13169, 13171, 13172, 13173, 13174, 13175, 13176, 13177, 13178, 13179, 13180, 13181, 13182, 13183, 13184, 13185, 4994, 13186, 13187, 4998, 4999, 5000, 5002, 5005, 5009, 5013, 5014, 5015, 13210, 5021, 5025, 5026, 5032, 5037, 5042, 5043, 5046, 5051, 5052, 5053, 5054, 13245, 5060, 5063, 5086, 5107, 13311, 13312, 13313, 13314, 13315, 13316, 13317, 13318, 13319, 13326, 5176, 5211, 5212, 5213, 5214, 5215, 5217, 5218, 13413, 13414, 13415, 13416, 13417, 13418, 13419, 13420, 13421, 13422, 13423, 13424, 13432, 13438, 10815, 10819, 10821, 13487, 13489, 9196, 13506, 10826, 5337, 5338, 5339, 13532, 5347, 9204, 13542, 9205, 5354, 5355, 9206, 5361, 5363, 9207, 5372, 5373, 5376, 9210, 13571, 13572, 9211, 13576, 5386, 9212, 5393, 5394, 9213, 5404, 5405, 5419, 5425, 5426, 5430, 5431, 5433, 13713, 5522, 5523, 5524, 5525, 9239, 5527, 9240, 5530, 5532, 5533, 5536, 5538, 9242, 5543, 5544, 5545, 5546, 9243, 5552, 5553, 5556, 5559, 5565, 5567, 13759, 9248, 5573, 9249, 5576, 9250, 5582, 5586, 5588, 9252, 5597, 5598, 5612, 5613, 5615, 5616, 5618, 5619, 5622, 5623, 5624, 5625, 5626, 10888, 5631, 5635, 5636, 5637, 5639, 10891, 5647, 5656, 10894, 10895, 5666, 5671, 5675, 5676, 5679, 10898, 5681, 10899, 5691, 5692, 10901, 9273, 5698, 5704, 9275, 13900, 13901, 5710, 13902, 13903, 13904, 13905, 13906, 13907, 5717, 13908, 5719, 5720, 5721, 9278, 13909, 5724, 13910, 13911, 13912, 5729, 9280, 10911, 10912, 10914, 10917, 5782, 13974, 5789, 5800, 5813, 5814, 5815, 5817, 5818, 5819, 5820, 5821, 5822, 5823, 10927, 10928, 10930, 10931, 10932, 10933, 5859, 10934, 10935, 5870, 10936, 10938, 5884, 10940, 5893, 5903, 5904, 5914, 5920, 5923, 9322, 9323, 9324, 9326, 9327, 9328, 9329, 5988, 10973, 6064, 10977, 6087, 10981, 10982, 10983, 10987, 6131, 10988, 6143, 6147, 6148, 14341, 10993, 10994, 6165, 10995, 10998, 11004, 11005, 6219, 11006, 14417, 11007, 11008, 14429, 14430, 14431, 6240, 14432, 14433, 14434, 14435, 14437, 6246, 11011, 14442, 14443, 14444, 11012, 11013, 14504, 6321, 6322, 6359, 6376, 6378, 6426, 6443, 11052, 11053, 9426, 6498, 6500, 6502, 6503, 6504, 6505, 6506, 6510, 6511, 6523, 6549, 9443, 6566, 6588, 6590, 6591, 6597, 6600, 6603, 11084, 11085, 11086, 11087, 11088, 11089, 11090, 11091, 11092, 11093, 6662, 11095, 6679, 11099, 11100, 11103, 11104, 11105, 11106, 11107, 6757, 11121, 11126, 6850, 11136, 6986, 6996, 11182, 11183, 11184, 11186, 11187, 11188, 7140, 7141, 7142, 7143, 7144, 7145, 7146, 7147, 11189, 11190, 11192, 7287, 7354, 7424, 7432, 7469, 7476, 7481, 7482, 7483, 7487, 7489, 7490, 7510, 7516, 7523, 7562, 7567, 7568, 7569, 7570, 7571, 7572, 7573, 7574, 7575, 7576, 7578, 7579, 7611, 7627, 7662, 7685, 7722, 7723, 7737, 7770, 7771, 7774, 7785, 7787, 7795, 7806, 7812, 7868, 7869, 7881, 7889, 7894, 7967, 7975, 7976, 7977, 7982, 7983, 7984, 8004} h={2561, 14340, 5646, 9236, 10264, 2076, 9244, 10269, 3111, 11816, 2091, 1068, 2101, 3641, 1601, 3144, 1098, 2122, 10316, 2137, 4703, 11872, 3682, 10875, 11395, 3724, 1696, 13988, 8873, 1196, 8890, 10944, 1219, 10947, 2255, 1232, 11988, 2264, 11496, 1783, 1274, 5892, 13062, 1800, 4373, 9499, 7453, 4382, 2343, 7981, 1840, 11569, 9017, 5950, 2886, 1353, 6988, 7503, 3411, 2907, 1884, 11110, 10088, 1387, 13165, 11124, 1909, 2427, 11135, 3970, 1931, 10638, 5008, 9630, 12195, 5570, 7623, 6090, 2509, 1489, 1494, 13786, 2021, 1511, 5628} n=int(input()) for i in range(n): p=int(input()) if p in e: print("E") elif p in h: print("H") else: print("VH")
#Verdict Execution timeMemoryGrader output
Fetching results...