摘要:
简单题View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;#define eps 1.0e-8int work(double a, double b, double c, double d){ int ret = 0; while (c > a + eps) { ret++; c /= 2; } while (d > b + eps) { ret++; d /= 2; } return 阅读全文
摘要:
简单题View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;int main(){ //freopen("D:\\t.txt", "r", stdin); int l, m; while (scanf("%d%d", &l, &m) != EOF && !(l == 0 && m == 0)) 阅读全文
摘要:
不高兴的津津……View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;int main(){ //freopen("D:\\t.txt", "r", stdin); int n; while (scanf("%d", &n) != EOF && n != 0) { int ans = 0; int maxhour = 阅读全文
摘要:
简单题View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;int main(){ //freopen("D:\\t.txt", "r", stdin); int t; scanf("%d", &t); while (t--) { int n; scanf("%d", &n); int sum = 0; 阅读全文