FZU - 2266 Card Game (Third Edition)

//水题
#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;
}

posted @ 2017-08-20 15:21  mofushaohua  阅读(161)  评论(0编辑  收藏  举报