摘要:
P5716 [深基3.例9] 月份天数 #include <cstdio> int main() { int days[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int y, m; scanf("%d%d", &y, &m); i 阅读全文
摘要:
P5722 [深基4.例11] 数列求和 #include <cstdio> int main() { int n; scanf("%d", &n); int sum = 0; for (int i = 1; i <= n; i++) sum += i; printf("%d\n", sum); r 阅读全文
摘要:
P5709 [深基2.习6] Apples Prologue / 苹果和虫子 #include <cstdio> #include <algorithm> using namespace std; int main() { int m, t, s, ans; scanf("%d%d%d", &m, 阅读全文