{"id":407,"date":"2019-06-09T17:40:20","date_gmt":"2019-06-09T09:40:20","guid":{"rendered":"http:\/\/fankasy.xyz\/?p=407"},"modified":"2019-06-09T17:40:20","modified_gmt":"2019-06-09T09:40:20","slug":"noj1004-%e7%ba%bf%e6%80%a7%e8%a1%a8%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"http:\/\/fankasy.xyz\/index.php\/2019\/06\/09\/noj1004-%e7%ba%bf%e6%80%a7%e8%a1%a8%e6%93%8d%e4%bd%9c\/","title":{"rendered":"NOJ1004 \u7ebf\u6027\u8868\u64cd\u4f5c"},"content":{"rendered":"<pre>NOJ1004\u7ebf\u6027\u8868\u64cd\u4f5c\r\n\u89e3\u9898\u601d\u8def\u66b4\u529b\uff0c\u6765\u591a\u5c11\u653e\u591a\u5c11\u3002\r\n(\u4e0b\u5217\u4ee3\u7801\u5df2\u7ecf\u901a\u8fc7\u6d4b\u8bd5)\r\n#include\r\n#include\r\nint main()\r\n{\r\n    int che1, che2, che3;\r\n    int* in = NULL;\r\n    int dein = 0;\r\n    char* cha = NULL;\r\n    char decha = 0;\r\n    double* dou = NULL;\r\n    double dedou = 0;\r\n    int n1, n2, n3;\r\n    {\r\n        scanf(\"%d\\n\", &amp;n1);\r\n        in = malloc(sizeof(int) * n1);\r\n        for (che1 = 0; che1 &lt; n1; che1++)\r\n            scanf(\"%d\", in + che1);\r\n        scanf(\"%d\", &amp;dein);\r\n    }\r\n    {\r\n        scanf(\"%d\\n\", &amp;n2);\r\n        cha = malloc(sizeof(char) * n2);\r\n        for (che2 = 0; che2 &lt; n2; che2++)\r\n            scanf(\"%c \", cha + che2);\r\n        scanf(\"%c\", &amp;decha);\r\n    }\r\n    {\r\n        scanf(\"%d\\n\", &amp;n3);\r\n\r\n        dou = malloc(sizeof(double) * n3);\r\n        for (che3 = 0; che3 &lt; n3; che3++) scanf(\"%lf\", dou + che3); scanf(\"%lf\", &amp;dedou); } \/\/int { for (che1 = n1 - 1; che1 &gt;= 0; che1--)\r\n            printf(\"%d \", in[che1]);\r\n        printf(\"\\n\");\r\n        for (che1 = n1 - 1; che1 &gt;= 0; che1--)\r\n        {\r\n            if (in[che1] == dein)\r\n                continue;\r\n            printf(\"%d \", in[che1]);\r\n        }\r\n        printf(\"\\n\");\r\n    }\r\n    \/\/char\r\n    {\r\n        for (che2 = n2 - 1; che2 &gt;= 0; che2--)\r\n            printf(\"%c \", cha[che2]);\r\n        printf(\"\\n\");\r\n        for (che2 = n2 - 1; che2 &gt;= 0; che2--)\r\n        {\r\n            if (cha[che2] == decha)\r\n                continue;\r\n            printf(\"%c \", cha[che2]);\r\n        }\r\n        printf(\"\\n\");\r\n    }\r\n    \/\/double\r\n    {        for (che3 = n3 - 1; che3 &gt;= 0; che3--)\r\n        printf(\"%g \", dou[che3]);\r\n    printf(\"\\n\");\r\n    for (che3 = n3 - 1; che3 &gt;= 0; che3--)\r\n    {\r\n        if (dou[che3] - dedou &lt; 1E-6)\r\n            continue;\r\n        printf(\"%g \", dou[che3]);\r\n    }\r\n }\r\n    return 0;\r\n}\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>NOJ1004\u7ebf\u6027\u8868\u64cd\u4f5c \u89e3\u9898\u601d\u8def\u66b4\u529b\uff0c\u6765\u591a\u5c11\u653e\u591a\u5c11\u3002 (\u4e0b\u5217\u4ee3\u7801\u5df2\u7ecf\u901a\u8fc7\u6d4b\u8bd5) #include #incl [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/posts\/407"}],"collection":[{"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=407"}],"version-history":[{"count":0,"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/posts\/407\/revisions"}],"wp:attachment":[{"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=407"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}