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++: // 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 <iostream>
using namespace std;

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

C++: #include <iostream>


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

C++: #include <bits/stdc++.h>
using namespace std;
#define FOR(i, s, n) for(int i = s; i < (int)n; i++)
#define per(i, n) for(int i = n; i >= 0; i--)
#define ROF(i, s, n) for(int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define MP make_pair
#define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i)
#define SZ(a) int((a).size())
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define CLR(a) memset((a), 0 ,sizeof(a))
#define NCLR(a) memset((a), -1 ,sizeof(a))
#define dump(x) cout << #x << " = " << (x) << "\n";
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n";
#define sq(n) (n) * (n)
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef vector<LL> VLL;
typedef vector<VLL> VVLL;
typedef unsigned int uint;
typedef unsigned long long ull;
typedef priority_queue<int> maxpq;
typedef priority_queue< int, vector<int>, greater<int> > minpq;
typedef complex<double> P;
static const double EPS = 1e-10;
static const double PI = acos( -1.0 );
static const int mod = 1000000007;
static const int INF = 1 << 29;
static const LL LL_INF = 1152921504606846976;
static const int dx[] = { -1, 0, 1, 0, 1, -1, 1, -1 };
static const int dy[] = { 0, -1, 0, 1, 1, 1, -1, -1 };


int main() {
#ifdef _DEBUG
	printf( "debug\n" );
#endif
	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(int argc, const char * argv[]){
    int a,b;
    for (a=1;a<=9;a++){
        for (b=1;b<=9;b++)
            printf("%dx%d=%d\n",a,b,a*b);
    }
    return 0;
}

C++: // includes
#include <cstdio>
#include <cstdint>
#include <iostream>
#include <iomanip>
#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <set>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <utility>
#include <functional>
#include <cmath>
#include <climits>
#include <bitset>

// macros
#define ll long long int
#define pb push_back
#define mk make_pair
#define pq priority_queue
#define FOR(i, a, b) for(int i=(a); i<(b);++i)
#define rep(i, n) FOR(i, 0, n)

using namespace std;

//  types
typedef pair<int, int> P;
typedef pair<ll, int> Pl;
typedef pair<ll, ll> Pll;
 
// constants
const int inf = 1e9;
const ll linf = 1LL << 50;
const double EPS = 1e-10;

// solve

int main(int argc, char const* argv[])
{
  FOR(i, 1, 10){
    FOR(j, 1, 10){
      cout << i << "x" << j << "=" << i * j << endl;
    }
  }
	return 0;
}

C++: #include "bits/stdc++.h"

#define REP(i,num) for(int i=0;i<(num);++i)
#define ALL(c) c.begin(),c.end()
#define PRINTALL(c) for(auto& x:c){cout<<x<<' ';}cout<<endl;
#define PAIRCOMP(c,comp) [](const pair<ll,ll>& lhs,const pair<ll,ll>& rhs){return lhs.c comp rhs.c;}

using namespace std;
using ll = long long;

constexpr ll atcoder_mod = 1e9+7;

template<typename T=int>
T in(){T x; cin >> x; return (x);}
template<typename T=int,typename C=vector<T>>
C vecin(int N){C x(N);REP(i,N){x[i]=in<T>();}return move(x);}

void vout(){cout << endl;}
template<typename Head,typename... Tail>
void vout(Head&& h,Tail&&... t){cout << ' ' << h;vout(forward<Tail>(t)...);}
void out(){cout << endl;}
template<typename Head,typename... Tail>
void out(Head&& h,Tail&&... t){cout << h;vout(forward<Tail>(t)...);}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	REP(i,9){
		REP(j,9){
			cout << i+1 << 'x' << j+1 << '=' << (i+1)*(j+1) << 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;
}
}
}

C++: #include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<ll> VL;
typedef vector<VL> VVL;
typedef pair<int, int> PII;

#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(x) x.begin(), x.end()
#define MOD 1000000007
#define INF (1LL<<25)     //33554432
#define PI 3.14159265359
#define EPS 1e-12
//#define int ll

signed main(void)
{
  FOR(i, 1, 10) FOR(j, 1, 10) {
    cout << i << "x" << j << "=" << i*j << endl;
  }

  return 0;
}