{"id":411,"date":"2019-06-09T17:41:52","date_gmt":"2019-06-09T09:41:52","guid":{"rendered":"http:\/\/fankasy.xyz\/?p=411"},"modified":"2019-06-20T21:02:57","modified_gmt":"2019-06-20T13:02:57","slug":"noj1011%e5%a4%a7%e6%95%b0%e5%8a%a0%e6%b3%95","status":"publish","type":"post","link":"http:\/\/fankasy.xyz\/index.php\/2019\/06\/09\/noj1011%e5%a4%a7%e6%95%b0%e5%8a%a0%e6%b3%95\/","title":{"rendered":"NOJ1011\u5927\u6570\u52a0\u6cd5"},"content":{"rendered":"<h1>\u5927\u6570\u52a0\u6cd5<\/h1>\n<pre>\u539f\u7406\u662f\u5b57\u7b26\u4e32\uff0c\u8bbe\u7f6e\u597d\u8fdb\u4f4d\u89c4\u5219\uff0c\u4e0d\u590d\u6742\r\n#include<stdio.h>\r\n#include<stdlib.h>\r\n#include<string.h>\r\nint main()\r\n{\r\n    char ags[1001] = { 0 }, bgm[1001] = { 0 }, at4[1002] = { 0 };\r\n    int i, j, k;\r\n    \/\/for (i = 0; i < 1000; i++)\r\n       \/\/ ags[i] = bgm[i] = 0;\r\n    scanf(\"%s %s\", ags, bgm);\r\n    i = strlen(ags);\r\n    j = strlen(bgm);\r\n    int aisb = i > j ? i : j;\r\n    for (k=1001; 1001-k<=aisb  ;k--)\r\n    {\r\n        if (at4[k] == 0)\r\n        {\r\n            if (i >= 0)\r\n                at4[k] += ags[i--];\r\n            if (j >= 0)\r\n                at4[k] += bgm[j--];\r\n            if (at4[k]>'9')\r\n                at4[k] -= 48;\r\n        }\r\n        else\r\n        {\r\n            if (i >= 0)\r\n                at4[k] += ags[i--]-48;\r\n            if (j >= 0)\r\n                at4[k] += bgm[j--] - 48;\r\n        }\r\n\r\n        if (at4[k] > '9')\r\n        {\r\n            at4[k] -= 10;\r\n            if (k == 0)\r\n                exit(123456789);\r\n            else if (at4[k - 1] == 0)\r\n                at4[k - 1] += 49;\r\n            else\r\n                at4[k - 1]++;\r\n        }\r\n    }\r\n\r\n    for (; k < 1002; k++)\r\n        if (at4[k] == 0)\r\n            continue;\r\n        else\r\n        printf(\"%c\", at4[k]);\r\n    return 0;\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u6570\u52a0\u6cd5 \u539f\u7406\u662f\u5b57\u7b26\u4e32\uff0c\u8bbe\u7f6e\u597d\u8fdb\u4f4d\u89c4\u5219\uff0c\u4e0d\u590d\u6742 #include #include #include int  [&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\/411"}],"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=411"}],"version-history":[{"count":0,"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"wp:attachment":[{"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}