Submit Info #21132

Problem Lang User Status Time Memory
Assignment Problem cpp (anonymous) WA 134 ms 1.62 MiB

ケース詳細
Name Status Time Memory
example_00 AC 2 ms 0.67 MiB
hand_minus_00 AC 134 ms 1.38 MiB
hand_plus_00 AC 129 ms 1.55 MiB
max_random_00 WA 40 ms 1.58 MiB
max_random_01 WA 36 ms 1.55 MiB
max_random_02 WA 37 ms 1.55 MiB
max_random_03 WA 40 ms 1.62 MiB
max_random_04 WA 39 ms 1.61 MiB
random_00 WA 6 ms 0.92 MiB
random_01 WA 5 ms 0.99 MiB
random_02 WA 2 ms 0.78 MiB
random_03 WA 8 ms 0.99 MiB
random_04 WA 1 ms 0.62 MiB

#include <bits/stdc++.h> const int o_242a80a7cf7d64904a7a8785efa34544=(0x000000000EB79A1A + 0x00000000075BCF0D + 0x00000000075BD50D - 0x0000000016137127);const int o_e62c6eab076a9db17feee445382c27ca=(0x00000000000003E8 + 0x00000000000003F4 + 0x00000000000009F4 - 0x0000000000000FDC);int o_9772109c0684f97b6736388fe0189739[o_e62c6eab076a9db17feee445382c27ca];int o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8;int o_67e963479f526c0727815a005e394bbf[o_e62c6eab076a9db17feee445382c27ca + (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03)][o_e62c6eab076a9db17feee445382c27ca + (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03)];int o_ded9a94b2f8721f2e8f747018ebd76d8[o_e62c6eab076a9db17feee445382c27ca + (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03)];int o_9c41a6fd007fd994071a60164bbac5df[o_e62c6eab076a9db17feee445382c27ca + (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03)];int o_b374bcb4279416e45aaa12496f97eaa2[o_e62c6eab076a9db17feee445382c27ca + (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03)];int o_b2e572dffad032c739dfd22a2db7bbaa[o_e62c6eab076a9db17feee445382c27ca + (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03)];int o_0c0988c9cab292a0f7c71f5d9ba7c4c3[o_e62c6eab076a9db17feee445382c27ca + (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03)];bool o_dcfadf4aa9348fc9ecbb1697edfc56fc[o_e62c6eab076a9db17feee445382c27ca + (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03)];void o_61c4ade175ffc87a8e2948c34209a4d1(){for (int o_68304203707f083f8d756f1f7906443e=(0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03);(o_68304203707f083f8d756f1f7906443e <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8) & !!(o_68304203707f083f8d756f1f7906443e <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8);++o_68304203707f083f8d756f1f7906443e){int o_a06a3d770911f628891da7f4db6e526c=o_68304203707f083f8d756f1f7906443e,o_c116a180380f3c108c62609e51b36196=(0x0000000000000000 + 0x0000000000000200 + 0x0000000000000800 - 0x0000000000000A00);o_b374bcb4279416e45aaa12496f97eaa2[(0x0000000000000000 + 0x0000000000000200 + 0x0000000000000800 - 0x0000000000000A00)] = o_68304203707f083f8d756f1f7906443e;memset(o_b2e572dffad032c739dfd22a2db7bbaa,(0x000000000000007E + 0x000000000000023F + 0x000000000000083F - 0x0000000000000ABD),(0x0000000000000008 + 0x0000000000000204 + 0x0000000000000804 - 0x0000000000000A0C) * (o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8 + (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03)));memset(o_dcfadf4aa9348fc9ecbb1697edfc56fc,(0x0000000000000000 + 0x0000000000000200 + 0x0000000000000800 - 0x0000000000000A00),o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8 + (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03));while (o_a06a3d770911f628891da7f4db6e526c){o_dcfadf4aa9348fc9ecbb1697edfc56fc[o_c116a180380f3c108c62609e51b36196] = true;int o_34d701f9d780edf0ef35a5c34427e285=(0x0000000000000000 + 0x0000000000000200 + 0x0000000000000800 - 0x0000000000000A00);for (int o_5827839926535c3fba43ac9833b12b99=(0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03);(o_5827839926535c3fba43ac9833b12b99 <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8) & !!(o_5827839926535c3fba43ac9833b12b99 <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8);++o_5827839926535c3fba43ac9833b12b99)if (!o_dcfadf4aa9348fc9ecbb1697edfc56fc[o_5827839926535c3fba43ac9833b12b99]){if ((o_b2e572dffad032c739dfd22a2db7bbaa[o_5827839926535c3fba43ac9833b12b99] > o_67e963479f526c0727815a005e394bbf[o_a06a3d770911f628891da7f4db6e526c][o_5827839926535c3fba43ac9833b12b99] - o_ded9a94b2f8721f2e8f747018ebd76d8[o_a06a3d770911f628891da7f4db6e526c] - o_9c41a6fd007fd994071a60164bbac5df[o_5827839926535c3fba43ac9833b12b99]) & !!(o_b2e572dffad032c739dfd22a2db7bbaa[o_5827839926535c3fba43ac9833b12b99] > o_67e963479f526c0727815a005e394bbf[o_a06a3d770911f628891da7f4db6e526c][o_5827839926535c3fba43ac9833b12b99] - o_ded9a94b2f8721f2e8f747018ebd76d8[o_a06a3d770911f628891da7f4db6e526c] - o_9c41a6fd007fd994071a60164bbac5df[o_5827839926535c3fba43ac9833b12b99])){o_b2e572dffad032c739dfd22a2db7bbaa[o_5827839926535c3fba43ac9833b12b99] = o_67e963479f526c0727815a005e394bbf[o_a06a3d770911f628891da7f4db6e526c][o_5827839926535c3fba43ac9833b12b99] - o_ded9a94b2f8721f2e8f747018ebd76d8[o_a06a3d770911f628891da7f4db6e526c] - o_9c41a6fd007fd994071a60164bbac5df[o_5827839926535c3fba43ac9833b12b99];o_0c0988c9cab292a0f7c71f5d9ba7c4c3[o_5827839926535c3fba43ac9833b12b99] = o_c116a180380f3c108c62609e51b36196;};if ((o_b2e572dffad032c739dfd22a2db7bbaa[o_34d701f9d780edf0ef35a5c34427e285] > o_b2e572dffad032c739dfd22a2db7bbaa[o_5827839926535c3fba43ac9833b12b99]) & !!(o_b2e572dffad032c739dfd22a2db7bbaa[o_34d701f9d780edf0ef35a5c34427e285] > o_b2e572dffad032c739dfd22a2db7bbaa[o_5827839926535c3fba43ac9833b12b99]))o_34d701f9d780edf0ef35a5c34427e285 = o_5827839926535c3fba43ac9833b12b99;;};o_c116a180380f3c108c62609e51b36196 = o_34d701f9d780edf0ef35a5c34427e285;int o_1bad9796b17642878598acbc28f97299=o_b2e572dffad032c739dfd22a2db7bbaa[o_34d701f9d780edf0ef35a5c34427e285];for (int o_fa60ba62de6458b8d4fc6d27ae167dbe=(0x0000000000000000 + 0x0000000000000200 + 0x0000000000000800 - 0x0000000000000A00);(o_fa60ba62de6458b8d4fc6d27ae167dbe <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8) & !!(o_fa60ba62de6458b8d4fc6d27ae167dbe <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8);++o_fa60ba62de6458b8d4fc6d27ae167dbe){if (o_dcfadf4aa9348fc9ecbb1697edfc56fc[o_fa60ba62de6458b8d4fc6d27ae167dbe]){o_ded9a94b2f8721f2e8f747018ebd76d8[o_b374bcb4279416e45aaa12496f97eaa2[o_fa60ba62de6458b8d4fc6d27ae167dbe]] += o_1bad9796b17642878598acbc28f97299;o_9c41a6fd007fd994071a60164bbac5df[o_fa60ba62de6458b8d4fc6d27ae167dbe] -= o_1bad9796b17642878598acbc28f97299;}else o_b2e572dffad032c739dfd22a2db7bbaa[o_fa60ba62de6458b8d4fc6d27ae167dbe] -= o_1bad9796b17642878598acbc28f97299;;};o_a06a3d770911f628891da7f4db6e526c = o_b374bcb4279416e45aaa12496f97eaa2[o_c116a180380f3c108c62609e51b36196];};while (o_c116a180380f3c108c62609e51b36196){int o_c051ff8742e3c969cbf81ba01823b90a=o_0c0988c9cab292a0f7c71f5d9ba7c4c3[o_c116a180380f3c108c62609e51b36196];o_b374bcb4279416e45aaa12496f97eaa2[o_c116a180380f3c108c62609e51b36196] = o_b374bcb4279416e45aaa12496f97eaa2[o_c051ff8742e3c969cbf81ba01823b90a];o_c116a180380f3c108c62609e51b36196 = o_c051ff8742e3c969cbf81ba01823b90a;};};};int main(){scanf("\x25""d",&o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8);for (int o_3c378c0e91e8e8b71735ec7fd29e0d01=(0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03);(o_3c378c0e91e8e8b71735ec7fd29e0d01 <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8) & !!(o_3c378c0e91e8e8b71735ec7fd29e0d01 <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8);++o_3c378c0e91e8e8b71735ec7fd29e0d01)for (int o_eef878dff241a9d26b48cb76e64c25d2=(0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03);(o_eef878dff241a9d26b48cb76e64c25d2 <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8) & !!(o_eef878dff241a9d26b48cb76e64c25d2 <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8);++o_eef878dff241a9d26b48cb76e64c25d2)scanf("\x25""d",o_67e963479f526c0727815a005e394bbf[o_3c378c0e91e8e8b71735ec7fd29e0d01] + o_eef878dff241a9d26b48cb76e64c25d2);o_61c4ade175ffc87a8e2948c34209a4d1();printf("\x25""d\012",-o_9c41a6fd007fd994071a60164bbac5df[(0x0000000000000000 + 0x0000000000000200 + 0x0000000000000800 - 0x0000000000000A00)]);for (int o_be6e04e704b3ea99a3009ee4011814c3=(0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03);(o_be6e04e704b3ea99a3009ee4011814c3 <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8) & !!(o_be6e04e704b3ea99a3009ee4011814c3 <= o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8);++o_be6e04e704b3ea99a3009ee4011814c3)o_9772109c0684f97b6736388fe0189739[o_b374bcb4279416e45aaa12496f97eaa2[o_be6e04e704b3ea99a3009ee4011814c3] - (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03)] = o_be6e04e704b3ea99a3009ee4011814c3 - (0x0000000000000002 + 0x0000000000000201 + 0x0000000000000801 - 0x0000000000000A03);for (int o_636491b1aa2891c7b159ff4a5d694541=(0x0000000000000000 + 0x0000000000000200 + 0x0000000000000800 - 0x0000000000000A00);(o_636491b1aa2891c7b159ff4a5d694541 < o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8) & !!(o_636491b1aa2891c7b159ff4a5d694541 < o_dcc6d5b9dfdbf02ef36e1161b9cc4ab8);++o_636491b1aa2891c7b159ff4a5d694541)printf("\x25""d\040",o_9772109c0684f97b6736388fe0189739[o_636491b1aa2891c7b159ff4a5d694541]);printf("\x0A""");return (0x0000000000000000 + 0x0000000000000200 + 0x0000000000000800 - 0x0000000000000A00);};