#include <stdio.h> #include <string.h>

int analysis(int x);

int main() { int x; scanf("%d", &x); int days = analysis(x); printf("%d", days); return 0; }

int analysis(int x) { int days = 0; int num; char word[101]; while (scanf("%d", &num) != EOF && num != -1) { if (num > x) { days++; } for (int i = 0; i < num; i++) { scanf("%s", word); } } return days; }

// Program End

C语言函数实现英语单词学习记录分析 - 超过指定数量单词的天数统计

原文地址: https://www.cveoy.top/t/topic/oEvU 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录