Go: package main

import "fmt"
import "strconv"

func main() {
  for i := 1; i <= 9; i++ {
    for j := 1; j <= 9; j++ {
      res := i * j
      fmt.Println(strconv.Itoa(i) + "x" + strconv.Itoa(j) + "=" + strconv.Itoa(res))
    }
  }
}

C++: #include<iostream>
using namespace std;

int main(){
	unsigned a, b;
	for ( a = 1; a  <= 9; a++ )
	{
		for ( b = 1; b <= 9; b++ )
		{
			cout  << a << 'x' << b << '=' << a * b << endl;
		}
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i=0;i<n;i++)

int main() {
  rep(i,9) {
    rep(j,9) {
      cout<<i+1<<"x"<<j+1<<"="<<(i+1)*(j+1)<<endl;
    }
  }
  return 0;
}

C++: #include<iostream>
int main(void){
int i=1,j=1
for(i;i<10;i++){
for(j=1;j<10;j++){
std::cout<<i<<"x"<<j<<"="<<i*j<<std::endl;
}}

return 0;
}

C++: #include <iostream>
using namespace std;

int main()
{
  for(int i = 1; i <= 9; i++){
    for(int j = 1; j <= 9; j++){
      cout << i << "x" << j << "=" << i * j << endl;
    }
  }
}

C++: #include<iostream>
using namespace std;

int main(){
	for(int i=1;i<=9;i++){
		for(int j=1;j<=9;j++){
			cout<<i<<"x"<<j<<"="<<i*j<<endl;
		}
	}
    return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
using namespace std;
#define MAXN 500010
struct _node
{
    int u,v,w;
    bool operator < (const _node &b) const
    {
        return w<b.w;
    }
}no[MAXN];
struct _query
{
    int t,id;
    bool operator < (const _query &b) const
    {
        return t<b.t;
    }
}query[MAXN];
int fa[MAXN],ran[MAXN],ans[MAXN],sum;
int findfa(int n)
{
    if(fa[n]!=n)
        fa[n]=findfa(fa[n]);
    return fa[n];
}
inline void mul(int a,int b)
{
    a=findfa(a),b=findfa(b);
    int af=ran[a],bf=ran[b];
    if(a==b)    return ;
    if(af<bf)   swap(a,b);
    fa[b]=a,ran[a]+=ran[b];
    sum-=af*(af-1),sum-=bf*(bf-1);
    sum+=ran[a]*(ran[a]-1);
}
int main()
{
    //freopen("/home/moor/Code/input","r",stdin);
    int n,m,q;
    while(scanf("%d%d",&n,&m)==2)
    {
        for(int i=0;i<m;++i)
            scanf("%d%d%d",&no[i].u,&no[i].v,&no[i].w),++no[i].u,++no[i].v;
        for(int i=1;i<=n;++i)   fa[i]=i,ran[i]=1;
        sort(no,no+m);
        scanf("%d",&q);
        for(int i=0;i<q;++i)    scanf("%d",&query[i].t),query[i].id=i;
        sort(query,query+q);
        sum=0;
        int l=0;
        for(int i=0;i<q;++i)
        {
            while(l<m&&no[l].w<query[i].t)
                mul(no[l].u,no[l].v),++l;
            ans[query[i].id]=sum;
        }
        while(l<m)  mul(no[l].u,no[l].v),++l;
        for(int i=0;i<q;++i)    printf("%d\n",sum-ans[i]);
    }
    return 0;
}

C++: #include<iostream>

using namespace std;

int main(void)
{
	for(int i = 1; i <= 9; i++){
		for(int j = 1; j <= 9; j++){
			cout << i << "x" << j << "=" << i*j << endl;
		}
	}
	return 0;
}

C++: #include <iostream>

int main(){
	
	//double loop
	//?????????????????§??????
	for(int i = 1; i <= 9; ++i){
		for(int j = 1; j <= 9; ++j){
			std::cout << i << "x" << j << "=" << i*j << std::endl;
		}
	}
	return 0;
}

C++: #include <iostream>
using namespace std;

int main() {
    for ( int i = 1; i <= 9; ++ i ) {
        for ( int j = 1; j <= 9; ++ j ) {
            cout << i << "x" << j << "=" << i * j << endl;
        }
    }
	return 0;
}

C++: #include<iostream>
using namespace std;

int main(){
    for(int i=1;i<=9;++i)
       for(int j=1;j<=9;++j)
             cout << i << 'x' << j << '=' << i*j << endl;
    return 0;
}

C++: #include<stdio.h>
//#include<windows.h>
int main()
{
	int i,j;
	for(i=1;i<=9;i++)
		for(j=1;j<9;j++)
			printf("%dx%d=%d\n",i,j,i*j);
	//	system("pause");
		return 0;
}

C++: #include<iostream>
using namespace std;

int main(){
	for(int i = 1;i<=9;i++)
	{
		for(int j=1;j<=0;j++)
		{
			cout << i << "x" << j << "=" << i*j;
		}
	}
    return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
    for (int i = 1; i <= 9; ++i) {
        for (int j = 1; j <= 9; ++j) {
            printf("%dx%d=%d\n", i, j, i * j);
        }
    }
    return 0;
}

C++: #include <iostream>
#include <cstdio>
using namespace std;

int main(){
  for(int i = 1; i <= 9; i++){
    for(int j = 1; j <= 9; j++){
      printf("%dx%d=%d\n", i, j, i * j);
    }
  }
}

C++: #include<stdio.h>
char a, b;int main(){for(a=1;a<=9;a++)for(b=1;b<=9;b++)printf("%dx%d=%d\n",a,b,a*b);return 0;}

C++: #include <iostream>
using namespace
int main(){
int a,b,x;


	for(int j=1;j<=9;j++){
		a=j;
		for(int i=1;i<=9;i++){
		b=i;
		cout<<a<<"x"<<b<<"="<<a*b<<endl;
		
		}
	    }
}

C++: #include <iostream>
using namespace std;

int main()
{
    for(int i=1;i<10;i++)
        for(int j=1;j<10;j++)
         cout << i << "x" << j << "=" << i*j << endl;
    return 0;
}

C++: #include<stdio.h>
int a, b;int main(){for(a=1;a<=9;a++)for(b=1;b<=9;b++)printf("%dx%d=%d\n",a,b,a*b);return 0;}

C++: #include <iostream>
using namespace std;
int main(){
  for(int i=1;i<10;i++){
    for(int j=1;j<10;j++){
      cout << i << 'x' << j << '=' << i*j << endl;
    }
  }
  return 0;
}

C++: #include <stdio.h>
using namespace std;
int main()
{
	for(int i=1;i<=9;i++)for(int j=1;j<=9;j++)printf("%dx%d=%d\n",i,j,i*j);
    return 0;
}

C++: #include <iostream>
using namespace std;

int main() {
    for ( int i = 1; i <= 9; ++ i ) {
        for ( int j = 1; j <= 9; ++ j ) {
            cout << i << "x" << j << "=" << i * j << endl;
        }
    }
	return 0;
}

C++: #include<iostream>
using namespace std;

int main(){

	int i, j;

	for (i = 1; i < 10; i++){
		for (j = 1; j < 10; j++){
			cout << i << "x" << j << "=" << j * i << "\n";
		}
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a;
  for(int i=1;i<=9;i++){
    for(int j=1;j<=9;j++){
      a=i*j;
      cout<<i<<"x"<<j<<"="<<a<<endl;
    }
  }
}

C++: #include <cstdio>

int main()
{
	for(int i = 1; i <= 9; i ++)
	{
		for(int j = 1; j <= 9; j ++)
		{
			::printf("%dx%d=%d\n", i, j, i * j);
		}
	}
}

C++: #include  <cstdio>
int main()
{
for(int i=1;i<=9;i++)
for(int j=1;j<=9;j++)
printf("%dx%d=%d\n",i,j,i*j);
}

C++: #include <iostream>
using namespace std;

int main()
{
	for(int i=1;i<=9;i++)
		for(int j=1;j<=9;j++)
			printf("%dx%d\n",i,j);
	return 0;
}

C++: #include <iostream>
#include <cstdio>
using namespace std;
int m,k;
int dfs(int n)
{
    int a=n/k;
    int b=n%k;
    int tmp=0;
    if(n<k)
    {
        for(int i=1;i<n;i++) tmp+=i;
        return tmp;
    }
    else
    {
        for(int i=1;i<k-1;i++) tmp+=i;
        tmp+=(n-k+1)*(k-1);
    }
    for(int i=1;i<=b;i++) tmp+=dfs(a+1);
    for(int i=b+1;i<=k;i++) tmp+=dfs(a);
    return tmp;
}
int main()
{
    int T,kase=1;
    cin>>T;
    while(T--)
    {
        cin>>m>>k;
        cout<<dfs(m)<<endl;
    }
    return 0;
}

C++: #include <iostream>
using namespace std;

int main(){
  for(int i=1;i<=9;i++){
    for(int j=1;j<=9;j++){
      cout <<i<<"x"<<j<<"="<<i*j<<endl;
    }
  }
  return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
for(int i = 1; i < 10; i++)
for(int j = 1; j < 10; j++)
cout << i << "x" << j << i*j << endl;
return 0;
}

C++: #include <iostream>
using namespace std;

int main() {
  int a = 1;
  int b = 1;
  for (???;) {
    cout << a << "x" << b << "=" << a*b << endl;
    ++b;
    if ( b = 10;) {
      ++a;
      int b = 1;
    } else if ( a == 9 && b == 10;) {
      break;
    }

  }

  return 0;
}

C++: #include<iostream>
using namespace std;

int main(){
		int i;
		int j;
		for(i = 1; i < 10; i++){
			for(j = 1; j < 10; j++){
    		cout << i << "x" << j << "=" << i*j << endl;
			}
		}
    return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    for (int i = 0; i < 9; ++i) {
        for (int j=0;j<9;j++){
            cout<<(i+1)<<"x"<<(j+1)<<"="<<(i+1)*(j+1)<<endl;
        }
    }
    return 0;
}

C++: #include <cstdio>

#define N	9

int main()
{
	for(int i = 1; i <= N; i ++)
	{
		for(int j = 1; j < N; j ++)
		{
			::printf("%dx%d=%d\n", i, j, i * j);
		}
	}
}