{"id":653,"date":"2019-06-09T08:47:31","date_gmt":"2019-06-09T00:47:31","guid":{"rendered":"http:\/\/fankasy.xyz\/?p=653"},"modified":"2019-09-25T08:49:02","modified_gmt":"2019-09-25T00:49:02","slug":"noj1013-%e4%b8%89%e8%a7%92%e5%bd%a2%e5%88%a4%e6%96%ad","status":"publish","type":"post","link":"http:\/\/fankasy.xyz\/index.php\/2019\/06\/09\/noj1013-%e4%b8%89%e8%a7%92%e5%bd%a2%e5%88%a4%e6%96%ad\/","title":{"rendered":"NOJ1013 \u4e09\u89d2\u5f62\u5224\u65ad"},"content":{"rendered":"<pre>\r\n#include<stdio.h>\r\n#include<math.h>\r\n\r\nint main()\r\n{\r\n    double a = -1, b = -1, c = -1;\r\n    while (a != 0 && b != 0 && c != 0)\r\n    {\r\n        scanf(\"%lf %lf %lf\", &a, &b, &c);\r\n        if (a ==0&& b ==0&& c == 0)\r\n            break;\r\n        if (a + b > c && a + c > b && b + c > a)\r\n        {\r\n            if (a == b && b == c && a == c)\r\n                printf(\"Equilateral triangle\\n\");\r\n            else if (fabs(a * a + b * b - c * c) < 0.001 || fabs(a * a + c * c - b * b) < 0.001 || fabs(c * c + b * b - a * a) < 0.001)\r\n            {\r\n                if (a == b || b == c || a == c)\r\n                    printf(\"Isosceles right triangle\\n\");\r\n                else\r\n                    printf(\"Right triangle\\n\");\r\n            }\r\n            else if (a == b || b == c || a == c)\r\n                printf(\"Isosceles triangle\\n\");\r\n            else\r\n                printf(\"General triangle\\n\");\r\n        }\r\n        else\r\n            printf(\"Not a triangle\\n\");\r\n    }\r\n    printf(\"End\");\r\n    return 0;\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#include #include int main() { double a = -1, b = -1, c [&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\/653"}],"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=653"}],"version-history":[{"count":0,"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/posts\/653\/revisions"}],"wp:attachment":[{"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=653"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fankasy.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}