#include <stdio.h>
int T, N, low, high;
int main()
{
int i, j, num, record;
scanf("%d", &T);
for (i = 1; i <= T; i ++)
{
low = 0, high = 0;
scanf("%d%d", &N, &record), N --;
while (N --)
{
scanf("%d", &num);
if (record > num) low ++;
if (record < num) high ++;
record = num;
}
printf("Case %d: %d %d\n", i, high, low);
}
return 0;
}
回目錄
回首頁
沒有留言 :
張貼留言