holiday/8.20/A.cpp
2022-08-22 22:19:52 +08:00

35 lines
484 B
C++

//not finish
#include <iostream>
#include<cstdio>
#include<algorithm>
#include <cmath>
using namespace std;
const int N=1e5+5;
void init(int n)
{
}
int main()
{
int t;
int t1=0;
int n;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
init(n);
for(int i=1;i<=n; i++)
{
for(int j=1;j<=n;j++)
{
int z=(i&j)+(i|j);
printf("%d,%d:%d\n",i,j,z);
}
}
printf("Case %d: %d\n",++t1,n);
}
return 0;
}