Go: package main

import (
	"fmt"
	"strconv"
)

func main() {
	for _, leftValue := range MultiplicationTableNum(9) {
		for _, rightValue := range MultiplicationTableNum(9) {
			strLeftVal, strRightVal, strMulti := strconv.Itoa(leftValue), strconv.Itoa(rightValue), strconv.Itoa(Multiplication(leftValue, rightValue))
			fmt.Println(strLeftVal + "x" + strRightVal + "=" + strMulti)
		}
	}
}

func MultiplicationTableNum(num int) []int {
	multiNum := []int{}
	for i := 1; i <= num; i++ {
		multiNum = append(multiNum, i)
	}
	return multiNum
}

func Multiplication(x, y int) int {
	return x * y
}

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<cstdio>
#include<iostream>
using namespace std;
int main ()
{
    int n,m,a[100]={0};
    scanf("%d%d",&n,&m);
    for(int i=0;i<n;i++){
        scanf("%d",&a[i]);
    }
    for(int i=1;i<=m;i++){
        for(int j=0;j<n-1;j++){
            if(a[j]%i>a[j+1]%i) swap(a[j],a[j+1]);
        }
    }
    for(int i=0;i<n;i++){
        printf("%d\n",a[i]);
    }
    return 0;
}

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

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

C++: // C
#include <cassert>
#include <cctype> //char型などの文字列の長さを測定するstrlen関数など
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>  //平方根などを求めるsqrt関数など
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio> //標準入出力を行うscanf関数、printf関数など
#include <cstdlib> //簡単にソートを行うqsort関数など
#include <cstring>
#include <ctime>
// C++
#include <algorithm> //数の入れ替えを行うswap関数など
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream> //C++においての標準入出力であるsin、coutなど
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map> //配列内の要素(array[0]の0の部分)を文字列に置き換えて使いたい時など
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue> //FIFOの実装など
#include <set> 
#include <sstream>
#include <stack> //LIFOの実装など
#include <stdexcept>
#include <streambuf>
#include <string> //C++における文字列型のstring型の実装など
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector> //動的に配列を確保したい時など


using namespace std;

#define INF 1 << 25
typedef vector<int> VI;
#define rep(i, n) for(int i = 0; i < (int)n; i++)

int ans = INF;

int main(){
	vector<int> ar;
	int n, m, q, now = 0, i;
	scanf("%d %d %d", &n, &m, &q);
	for (i = 0; i < n; i++){
		ar.push_back(i);
	}
	int a;
	int b = ar.size();
	for (i = m; i; i--){
		scanf("%d", &a);
		if (a % b == 0){
			b--;
			ar.erase(ar.begin() + now);
			now %= b;
			continue;
		}
		if (a % 2 == 0){
			now += (a %= b);
			now %= b;
			ar.erase(ar.begin() + now);
			now %= (b -= 1);
		}
		else{
			now += b - (a %= b);
			now %= b;
			ar.erase(ar.begin() + now);
			now %= (b -= 1);
		}
	}
	for (i = q; i; i--){
		scanf("%d", &a);
		if (binary_search(ar.begin(),ar.end(),a)){
			printf("1\n");
		}
		else{
			printf("0\n");
		}
		
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<char> vc;
typedef vector<ll> vll;
typedef vector<vector<int>> vvi;
typedef vector<vector<string>> vvs;
typedef vector<vector<char>> vvc;
typedef vector<vector<bool>> vvb;
typedef pair<int,int> P;
#define vrep(v,n) for(int i=0;i<n;i++){cin >> v.at(i);} //配列vにn個の要素を入力する
#define rep(i, l, n) for (int i = l; i < (int)(n); i++)
#define repn(i, l, n) for (int i = l; i <= (int)(n); i++)
#define pb push_back 

const int mod = 1000000007;
const int inf = 1e9;

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

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

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

C++: #include <bits/stdc++.h>
using namespace std;

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl;
typedef long long ll;
typedef unsigned long long ull;

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>
using namespace std;
 
int main(){
int sintyoku = 0;
/*ICPCにでたい人生だった*/
for(int i = 0;i < 114514:i++){
sintyoku--;
}
/*今日はラーメン食べたいなあ*/
  for(int i = 1;i < 10;i++){
    for(int j = 1;j < 10;j++){
      printf("%dx%d=%d\n",i,j,i*j);
    }
  }
  return 0;
}

C++: #include <stdio.h>

int main()
{
  for (int i = 1; i < 10; i++) {
    for (int j = 1; j < 10; 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 < 10; i++){
        for (int j = 1; j < 10; j++){
            cout << i << "x" << j << "=" << i*j << endl;
        }
    }
    
    return 0;
}

C++: #include<stdio.h>
main(){printf("%d",1);}

C++: //AOJ 0000
//include
#include<cstdio>
#include<cctype>
#include<cstring>
#include<cstdlib>
#include<algorithm>
#include<stack>
#include<queue>
#include<deque>
#include<vector>
#include<list>
#include<bitset>
#include<set>
#include<iostream>
 
//using namespace
using namespace std;
 
//define
 
//variable
short a, b;
 
//function
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 <= 9; i++){
		for (int j = 1; j <= 9; j++){
			cout << i << "x" << j << "=" << i*j << endl;
		}
	}


	return 0;
}

C++: #include <stdio.h>
#include <iostream>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
using namespace std;

#define FOR(i,s,e) for (int i = int(s); i != int(e); i++)
#define REP(i,e) for (int i = 0; i != int(e); i++)
#define FORIT(i, A) for (auto i : A)
#define ISEQ(c) (c).begin(), (c).end()
#define PRINT(x) cout << (x) << endl
#define SZ(x) ((int)(x).size())

int main(int argc, char const *argv[])
{
	REP(i, 9){
		REP(j, 9) {
			printf("%dx%d=%d\n", i+1, j+1,(i+1)*(j+1));
		}
	}
	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);}}}

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

C++: #include <bits/stdc++.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;
}