摘要: HDU 2091 空心三角形 /* HDU 2091 空心三角形 水题 */ #include <cstdio> int main() { int kase = 0; char ch; int h, t; //h表示高 while (scanf("%c", &ch) == 1 && ch != '@ 阅读全文
posted @ 2015-12-22 03:41 tan90丶 阅读(151) 评论(0) 推荐(0) 编辑
摘要: HDU 2089 不要62 /* HDU 2089 不要62 水题+打表 */ #include <cstdio> #include <cstring> const int maxn = 1000005; bool a[maxn]; int main() { memset(a, 0, sizeof 阅读全文
posted @ 2015-12-22 03:11 tan90丶 阅读(127) 评论(0) 推荐(0) 编辑
摘要: HDU 2090 算菜价 /* HDU 2090 算菜价 水题 */ #include <cstdio> int main() { char s[105]; double a, b, sum = 0; while (scanf("%s", s)==1){ scanf("%lf%lf", &a, &b 阅读全文
posted @ 2015-12-22 02:46 tan90丶 阅读(213) 评论(0) 推荐(0) 编辑
摘要: HDU 2092 整数解 x+y = n, x*y = m; y = n - x; x * ( n - x) = m nx - x^2 = m; x^2 - nx + m = 0; △ = sqrt(n^2 - 4m) 要有整数解即△需要为可开方数即可。 /* HDU 2092 整数解 水题 */ 阅读全文
posted @ 2015-12-22 02:33 tan90丶 阅读(167) 评论(0) 推荐(0) 编辑