//水题
#include <cstdio>
#include <iostream>
using namespace std;
const int N = 1e4 + 10;
int a[N], b[N];
int main()
{
int k, n;
scanf("%d", &k);
for (int c = 1; c <= k; c++)
{
scanf("%d", &n);
for (int i = 0; i < n; i++) scanf("%d", a + i);
for (int i = 0; i < n; i++) scanf("%d", b + i);
int ans = 0;
for (int i = 0; i < n; i++)
if (b[i] + a[i] > 10) ans++;
printf("Case %d: %d\n", c, ans);
}
return 0;
}
FZU - 2266 Card Game (Third Edition)
最新推荐文章于 2024-10-31 16:16:13 发布