本题最离谱的题解!!!!!!!
2024-07-17 16:05:43
发布于:河北
5阅读
0回复
0点赞
超级离谱
打表=_=不行多说什么了........
#include<bits/stdc++.h>
using namespace std;
int main(){
int arr[9999]={1904,1908,1912,1916,1920,1924,1928,1932,1936,1940,1944,1948,1952,1956,1960,1964,1968,1972,1976,1980,1984,1988,1992,1996,2000,2004,2008,2012,2016,2020,2064, 2068, 2072, 2076, 2080, 2084, 2088, 2092, 2096, 2104, 2108, 2112, 2116, 2120, 2124, 2128, 2132, 2136, 2140, 2144, 2148, 2152, 2156, 2160, 2164, 2168, 2172, 2176, 2180, 2184, 2188, 2192, 2196, 2204, 2208, 2212, 2216, 2220, 2224, 2228, 2232, 2236, 2240, 2244, 2248, 2252, 2256, 2260, 2264, 2268, 2272, 2276, 2280, 2284, 2288, 2292, 2296, 2304, 2308, 2312, 2316, 2320, 2324, 2328, 2332, 2336, 2340, 2344, 2348, 2352, 2356, 2360, 2364, 2368, 2372, 2376, 2380, 2384, 2388, 2392, 2396, 2400, 2404, 2408, 2412, 2416, 2420, 2424, 2428, 2432, 2436, 2440, 2444, 2448, 2452, 2456, 2460, 2464, 2468, 2472, 2476, 2480, 2484, 2488, 2492, 2496, 2504, 2508, 2512, 2516, 2520, 2524, 2528, 2532, 2536, 2540, 2544, 2548, 2552, 2556, 2560, 2564, 2568, 2572, 2576, 2580, 2584, 2588, 2592, 2596, 2604, 2608, 2612, 2616, 2620, 2624, 2628, 2632, 2636, 2640, 2644, 2648, 2652, 2656, 2660, 2664, 2668, 2672, 2676, 2680, 2684, 2688, 2692, 2696, 2704, 2708, 2712, 2716, 2720, 2724, 2728, 2732, 2736, 2740, 2744, 2748, 2752, 2756, 2760, 2764, 2768, 2772, 2776, 2780, 2784, 2788, 2792, 2796, 2800, 2804, 2808, 2812, 2816, 2820, 2824, 2828, 2832, 2836, 2840, 2844, 2848, 2852, 2856, 2860, 2864, 2868, 2872, 2876, 2880, 2884, 2888, 2892, 2896, 2904, 2908, 2912, 2916, 2920, 2924, 2928, 2932, 2936, 2940, 2944, 2948, 2952, 2956, 2960, 2964, 2968, 2972, 2976, 2980, 2984, 2988, 2992, 2996, 3004, 3008, 3012, 3016, 3020, 3024, 3028, 3032, 3036, 3040, 3044, 3048, 3052, 3056, 3060, 3064, 3068, 3072, 3076, 3080, 3084, 3088, 3092, 3096, 3104, 3108, 3112, 3116, 3120, 3124, 3128, 3132, 3136, 3140, 3144, 3148, 3152, 3156, 3160, 3164, 3168, 3172, 3176, 3180, 3184, 3188, 3192, 3196, 3200, 3204, 3208, 3212, 3216, 3220, 3224, 3228, 3232, 3236, 3240, 3244, 3248, 3252, 3256, 3260, 3264, 3268, 3272, 3276, 3280, 3284, 3288, 3292, 3296, 3304, 3308, 3312, 3316, 3320, 3324, 3328, 3332, 3336, 3340, 3344, 3348, 3352, 3356, 3360, 3364, 3368, 3372, 3376, 3380, 3384, 3388, 3392, 3396, 3404, 3408, 3412, 3416, 3420, 3424, 3428, 3432, 3436, 3440, 3444, 3448, 3452, 3456, 3460, 3464, 3468, 3472, 3476, 3480, 3484, 3488, 3492, 3496, 3504, 3508, 3512, 3516, 3520, 3524, 3528, 3532, 3536, 3540, 3544, 3548, 3552, 3556, 3560, 3564, 3568, 3572, 3576, 3580, 3584, 3588, 3592, 3596, 3600, 3604, 3608, 3612, 3616, 3620, 3624, 3628, 3632, 3636, 3640, 3644, 3648, 3652, 3656, 3660, 3664, 3668, 3672, 3676, 3680, 3684, 3688, 3692, 3696, 3704, 3708, 3712, 3716, 3720, 3724, 3728, 3732, 3736, 3740, 3744, 3748, 3752, 3756, 3760, 3764, 3768, 3772, 3776, 3780, 3784, 3788, 3792, 3796, 3804, 3808, 3812, 3816, 3820, 3824, 3828, 3832, 3836, 3840, 3844, 3848, 3852, 3856, 3860, 3864, 3868, 3872, 3876, 3880, 3884, 3888, 3892, 3896, 3904, 3908, 3912, 3916, 3920, 3924, 3928, 3932, 3936, 3940, 3944, 3948, 3952, 3956, 3960, 3964, 3968, 3972, 3976, 3980, 3984, 3988, 3992, 3996,
2024,2028,2032,2036,2040,2044,2048,2052,2056,2060,8000,
8004,
8008,
8012,
8016,
8020,
8024,
8028,
8032,
8036,
8040,
8044,
8048,
8052,
8056,
8060,
8064,
8068,
8072,
8076,
8080,
8084,
8088,
8092,
8096,
8104,
8108,
8112,
8116,
8120,
8124,
8128,
8132,
8136,
8140,
8144,
8148,
8152,
8156,
8160,
8164,
8168,
8172,
8176,
8180,
8184,
8188,
8192,
8196,
8204,
8208,
8212,
8216,
8220,
8224,
8228,
8232,
8236,
8240,
8244,
8248,
8252,
8256,
8260,
8264,
8268,
8272,
8276,
8280,
8284,
8288,
8292,
8296,
8304,
8308,
8312,
8316,
8320,
8324,
8328,
8332,
8336,
8340,
8344,
8348,
8352,
8356,
8360,
8364,
8368,
8372,
8376,
8380,
8384,
8388,
8392,
8396,
8400,
8404,
8408,
8412,
8416,
8420,
8424,
8428,
8432,
8436,
8440,
8444,
8448,
8452,
8456,
8460,
8464,
8468,
8472,
8476,
8480,
8484,
8488,
8492,
8496,
8504,
8508,
8512,
8516,
8520,
8524,
8528,
8532,
8536,
8540,
8544,
8548,
8552,
8556,
8560,
8564,
8568,
8572,
8576,
8580,
8584,
8588,
8592,
8596,
8604,
8608,
8612,
8616,
8620,
8624,
8628,
8632,
8636,
8640,
8644,
8648,
8652,
8656,
8660,
8664,
8668,
8672,
8676,
8680,
8684,
8688,
8692,
8696,
8704,
8708,
8712,
8716,
8720,
8724,
8728,
8732,
8736,
8740,
8744,
8748,
8752,
8756,
8760,
8764,
8768,
8772,
8776,
8780,
8784,
8788,
8792,
8796,
8800,
8804,
8808,
8812,
8816,
8820,
8824,
8828,
8832,
8836,
8840,
8844,
8848,
8852,
8856,
8860,
8864,
8868,
8872,
8876,
8880,
8884,
8888,
8892,
8896,
8904,
8908,
8912,
8916,
8920,
8924,
8928,
8932,
8936,
8940,
8944,
8948,
8952,
8956,
8960,
8964,
8968,
8972,
8976,
8980,
8984,
8988,
8992,
8996,
9004,
9008,
9012,
9016,
9020,
9024,
9028,
9032,
9036,
9040,
9044,
9048,
9052,
9056,
9060,
9064,
9068,
9072,
9076,
9080,
9084,
9088,
9092,
9096,
9104,9104,
9108,
9112,
9116,
9120,
9124,
9128,
9132,
9136,
9140,
9144,
9148,
9152,
9156,
9160,
9164,
9168,
9172,
9176,
9180,
9184,
9188,
9192,
9196,
9200,
9204,
9208,
9212,
9216,
9220,
9224,
9228,
9232,
9236,
9240,
9244,
9248,
9252,
9256,
9260,
9264,
9268,
9272,
9276,
9280,
9284,
9288,
9292,
9296,
9304,
9308,
9312,
9316,
9320,
9324,
9328,
9332,
9336,
9340,
9344,
9348,
9352,
9356,
9360,
9364,
9368,
9372,
9376,
9380,
9384,
9388,
9392,
9396,
9404,
9408,
9412,
9416,
9420,
9424,
9428,
9432,
9436,
9440,
9444,
9448,
9452,
9456,
9460,
9464,
9468,
9472,
9476,
9480,
9484,
9488,
9492,
9496,
9504,
9508,
9512,
9516,
9520,
9524,
9528,
9532,
9536,
9540,
9544,
9548,
9552,
9556,
9560,
9564,
9568,
9572,
9576,
9580,
9584,
9588,
9592,
9596,
9600,
9604,
9608,
9612,
9616,
9620,
9624,
9628,
9632,
9636,
9640,
9644,
9648,
9652,
9656,
9660,
9664,
9668,
9672,
9676,
9680,
9684,
9688,
9692,
9696,
9704,
9708,
9712,
9716,
9720,
9724,
9728,
9732,
9736,
9740,
9744,
9748,
9752,
9756,
9760,
9764,
9768,
9772,
9776,
9780,
9784,
9788,
9792,
9796,
9804,
9808,
9812,
9816,
9820,
9824,
9828,
9832,
9836,
9840,
9844,
9848,
9852,
9856,
9860,
9864,
9868,
9872,
9876,
9880,
9884,
9888,
9892,
9896,
9904,
9908,
9912,
9916,
9920,
9924,
9928,
9932,
9936,
9940,
9944,
9948,
9952,
9956,
9960,9964 ,9968 ,9972 ,9976 ,9980 ,9984 ,9988 ,9992,9996};
int n;
cin>>n;
for(int i=0;i<9999;i++){
if(n==arr[i]){
cout<<"Y";
return 0;
}
}
cout<<"N";
}
这里空空如也
有帮助,赞一个