buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
change_count
int64
0
100
#include <iostream> using namespace std; int main() { int x, y; for (int i = 1; i < 9; i++) { for (int j = 1; j < 9; j++) { cout << i << "x" << j << "=" << i * j << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int x, y; for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { cout << i << "x" << j << "=" << i * j << endl; } } return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]]
1
72
4
#include <iostream> using namespace std; int main() { int a; int b; a = 1; while (a < 10) { b = 1; while (b < 10) { cout << a << "x" << b << "=" << a * b; b = b + 1; } a = a + 1; } return 0; }
#include <iostream> using namespace std; int main() { int a; int b; a = 1; while (a < 10) { b = 1; while (b < 10) { cout << a << "x" << b << "=" << a * b << endl; b = b + 1; } a = a + 1; } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]]
1
75
2
#include <iostream> using namespace std; int main() { for (int i = 1; i < 10; ++i) { for (int j = 1; j < 10; ++j) cout << i << "*" << j << "=" << i * j << endl; } return 0; }
#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; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
65
2
#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 << "\n"; } } return 0; }
#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 << "\n"; } } return 0; }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
1
69
2
#include <iostream> int main(int argc, const char *argv[]) { int result; for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { result = i * j; std::cout << i << "×" << j << "=" << result << "\n"; } } return 0; }
#include <iostream> int main(int argc, const char *argv[]) { int result; for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { result = i * j; std::cout << i << "x" << j << "=" << result << "\n"; } } return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
83
2
#include <cstdio> int main() { int i, j; for (i = 1; i <= 9; i++) { for (j = 0; j <= 9; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
#include <cstdio> 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); } } return 0; }
[["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13]]
1
62
2
#define PUSHINT10 "ak.-" #define PUSHINT1 "01.-" #define PUTSPACE "0P.-.o" #define PUTCOLON "0j.-.o" #define PUTLF "ak.-.o" #define INCREMENT PUSHINT1 ".+" #define DECREMENT PUSHINT1 ".-" #define PXEM ".pxem" char *PROG = PUSHINT1 PUSHINT1 ".c" PUSHINT10 // 10,i,i,j ".y" // while 10>i ".v.c.t.m.v.m" // j,i,j,j PUSHINT10 // 10,j,i,j,j ".y" // while 10>j ".c.c.nx.o" // i,i,j,j ".v.t.c.n=.o" // j,i,i ".!.n" PUTLF // i ".m" INCREMENT // j,i ".c.v.m" INCREMENT PUSHINT10 ".a" // i,j,j ".v.s.s" PUSHINT1 ".v" INCREMENT ".c" PUSHINT10 ".a.s" PXEM; // http://cfs.maxn.jp/neta/pxem.php #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <queue> #include <stack> #include <string> using namespace std; class Pxem { private: stack<int> pStack; // stack char *fName; // file name char *fCont; // file contents int temp; // temporary area bool used; // used temp? void print(); // print stack bool out(); // output void numOut(); // output(number) void input(); // input void numInput(); // number input void copy(); // x,y,z -> x,x,y,z void throwAway(); // x,y,z -> y,z void inverse(); // x,y,z -> z,y,x void fileRead(); // input from file contents void emu(); // run pxem using file contents void getRand(); // create random number from stack[0] void toTemp(); // temp = stack[0]; void fromTemp(); // if(used) stack.push(temp); void addition(); // x,y,z -> (x+y),z void subtraction(); // x,y,z -> abs(x-y),z void multiplication(); // x,y,z -> (x*y),z void getQuotient(); // x,y,z -> (x>y?int(x/y):int(y/x)),z void getSurplus(); // x,y,z -> (x>y?int(x%y):int(y%x)),z void addStr(char *); // addStr("ab"); -> pStack.push(98);pStack.push(97); public: Pxem(char *, char *); // constructor from main() Pxem(char *, char *, stack<int>); // constructor from Pxem void run(); // run pxem stack<int> getStack() const; // get stack }; Pxem::Pxem(char *f, char *g) : fName(f), fCont(g) { srand((unsigned)time(NULL)); } Pxem::Pxem(char *f, char *g, stack<int> hoge) : fName(f), fCont(g) { srand((unsigned)time(NULL)); stack<int> fuga; while (!hoge.empty()) { fuga.push((int)hoge.top()); hoge.pop(); } while (!fuga.empty()) { pStack.push(fuga.top()); hoge.push(fuga.top()); fuga.pop(); } } void Pxem::run() { long ps = 0; long slen = strlen(fName); string buf; while (ps < slen) { if (fName[ps] == '.' && ps + 1 < slen) { int cnt; int ccp; switch (fName[++ps]) { case 'p': case 'P': // print stack addStr((char *)buf.c_str()); buf = ""; print(); break; case 'o': case 'O': // output addStr((char *)buf.c_str()); buf = ""; out(); break; case 'n': case 'N': // output(number) addStr((char *)buf.c_str()); buf = ""; numOut(); break; case 'i': case 'I': // input addStr((char *)buf.c_str()); buf = ""; input(); break; case '_': // input(number) addStr((char *)buf.c_str()); buf = ""; numInput(); break; case 'c': case 'C': // x,y,z -> x,x,y,z addStr((char *)buf.c_str()); buf = ""; copy(); break; case 's': case 'S': // x,y,z -> x,y addStr((char *)buf.c_str()); buf = ""; throwAway(); break; case 'v': case 'V': // x,y,z -> z,y,x addStr((char *)buf.c_str()); buf = ""; inverse(); break; case 'f': case 'F': // input from file contents addStr((char *)buf.c_str()); buf = ""; fileRead(); break; case 'e': case 'E': // run pxem using file contents addStr((char *)buf.c_str()); buf = ""; emu(); break; case 'r': case 'R': // create random number from stack[0] addStr((char *)buf.c_str()); buf = ""; getRand(); break; case 'w': case 'W': addStr((char *)buf.c_str()); buf = ""; if (!pStack.empty()) { cnt = pStack.top(); pStack.pop(); if (cnt == 0) { ps++; cnt = 1; while (cnt) { if (fName[ps] == '.') { switch (fName[++ps]) { case 'w': case 'W': case 'x': case 'X': case 'y': case 'Y': case 'z': case 'Z': cnt++; break; case 'a': case 'A': cnt--; break; } } ps++; } ps--; } } break; case 'x': case 'X': addStr((char *)buf.c_str()); buf = ""; if (pStack.size() > 1) { cnt = pStack.top(); pStack.pop(); ccp = pStack.top(); pStack.pop(); if (cnt >= ccp) { ps++; cnt = 1; while (cnt) { if (fName[ps] == '.') { switch (fName[++ps]) { case 'w': case 'W': case 'x': case 'X': case 'y': case 'Y': case 'z': case 'Z': cnt++; break; case 'a': case 'A': cnt--; break; } } ps++; } ps--; } } break; case 'y': case 'Y': addStr((char *)buf.c_str()); buf = ""; if (pStack.size() > 1) { cnt = pStack.top(); pStack.pop(); ccp = pStack.top(); pStack.pop(); if (cnt <= ccp) { ps++; cnt = 1; while (cnt) { if (fName[ps] == '.') { switch (fName[++ps]) { case 'w': case 'W': case 'x': case 'X': case 'y': case 'Y': case 'z': case 'Z': cnt++; break; case 'a': case 'A': cnt--; break; } } ps++; } ps--; } } break; case 'z': case 'Z': addStr((char *)buf.c_str()); buf = ""; if (pStack.size() > 1) { cnt = pStack.top(); pStack.pop(); ccp = pStack.top(); pStack.pop(); if (cnt == ccp) { ps++; cnt = 1; while (cnt) { if (fName[ps] == '.') { switch (fName[++ps]) { case 'w': case 'W': case 'x': case 'X': case 'y': case 'Y': case 'z': case 'Z': cnt++; break; case 'a': case 'A': cnt--; break; } } ps++; } ps--; } } break; case 'a': case 'A': addStr((char *)buf.c_str()); buf = ""; ps -= 2; cnt = -1; while (cnt) { if (fName[ps] == '.') { switch (fName[ps + 1]) { case 'w': case 'W': case 'x': case 'X': case 'y': case 'Y': case 'z': case 'Z': cnt++; break; case 'a': case 'A': cnt--; break; } } ps--; } break; case 't': case 'T': addStr((char *)buf.c_str()); buf = ""; toTemp(); break; case 'm': case 'M': addStr((char *)buf.c_str()); buf = ""; fromTemp(); break; case 'd': case 'D': addStr((char *)buf.c_str()); buf = ""; return; case '+': addStr((char *)buf.c_str()); buf = ""; addition(); break; case '-': addStr((char *)buf.c_str()); buf = ""; subtraction(); break; case '!': addStr((char *)buf.c_str()); buf = ""; multiplication(); break; case '$': addStr((char *)buf.c_str()); buf = ""; getQuotient(); break; case '%': addStr((char *)buf.c_str()); buf = ""; getSurplus(); break; default: buf += fName[--ps]; } } else buf += fName[ps]; ps++; } if (strlen((char *)buf.c_str()) > 0) addStr((char *)buf.c_str()); } inline stack<int> Pxem::getStack() const { return pStack; } inline void Pxem::print() { while (out()) ; } inline bool Pxem::out() { if (pStack.empty()) return false; int aaa = pStack.top(); putchar(aaa); pStack.pop(); return true; } inline void Pxem::numOut() { if (pStack.empty()) return; int aaa = pStack.top(); printf("%d", aaa); pStack.pop(); } inline void Pxem::input() { int aaa = getchar(); pStack.push(aaa); } inline void Pxem::numInput() { int aaa; scanf("%d", &aaa); pStack.push(aaa); } inline void Pxem::copy() { int i = pStack.top(); pStack.push(i); } inline void Pxem::throwAway() { if (!pStack.empty()) pStack.pop(); } void Pxem::inverse() { queue<int> fuga; while (!pStack.empty()) { fuga.push((int)pStack.top()); pStack.pop(); } while (!fuga.empty()) { pStack.push(fuga.front()); fuga.pop(); } } inline void Pxem::fileRead() { addStr(fCont); } void Pxem::emu() { Pxem newPxem(fCont, fCont, pStack); newPxem.run(); stack<int> aaa = newPxem.getStack(); stack<int> bbb; while (!aaa.empty()) { bbb.push((int)aaa.top()); aaa.pop(); } while (!bbb.empty()) { pStack.push(bbb.top()); bbb.pop(); } } inline void Pxem::getRand() { int aaa = rand() % pStack.top(); pStack.pop(); pStack.push(aaa); } inline void Pxem::toTemp() { if (pStack.empty()) return; temp = pStack.top(); pStack.pop(); used = true; } inline void Pxem::fromTemp() { if (used) pStack.push(temp); } void Pxem::addition() { if (pStack.size() < 2) return; int aa = pStack.top(); pStack.pop(); int bb = pStack.top(); pStack.pop(); pStack.push(aa + bb); } void Pxem::subtraction() { if (pStack.size() < 2) return; int aa = pStack.top(); pStack.pop(); int bb = pStack.top(); pStack.pop(); pStack.push(abs(aa - bb)); } void Pxem::multiplication() { if (pStack.size() < 2) return; int aa = pStack.top(); pStack.pop(); int bb = pStack.top(); pStack.pop(); pStack.push(aa * bb); } void Pxem::getQuotient() { if (pStack.size() < 2) return; int aa = pStack.top(); pStack.pop(); int bb = pStack.top(); pStack.pop(); pStack.push(aa > bb ? aa / bb : bb / aa); } void Pxem::getSurplus() { if (pStack.size() < 2) return; int aa = pStack.top(); pStack.pop(); int bb = pStack.top(); pStack.pop(); pStack.push(aa > bb ? aa % bb : bb % aa); } void Pxem::addStr(char *str) { int leng = strlen(str); while (leng--) pStack.push((int)str[leng]); } int main() { Pxem(PROG, "").run(); }
#define PUSHINT10 "ak.-" #define PUSHINT1 "01.-" #define PUTSPACE "0P.-.o" #define PUTCOLON "0j.-.o" #define PUTLF "ak.-.o" #define INCREMENT PUSHINT1 ".+" #define DECREMENT PUSHINT1 ".-" #define PXEM ".pxem" char *PROG = PUSHINT1 PUSHINT1 ".c" PUSHINT10 // 10,i,i,j ".y" // while 10>i ".v.c.t.m.v.m" // j,i,j,j PUSHINT10 // 10,j,i,j,j ".y" // while 10>j ".c.c.nx.o" // i,i,j,j ".v.t.c.n=.o" // j,i,i ".!.n" PUTLF // i ".m" INCREMENT // j,i ".c.v.m" INCREMENT PUSHINT10 ".a" // i,j,j ".v.s.s" PUSHINT1 ".v" INCREMENT ".c" PUSHINT10 ".a.s.s" PXEM; // http://cfs.maxn.jp/neta/pxem.php #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <queue> #include <stack> #include <string> using namespace std; class Pxem { private: stack<int> pStack; // stack char *fName; // file name char *fCont; // file contents int temp; // temporary area bool used; // used temp? void print(); // print stack bool out(); // output void numOut(); // output(number) void input(); // input void numInput(); // number input void copy(); // x,y,z -> x,x,y,z void throwAway(); // x,y,z -> y,z void inverse(); // x,y,z -> z,y,x void fileRead(); // input from file contents void emu(); // run pxem using file contents void getRand(); // create random number from stack[0] void toTemp(); // temp = stack[0]; void fromTemp(); // if(used) stack.push(temp); void addition(); // x,y,z -> (x+y),z void subtraction(); // x,y,z -> abs(x-y),z void multiplication(); // x,y,z -> (x*y),z void getQuotient(); // x,y,z -> (x>y?int(x/y):int(y/x)),z void getSurplus(); // x,y,z -> (x>y?int(x%y):int(y%x)),z void addStr(char *); // addStr("ab"); -> pStack.push(98);pStack.push(97); public: Pxem(char *, char *); // constructor from main() Pxem(char *, char *, stack<int>); // constructor from Pxem void run(); // run pxem stack<int> getStack() const; // get stack }; Pxem::Pxem(char *f, char *g) : fName(f), fCont(g) { srand((unsigned)time(NULL)); } Pxem::Pxem(char *f, char *g, stack<int> hoge) : fName(f), fCont(g) { srand((unsigned)time(NULL)); stack<int> fuga; while (!hoge.empty()) { fuga.push((int)hoge.top()); hoge.pop(); } while (!fuga.empty()) { pStack.push(fuga.top()); hoge.push(fuga.top()); fuga.pop(); } } void Pxem::run() { long ps = 0; long slen = strlen(fName); string buf; while (ps < slen) { if (fName[ps] == '.' && ps + 1 < slen) { int cnt; int ccp; switch (fName[++ps]) { case 'p': case 'P': // print stack addStr((char *)buf.c_str()); buf = ""; print(); break; case 'o': case 'O': // output addStr((char *)buf.c_str()); buf = ""; out(); break; case 'n': case 'N': // output(number) addStr((char *)buf.c_str()); buf = ""; numOut(); break; case 'i': case 'I': // input addStr((char *)buf.c_str()); buf = ""; input(); break; case '_': // input(number) addStr((char *)buf.c_str()); buf = ""; numInput(); break; case 'c': case 'C': // x,y,z -> x,x,y,z addStr((char *)buf.c_str()); buf = ""; copy(); break; case 's': case 'S': // x,y,z -> x,y addStr((char *)buf.c_str()); buf = ""; throwAway(); break; case 'v': case 'V': // x,y,z -> z,y,x addStr((char *)buf.c_str()); buf = ""; inverse(); break; case 'f': case 'F': // input from file contents addStr((char *)buf.c_str()); buf = ""; fileRead(); break; case 'e': case 'E': // run pxem using file contents addStr((char *)buf.c_str()); buf = ""; emu(); break; case 'r': case 'R': // create random number from stack[0] addStr((char *)buf.c_str()); buf = ""; getRand(); break; case 'w': case 'W': addStr((char *)buf.c_str()); buf = ""; if (!pStack.empty()) { cnt = pStack.top(); pStack.pop(); if (cnt == 0) { ps++; cnt = 1; while (cnt) { if (fName[ps] == '.') { switch (fName[++ps]) { case 'w': case 'W': case 'x': case 'X': case 'y': case 'Y': case 'z': case 'Z': cnt++; break; case 'a': case 'A': cnt--; break; } } ps++; } ps--; } } break; case 'x': case 'X': addStr((char *)buf.c_str()); buf = ""; if (pStack.size() > 1) { cnt = pStack.top(); pStack.pop(); ccp = pStack.top(); pStack.pop(); if (cnt >= ccp) { ps++; cnt = 1; while (cnt) { if (fName[ps] == '.') { switch (fName[++ps]) { case 'w': case 'W': case 'x': case 'X': case 'y': case 'Y': case 'z': case 'Z': cnt++; break; case 'a': case 'A': cnt--; break; } } ps++; } ps--; } } break; case 'y': case 'Y': addStr((char *)buf.c_str()); buf = ""; if (pStack.size() > 1) { cnt = pStack.top(); pStack.pop(); ccp = pStack.top(); pStack.pop(); if (cnt <= ccp) { ps++; cnt = 1; while (cnt) { if (fName[ps] == '.') { switch (fName[++ps]) { case 'w': case 'W': case 'x': case 'X': case 'y': case 'Y': case 'z': case 'Z': cnt++; break; case 'a': case 'A': cnt--; break; } } ps++; } ps--; } } break; case 'z': case 'Z': addStr((char *)buf.c_str()); buf = ""; if (pStack.size() > 1) { cnt = pStack.top(); pStack.pop(); ccp = pStack.top(); pStack.pop(); if (cnt == ccp) { ps++; cnt = 1; while (cnt) { if (fName[ps] == '.') { switch (fName[++ps]) { case 'w': case 'W': case 'x': case 'X': case 'y': case 'Y': case 'z': case 'Z': cnt++; break; case 'a': case 'A': cnt--; break; } } ps++; } ps--; } } break; case 'a': case 'A': addStr((char *)buf.c_str()); buf = ""; ps -= 2; cnt = -1; while (cnt) { if (fName[ps] == '.') { switch (fName[ps + 1]) { case 'w': case 'W': case 'x': case 'X': case 'y': case 'Y': case 'z': case 'Z': cnt++; break; case 'a': case 'A': cnt--; break; } } ps--; } break; case 't': case 'T': addStr((char *)buf.c_str()); buf = ""; toTemp(); break; case 'm': case 'M': addStr((char *)buf.c_str()); buf = ""; fromTemp(); break; case 'd': case 'D': addStr((char *)buf.c_str()); buf = ""; return; case '+': addStr((char *)buf.c_str()); buf = ""; addition(); break; case '-': addStr((char *)buf.c_str()); buf = ""; subtraction(); break; case '!': addStr((char *)buf.c_str()); buf = ""; multiplication(); break; case '$': addStr((char *)buf.c_str()); buf = ""; getQuotient(); break; case '%': addStr((char *)buf.c_str()); buf = ""; getSurplus(); break; default: buf += fName[--ps]; } } else buf += fName[ps]; ps++; } if (strlen((char *)buf.c_str()) > 0) addStr((char *)buf.c_str()); } inline stack<int> Pxem::getStack() const { return pStack; } inline void Pxem::print() { while (out()) ; } inline bool Pxem::out() { if (pStack.empty()) return false; int aaa = pStack.top(); putchar(aaa); pStack.pop(); return true; } inline void Pxem::numOut() { if (pStack.empty()) return; int aaa = pStack.top(); printf("%d", aaa); pStack.pop(); } inline void Pxem::input() { int aaa = getchar(); pStack.push(aaa); } inline void Pxem::numInput() { int aaa; scanf("%d", &aaa); pStack.push(aaa); } inline void Pxem::copy() { int i = pStack.top(); pStack.push(i); } inline void Pxem::throwAway() { if (!pStack.empty()) pStack.pop(); } void Pxem::inverse() { queue<int> fuga; while (!pStack.empty()) { fuga.push((int)pStack.top()); pStack.pop(); } while (!fuga.empty()) { pStack.push(fuga.front()); fuga.pop(); } } inline void Pxem::fileRead() { addStr(fCont); } void Pxem::emu() { Pxem newPxem(fCont, fCont, pStack); newPxem.run(); stack<int> aaa = newPxem.getStack(); stack<int> bbb; while (!aaa.empty()) { bbb.push((int)aaa.top()); aaa.pop(); } while (!bbb.empty()) { pStack.push(bbb.top()); bbb.pop(); } } inline void Pxem::getRand() { int aaa = rand() % pStack.top(); pStack.pop(); pStack.push(aaa); } inline void Pxem::toTemp() { if (pStack.empty()) return; temp = pStack.top(); pStack.pop(); used = true; } inline void Pxem::fromTemp() { if (used) pStack.push(temp); } void Pxem::addition() { if (pStack.size() < 2) return; int aa = pStack.top(); pStack.pop(); int bb = pStack.top(); pStack.pop(); pStack.push(aa + bb); } void Pxem::subtraction() { if (pStack.size() < 2) return; int aa = pStack.top(); pStack.pop(); int bb = pStack.top(); pStack.pop(); pStack.push(abs(aa - bb)); } void Pxem::multiplication() { if (pStack.size() < 2) return; int aa = pStack.top(); pStack.pop(); int bb = pStack.top(); pStack.pop(); pStack.push(aa * bb); } void Pxem::getQuotient() { if (pStack.size() < 2) return; int aa = pStack.top(); pStack.pop(); int bb = pStack.top(); pStack.pop(); pStack.push(aa > bb ? aa / bb : bb / aa); } void Pxem::getSurplus() { if (pStack.size() < 2) return; int aa = pStack.top(); pStack.pop(); int bb = pStack.top(); pStack.pop(); pStack.push(aa > bb ? aa % bb : bb % aa); } void Pxem::addStr(char *str) { int leng = strlen(str); while (leng--) pStack.push((int)str[leng]); } int main() { Pxem(PROG, "").run(); }
[["-", 0, 43, 49, 50, 51, 61, 0, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 61, 0, 5, 0, 6]]
1
2,902
2
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <set> #include <vector> using namespace std; typedef vector<int> VI; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) int main() { REP(i, 0, 10) { REP(j, 0, 10) { cout << i << "x" << j << "=" << i * j << endl; } } return 0; }
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <set> #include <vector> using namespace std; typedef vector<int> VI; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) int main() { REP(i, 1, 10) { REP(j, 1, 10) { cout << i << "x" << j << "=" << i * j << endl; } } return 0; }
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 13]]
1
86
4
#include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { for (int i = 1; i < 10; i++) for (int j = 1; j < 10; j++) cout << i << "+" << j << "=" << j * i << endl; return 0; }
#include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { for (int i = 1; i < 10; i++) for (int j = 1; j < 10; j++) cout << i << "x" << j << "=" << j * i << endl; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
67
2
#include <iostream> using namespace std; int main() { for (int y = 0; y <= 9; y++) for (int x = 0; x <= 9; x++) cout << y << 'x' << x << '=' << y * x << endl; return 0; }
#include <iostream> using namespace std; int main() { for (int y = 1; y <= 9; y++) for (int x = 1; x <= 9; x++) cout << y << 'x' << x << '=' << y * x << endl; return 0; }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 7, 8, 7, 10, 43, 49, 50, 51, 13], ["+", 0, 7, 8, 7, 10, 43, 49, 50, 51, 13]]
1
63
4
#include <iostream> using namespace std; int main() { int i, j; i = 0; j = 0; for (i = 0; i < 9; i++) { for (j = 0; j < 10; j++) { cout << (i + 1) << "x" << (j + 1) << "=" << (i + 1) * (j + 1) << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int i, j; i = 0; j = 0; for (i = 0; i < 9; i++) { for (j = 0; j < 9; j++) { cout << (i + 1) << "x" << (j + 1) << "=" << (i + 1) * (j + 1) << endl; } } return 0; }
[["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]]
1
94
2
#include <iostream> using namespace std; int main(void) { for (int i = 1; i <= 9; ++i) { for (int j = 1; j <= 9; ++j) { cout << i << "×" << j << "=" << i * j << endl; } } return 0; }
#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; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
68
2
#include <iostream> int main() { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { std::cout << i << "*" << j << "=" << i * j << std::endl; } } return 0; }
#include <iostream> int main() { 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; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
67
2
#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; } } return 0; }
#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 << "\n"; } } return 0; }
[["+", 0, 7, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44]]
1
65
4
#include <iostream> using namespace std; int main() { for (int i = 1; i < 10; i++) for (int j = 1; j < 10; j++) cout << i << '*' << j << '=' << i * j << endl; return 0; }
#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; }
[["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125]]
1
63
2
#include <iostream> int main() { for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { std::cout << i << "x" << j << "=" << i * j << std::endl; } } return 0; }
#include <iostream> using namespace std; int main() { 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; }
[["+", 36, 36, 36, 36, 0, 30, 0, 340, 0, 233], ["+", 36, 36, 36, 36, 0, 30, 0, 340, 0, 256], ["+", 36, 36, 36, 36, 0, 30, 0, 340, 0, 22], ["+", 36, 36, 36, 36, 0, 30, 0, 340, 0, 35], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
1
67
8
#include <stdio.h> int main(void) { for (int i = 1, j = 1; i <= 9; i += (j + 1) / 9, j = j % 9 + 1) printf("%dx%d=%d\n", i, j, i * j); return 0; }
#include <stdio.h> int main(void) { for (int i = 1, j = 1; i <= 9; i += j / 9, j = j % 9 + 1) printf("%dx%d=%d\n", i, j, i * j); return 0; }
[["-", 26, 34, 31, 11, 12, 16, 31, 23, 0, 24], ["-", 31, 11, 12, 16, 31, 23, 0, 16, 17, 72], ["-", 31, 11, 12, 16, 31, 23, 0, 16, 12, 13], ["-", 26, 34, 31, 11, 12, 16, 31, 23, 0, 25]]
1
61
4
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; #define EPS 1e-9 #define MAX 505 #define pb push_back #define mp make_pair #define ins insert #define fi first #define se second #define pi acos(-1.0) #define mod 100000007 #define inf 2147483647 #define ll long long int #define sss stringstream #define oss ostringstream #define iss istringstream #define llu long long unsigned #define _sq(a) (a) * (a) #define sz(a) ((int)a.size()) #define gcd(a, b) __gcd(a, b) #define lcm(a, b) ((a) * ((b) / gcd(a, b))) #define _max3(a, b, c) max(a, max(b, c)) #define _min3(a, b, c) min(a, min(b, c)) #define FOR(i, n) for (i = 0; i < (int)n; i++) #define FOR1(i, n) for (i = 1; i <= (int)n; i++) #define mem(a) memset(a, 0, sizeof(a)) #define _set(a) memset(a, -1, sizeof(a)) #define FORI(i, a, b) for (i = a; i >= (int)b; i--) #define FORab(i, a, b) for (i = a; i <= (int)b; i++) #define popcount(n) __builtin_popcount(n) #define popcountl(n) __builtin_popcountll(n) #define sort_rev(a) sort(a.rbegin(), a.rend()) #define sort_all(a) sort(a.begin(), a.end()) #define dis_twopoints(x1, y1, x2, y2) sqrt(_sq(x1 - x2) + _sq(y1 - y2)) #define foreach(i, n) \ for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); i++) // If Long Long (mask & (1LL << k)) #define check(mask, k) (mask & (1 << k)) #define set1(mask, k) (mask | (1 << k)) #define set0(mask, k) (mask & (~(1 << k))) #define SD(a) scanf("%d", &a) #define SLF(a) scanf("%lf", &a) #define SC(a) scanf("%c", &a) #define SS(a) scanf("%s", a) #define SLLD(a) scanf("%lld", &a) #define Si64(a) scanf("%I64d", &a) #define READ(f) freopen(f, "r", stdin) #define WRITE(f) freopen(f, "w", stdout) int main() { int i, j; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { cout << i << "*" << j << "=" << i * j << endl; } } return 0; }
#include <algorithm> #include <bits/stdc++.h> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; #define EPS 1e-9 #define MAX 505 #define pb push_back #define mp make_pair #define ins insert #define fi first #define se second #define pi acos(-1.0) #define mod 100000007 #define inf 2147483647 #define ll long long int #define sss stringstream #define oss ostringstream #define iss istringstream #define llu long long unsigned #define _sq(a) (a) * (a) #define sz(a) ((int)a.size()) #define gcd(a, b) __gcd(a, b) #define lcm(a, b) ((a) * ((b) / gcd(a, b))) #define _max3(a, b, c) max(a, max(b, c)) #define _min3(a, b, c) min(a, min(b, c)) #define FOR(i, n) for (i = 0; i < (int)n; i++) #define FOR1(i, n) for (i = 1; i <= (int)n; i++) #define mem(a) memset(a, 0, sizeof(a)) #define _set(a) memset(a, -1, sizeof(a)) #define FORI(i, a, b) for (i = a; i >= (int)b; i--) #define FORab(i, a, b) for (i = a; i <= (int)b; i++) #define popcount(n) __builtin_popcount(n) #define popcountl(n) __builtin_popcountll(n) #define sort_rev(a) sort(a.rbegin(), a.rend()) #define sort_all(a) sort(a.begin(), a.end()) #define dis_twopoints(x1, y1, x2, y2) sqrt(_sq(x1 - x2) + _sq(y1 - y2)) #define foreach(i, n) \ for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); i++) // If Long Long (mask & (1LL << k)) #define check(mask, k) (mask & (1 << k)) #define set1(mask, k) (mask | (1 << k)) #define set0(mask, k) (mask & (~(1 << k))) #define SD(a) scanf("%d", &a) #define SLF(a) scanf("%lf", &a) #define SC(a) scanf("%c", &a) #define SS(a) scanf("%s", a) #define SLLD(a) scanf("%lld", &a) #define Si64(a) scanf("%I64d", &a) #define READ(f) freopen(f, "r", stdin) #define WRITE(f) freopen(f, "w", stdout) 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; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
365
2
#include <iostream> int main() { for (int i = 1; i < 10; ++i) { for (int j = 1; j < 10; ++j) { std::cout << i << "*" << j << "=" << i * j << std::endl; } } return 0; }
#include <iostream> int main() { 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; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
67
2
#include <iostream> using namespace std; int main() { for (int n = 1; n < 10; n++) { for (int k = 1; k < 10; k++) { int nk = n * k; cout << n << "×" << k << "=" << nk << endl; } } return 0; }
#include <iostream> using namespace std; int main() { for (int n = 1; n < 10; n++) { for (int k = 1; k < 10; k++) { int nk = n * k; cout << n << "x" << k << "=" << nk << endl; } } return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
72
2
#include <iostream> using namespace std; int main() { for (int i = 1; i < 10; i++) { for (int j = 0; j < 10; j++) { cout << i << 'x' << j << '=' << i * j << endl; } } }
#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; } } }
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
1
64
2
#include <iostream> int main() { int i, j, ans; for (i = 0; i < 10; i++) { for (j = 0; j < 10; j++) { std::cout << i; std::cout << "x"; std::cout << j; std::cout << "="; ans = i * j; std::cout << ans << std::endl; } } }
#include <iostream> int main() { int i, j, ans; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { std::cout << i; std::cout << "x"; std::cout << j; std::cout << "="; ans = i * j; std::cout << ans << std::endl; } } }
[["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13]]
1
89
4
class main { public static void main(String[] args) { for (int a = 0; a < 9;) { a = a + 1; for (int b = 1; b <= 9;) { System.out.println(a + "×" + b + "=" + a * b); b = b + 1; } } } }
class Main { public static void main(String[] args) { for (int a = 0; a < 9;) { a = a + 1; for (int b = 1; b <= 9;) { System.out.println(a + "x" + b + "=" + a * b); b = b + 1; } } } }
[["-", 36, 36, 36, 36, 0, 493, 0, 235, 141, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 235, 141, 22], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491]]
3
79
4
class Main { public static void main(String[] a) { int i, j; for (j = 1; j < 9; j++) for (i = 1; i < 9; i++) System.out.println(j + "x" + i + "=" + j * i); } }
class Main { public static void main(String[] a) { int i, j; for (j = 1; j < 10; j++) for (i = 1; i < 10; i++) System.out.println(j + "x" + i + "=" + j * i); } }
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["-", 8, 196, 0, 7, 8, 7, 15, 16, 12, 499], ["+", 8, 196, 0, 7, 8, 7, 15, 16, 12, 499]]
3
70
4
class Main { public static void main(String[] a) { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { int answer = i * j; System.out.println(i + "x" + j + "= " + answer); } } } }
class Main { public static void main(String[] a) { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { int answer = i * j; System.out.println(i + "x" + j + "=" + answer); } } } }
[["-", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
76
2
public class Main { public static void main(String[] args) throws Exception { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { System.out.print(i + "×"); System.out.print(j + "="); System.out.println(i * j); } } } }
public class Main { public static void main(String[] args) throws Exception { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { System.out.print(i + "x"); System.out.print(j + "="); System.out.println(i * j); } } } }
[["-", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 16, 12, 5, 0, 491]]
3
88
2
public class Main { public static void main(String[] args) { int i, j; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { System.out.println(i + "×" + j + "=" + i * j); } } } }
public class Main { public static void main(String[] args) { int i, j; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { System.out.println(i + "x" + j + "=" + i * j); } } } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 491]]
3
75
2
public class Main { public static void main(String args[]) throws Exception { for (int i = 1; i < 10; i++) { int sum = 0; for (int j = 1; j < 10; j++) { sum = sum + j; System.out.println(i + "x" + j + "=" + sum); } } } }
public class Main { public static void main(String args[]) throws Exception { for (int i = 1; i < 10; i++) { int sum = 0; for (int j = 1; j < 10; j++) { sum = sum + i; System.out.println(i + "x" + j + "=" + sum); } } } }
[["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 12, 22]]
3
83
2
#include <stdio.h> int main() { int n, i; int m; for (n = 1; n <= 9; n++) { m = 0; for (i = 1; i <= 10; i++) { m = m + n; printf("%dx%d=%d\n", n, i, m); } } return 0; }
#include <stdio.h> int main() { int n, i; int m; for (n = 1; n <= 9; n++) { m = 0; for (i = 1; i <= 9; i++) { m = m + n; printf("%dx%d=%d\n", n, i, m); } } return 0; }
[["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]]
0
73
2
#include <stdio.h> int main(void) { int i; for (i = 1; i < 10; i++) { int k; for (k = i; k < 10; k++) { printf("%dx%d=%d\n", i, k, i * k); } } // getchar(); return 0; }
#include <stdio.h> int main(void) { int i; for (i = 1; i < 10; i++) { int k; for (k = 1; k < 10; k++) { printf("%dx%d=%d\n", i, k, i * k); } } // getchar(); return 0; }
[["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 22], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13]]
0
65
2
#include <stdio.h> int main() { long long n, i; for (n = 1; n <= 9; n++) { for (i = 1; i <= 9; i++) { printf("%lldx%lld\n", n, i, n * i); } } return 0; }
#include <stdio.h> int main() { long long n, i; for (n = 1; n <= 9; n++) { for (i = 1; i <= 9; i++) { printf("%lldx%lld=%lld\n", n, i, n * i); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
63
9
#include <stdio.h> int main() { int n, i; for (n = 1; n <= 9; n = n + 1) { for (i = 1; i <= 9; i = i + 1) { printf("%d X %d = %d\n", n, i, n * i); } } return 0; }
#include <stdio.h> int main() { int n, i; for (n = 1; n <= 9; n = n + 1) { for (i = 1; i <= 9; i = i + 1) { printf("%dx%d=%d\n", n, i, n * i); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
68
2
#include <stdio.h> int main() { int a, b; for (a = 1; a < 10; a++) { for (b = 1; b < 10; b++) { printf("%d", a); printf("*"); printf("%d", b); printf("="); printf("%d\n", a * b); } } return 0; }
#include <stdio.h> int main() { int a, b; for (a = 1; a < 10; a++) { for (b = 1; b < 10; b++) { printf("%d", a); printf("x"); printf("%d", b); printf("="); printf("%d\n", a * b); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
90
2
#include <stdio.h> int main() { int a = 1, b = 1, i, j; for (i = 0; i < 9; i++) { b = 1; for (j = 0; j < 9; j++) { printf("%d*%d=%d\n", a, b, a * b); b++; } a++; } return 0; }
#include <stdio.h> int main() { int a = 1, b = 1, i, j; for (i = 0; i < 9; i++) { b = 1; for (j = 0; j < 9; j++) { printf("%dx%d=%d\n", a, b, a * b); b++; } a++; } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
80
2
#include <stdio.h> int main() { int i, j; for (i = 1; i <= 9; i++) for (j = 1; j <= 9; j++) printf("%d*%d=%d\n", i, j, i * j); return 0; }
#include <stdio.h> int main() { int i, j; for (i = 1; i < 10; i++) for (j = 1; j < 10; j++) printf("%dx%d=%d\n", i, j, i * j); return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 8, 9, 0, 7, 8, 7, 15, 16, 17, 19], ["-", 8, 9, 0, 7, 8, 7, 15, 16, 12, 13], ["+", 8, 9, 0, 7, 8, 7, 15, 16, 17, 18], ["+", 8, 9, 0, 7, 8, 7, 15, 16, 12, 13], ["-", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
58
9
#include <stdio.h> 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); } printf("\n"); } return 0; }
#include <stdio.h> 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; }
[["-", 0, 7, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 62], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
0
66
7
#include <stdio.h> int main(void) { int i; int j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { printf("%d x %d = %d\n", i, j, i * j); } } return 0; }
#include <stdio.h> int main(void) { int i; int j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
64
2
#include <stdio.h> int main() { int i, j; for (i = 1; i <= 9; i++) for (j = 1; j <= 9; j++) printf("%dx%d=%2d\n", i, j, i * j); return 0; }
#include <stdio.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); return 0; }
[["-", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
58
2
#include <stdio.h> int main(void) { int i, j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { printf("%d*%d=%d\n", i, j, i * j); } } return 0; }
#include <stdio.h> int main(void) { int i, j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
63
2
main(i, j) { for (i = 1; i <= 9; i++) for (j = 1; j <= 9; printf("%dx%d=%d\n", i, j, i * j++)) ; return 0; }
main(i, j) { for (i = 1; i <= 9; i++) for (j = 1; j <= 9; printf("%dx%d=%d\n", i, j++, i * j)) ; return 0; }
[["+", 8, 7, 26, 2, 3, 4, 0, 27, 17, 29], ["-", 26, 2, 3, 4, 0, 16, 12, 27, 17, 29]]
0
52
2
#include <stdio.h> main() { int tmp = 1, i; for (i = 1; i < 10; i++) { printf("%dx%d=%d\n", tmp, i, tmp * i); if (i == 9 && tmp < 9) i = 1, tmp++; } }
#include <stdio.h> int main() { int tmp = 1, i; for (i = 1; i < 10; i++) { printf("%dx%d=%d\n", tmp, i, tmp * i); if (i == 9 && tmp < 9) i = 0, tmp++; } return 0; }
[["+", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35], ["-", 0, 57, 64, 1, 0, 34, 31, 11, 12, 13], ["+", 0, 57, 64, 1, 0, 34, 31, 11, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 35]]
0
63
7
#include <stdio.h> int main() { int i, j; for (i = 0; i < 9; i++) for (j = 0; j < 9; j++) printf("%dx%d=%d", i + 1, j + 1, (i + 1) * (j + 1)); return 0; }
#include <stdio.h> int main() { int i, j; for (i = 0; i < 9; i++) for (j = 0; j < 9; j++) printf("%dx%d=%d\n", i + 1, j + 1, (i + 1) * (j + 1)); return 0; }
[["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
69
1
i, j; main() { for (; i++ <= 9;) for (j = 1; j <= 9;) printf("%dx%d=%d\n", i, j++, i * j); return 0; }
i; main(j) { for (; i++ < 9;) for (j = 1; j <= 9;) printf("%dx%d=%d\n", i, j++, i * j); return 0; }
[["-", 36, 36, 0, 30, 0, 43, 0, 42, 0, 21], ["-", 36, 36, 36, 36, 0, 30, 0, 43, 49, 22], ["+", 36, 36, 0, 30, 0, 14, 49, 65, 0, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35], ["-", 0, 30, 0, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]]
0
50
2
i, j; main() { for (; i++ <= 9;) for (j = 1; j <= 9;) printf("%dx%d=%d\n", i, j++, i * j); return 0; }
i, j; main() { for (; i++ < 9;) for (j = 1; j <= 9;) printf("%dx%d=%d\n", i, j++, i * j); return 0; }
[["-", 0, 30, 0, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 30, 0, 9, 0, 7, 15, 16, 17, 18]]
0
50
2
#include "stdio.h" int main() { int i, j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) printf("%dx%dx=%d\n", i, j, i * j); } return 0; }
#include "stdio.h" int main() { int i, j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) printf("%dx%d=%d\n", i, j, i * j); } return 0; }
[["-", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
62
2
#include <stdio.h> int main() { int n, j; for (n = 1; n >= 9; n++) { for (j = 1; j >= 9; j++) { printf("%dx%d\n", n, j, n * j); } } return 0; }
#include <stdio.h> int main() { int n, j; for (n = 1; n <= 9; n++) { for (j = 1; j <= 9; j++) { printf("%dx%d=%d\n", n, j, n * j); } } return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 20], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 20], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
62
6
#include <stdio.h> int main() { int i = 0, j = 0; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { printf("%dx%d=%d", i, j, i * j); } } return 0; }
#include <stdio.h> int main() { int i = 0, j = 0; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
65
1
#include <stdio.h> #define FOR(variable, a, b) for (variable = (a); variable < (b); variable++) int main() { // import phase int i, j; // output phase FOR(i, 1, 9) { FOR(j, 1, 9) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
#include <stdio.h> #define FOR(variable, a, b) for (variable = (a); variable < (b); variable++) int main() { // import phase int i, j; // output phase FOR(i, 1, 10) { FOR(j, 1, 10) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 13]]
0
66
4
#include <stdio.h> int main(void) { int i, j; for (i = 1; i <= 9; i++) for (j = 1; j <= 9; j++) printf("%d*%d=%d\n", i, j, i * j); return 0; }
#include <stdio.h> int main(void) { int i, j; for (i = 1; i <= 9; i++) for (j = 1; j <= 9; j++) printf("%dx%d=%d\n", i, j, i * j); return 0; }
[["-", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
59
2
#include <stdio.h> int main() { int c = 0, i = 1, i2 = 1; for (i2 = 1; i2 <= 9; i2++) { for (i = 1; i <= 9; i++) { c = i2 * i; printf("%d", i2); printf("*%d", i); printf("=%d\n", c); } } return 0; }
#include <stdio.h> int main() { int c = 0, i = 1, i2 = 1; for (i2 = 1; i2 <= 9; i2++) { for (i = 1; i <= 9; i++) { c = i2 * i; printf("%d", i2); printf("x%d", i); printf("=%d\n", c); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
88
2
#include <stdio.h> int main() { int x = 10, y = 10, kotae, i = 1, j = 1; for (i = 1; i < x; i++) { for (j = 1; j < y; j++) { kotae = i * j; printf("%dx%d=%d", i, j, kotae); } } return 0; }
#include <stdio.h> int main() { int x = 10, y = 10, kotae, i = 1, j = 1; for (i = 1; i < x; i++) { for (j = 1; j < y; j++) { kotae = i * j; printf("%dx%d=%d\n", i, j, kotae); } } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
79
1
#include <stdio.h> int main(void) { int i, j; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { printf("%dx%d=%d", i, j, i * j); } } return 0; }
#include <stdio.h> int main(void) { int i, j; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
62
1
#include <stdio.h> #define M 9 #define N 9 int main() { int i, j; for (i = 0; i < M; i++) { for (j = 0; j < N; j++) { printf("%d×%d=%d\n", i + 1, j + 1, (i + 1) * (j + 1)); } } return 0; }
#include <stdio.h> #define M 9 #define N 9 int main() { int i, j; for (i = 0; i < M; i++) { for (j = 0; j < N; j++) { printf("%dx%d=%d\n", i + 1, j + 1, (i + 1) * (j + 1)); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
80
2
#include <stdio.h> void main() { int i, j; for (i = 1; i < 10; i++) { for (j = 9; j < 10; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return (0); }
#include <stdio.h> int main(void) { int i, j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return (0); }
[["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13]]
0
64
5
1.upto(9) { |a| 1.upto(9) { |b| p "#{a}x#{b}=#{a * b}" } }
1.upto(9) { |a| 1.upto(9) { |b| puts "#{a}x#{b}=#{a * b}" } }
[["-", 0, 652, 196, 196, 8, 734, 0, 652, 735, 22], ["+", 0, 652, 196, 196, 8, 734, 0, 652, 735, 22]]
4
38
2
n1 = 1 n2 = 1 (1..9).each do |n1| (1..9).each do |n2| temp = n1 * n2 print n1, '+', n2, '=', temp, "\n" end end
n1 = 1 n2 = 1 (1..9).each do |n1| (1..9).each do |n2| temp = n1 * n2 print n1, 'x', n2, '=', temp, "\n" end end
[["-", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6]]
4
53
2
i = 1 j = 1 while i < 10 while j < 10 answer = i * j puts "#{i}×#{j}=#{answer}" j += 1 end i += 1 j = 1 end
i = 1 j = 1 while i < 10 while j < 10 answer = i * j puts "#{i}x#{j}=#{answer}" j += 1 end i += 1 j = 1 end
[["-", 8, 170, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 170, 0, 652, 3, 4, 0, 557, 0, 6]]
4
44
2
(1..9).each do |i| (1..9).each do |j| puts format('%d*%d=%d', i, j, i * j) end end
(1..9).each do |i| (1..9).each do |j| puts format('%dx%d=%d', i, j, i * j) end end
[["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6]]
4
39
2
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9].each do |x| [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].each do |y| puts "#{x}x#{y}=#{x * y}" end end
[1, 2, 3, 4, 5, 6, 7, 8, 9].each do |x| [1, 2, 3, 4, 5, 6, 7, 8, 9].each do |y| puts "#{x}x#{y}=#{x * y}" end end
[["-", 36, 36, 0, 493, 0, 652, 486, 516, 0, 612], ["-", 36, 36, 0, 493, 0, 652, 486, 516, 0, 21], ["-", 196, 737, 8, 736, 0, 652, 486, 516, 0, 612], ["-", 196, 737, 8, 736, 0, 652, 486, 516, 0, 21]]
4
72
4
(1..9).each do |i| (1..9).each do |j| print i, '??', j, '=', i * j, "\n" end end
(1..9).each do |i| (1..9).each do |j| print i, 'x', j, '=', i * j, "\n" end end
[["-", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6]]
4
44
2
9.times do |i| 9.times do |j| puts "#{i + 1}x#{j + 1}=#{(i + 1) + (j + 1)}" end end
9.times do |i| 9.times do |j| puts "#{i + 1}x#{j + 1}=#{(i + 1) * (j + 1)}" end end
[["-", 3, 4, 0, 557, 0, 284, 0, 738, 17, 72], ["+", 3, 4, 0, 557, 0, 284, 0, 738, 17, 48]]
4
44
2
(1..9).each do |i| (1..9).each do |j| puts("#{i}x#{j}=#{i + j}") end end
(1..9).each do |i| (1..9).each do |j| puts("#{i}x#{j}=#{i * j}") end end
[["-", 3, 4, 0, 557, 0, 284, 0, 738, 17, 72], ["+", 3, 4, 0, 557, 0, 284, 0, 738, 17, 48]]
4
42
2
loop do (1..9).each do |a| (1..9).each do |b| print(a, '*', b, '=', a * b, "\n") end end break end
loop do (1..9).each do |a| (1..9).each do |b| print(a, 'x', b, '=', a * b, "\n") end end break end
[["-", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6]]
4
50
2
i = 1 s = 1 while i < 10 while s < 10 t = i * s puts "#{i}*#{s}=#{t}" s += 1 end s = 1 i += 1 end
i = 1 s = 1 while i < 10 while s < 10 t = i * s puts "#{i}x#{s}=#{t}" s += 1 end s = 1 i += 1 end
[["-", 8, 170, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 170, 0, 652, 3, 4, 0, 557, 0, 6]]
4
44
2
i = 1 k = 1 9.times do 9.times do print i, '*', k, '=', i * k, "\n" k += 1 k = 1 if k >= 10 end i += 1 end
i = 1 k = 1 9.times do 9.times do print i, 'x', k, '=', i * k, "\n" k += 1 k = 1 if k >= 10 end i += 1 end
[["-", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6]]
4
49
2
(1..9).to_a.repeated_combination(2) { |x, y| puts "#{x}x#{y}=#{x * y}" }
(1..9).to_a.repeated_permutation(2) { |x, y| puts "#{x}x#{y}=#{x * y}" }
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
35
2
(1..10).each do |i| (1..10).each do |j| printf("%dx%d=%d\n", i, j, i * j) end end
(1..9).each do |i| (1..9).each do |j| printf("%dx%d=%d\n", i, j, i * j) end end
[["-", 0, 493, 0, 652, 486, 739, 0, 475, 444, 612], ["+", 0, 493, 0, 652, 486, 739, 0, 475, 444, 612], ["-", 8, 736, 0, 652, 486, 739, 0, 475, 444, 612], ["+", 8, 736, 0, 652, 486, 739, 0, 475, 444, 612]]
4
39
4
(1..9).each do |i| (1..9).each do |k| printf('%dx%d=%d', i, k, i * k) end end
(1..9).each do |i| (1..9).each do |k| printf("%dx%d=%d\n", i, k, i * k) end end
[["-", 8, 736, 0, 652, 3, 4, 0, 557, 0, 62], ["+", 8, 736, 0, 652, 3, 4, 0, 557, 0, 62], ["+", 8, 736, 0, 652, 3, 4, 0, 557, 0, 44]]
4
38
5
(1...10).each do |i| (1...10).each do |j| print(i, '???', j, '=', i * j, "\n") end end
(1...10).each do |i| (1...10).each do |j| print(i, 'x', j, '=', i * j, "\n") end end
[["-", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6]]
4
46
2
(1..9).each do |x| (1..9).each do |y| print(x, '*', y, '=', x * y, "\n") end end
(1..9).each do |x| (1..9).each do |y| print(x, 'x', y, '=', x * y, "\n") end end
[["-", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 8, 736, 0, 652, 3, 4, 0, 557, 0, 6]]
4
46
2
#include <stdio.h> int main(void) { int i; int j; for (i = 0; i < 9; i++) { for (j = 0; j < 0; j++) { printf("%dx%d=%d\n", (i + 1), (j + 1), (i + 1) * (j + 1)); } } return (0); }
#include <stdio.h> int main(void) { int i; int j; for (i = 0; i < 9; i++) { for (j = 0; j < 9; j++) { printf("%dx%d=%d\n", (i + 1), (j + 1), (i + 1) * (j + 1)); } } return (0); }
[["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]]
0
82
2
#include <stdio.h> int main() { int num = 1; int i; while (num <= 9) { for (i = 1; i <= 9; i++) { printf("%d x %d = %d\n", num, i, num * i); } num++; } return 0; }
#include <stdio.h> int main() { int num = 1; int i; while (num <= 9) { for (i = 1; i <= 9; i++) { printf("%dx%d=%d\n", num, i, num * i); } num++; } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
61
2
#include <stdio.h> main() { int i, j, n; n = 9; for (i = 1; i <= n; i++) { for (j = 1; j <= 9; j++) { printf("%d×%d=%d\n", i, j, i * j); } } return 0; }
#include <stdio.h> main() { int i, j, n; n = 9; for (i = 1; i <= n; i++) { for (j = 1; j <= 9; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
68
2
#include <stdio.h> int main() { int a; int b; for (a = 1; a <= 9; a++) { for (b = 1; b <= 9; b++) { printf("%dx%d=%d", a, b, a * b); } } return 0; }
#include <stdio.h> int main() { int a; int b; for (a = 1; a <= 9; a++) { for (b = 1; b <= 9; b++) { printf("%dx%d=%d\n", a, b, a * b); } } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
62
1
main(i, k) { for (i = 1; i <= 9; i++) for (k = 1; k <= 9; k++) printf("%dx%d=%d", i, k, i * k); return 0; }
main(i, k) { for (i = 1; i <= 9; i++) for (k = 1; k <= 9; k++) printf("%dx%d=%d\n", i, k, i * k); return 0; }
[["+", 8, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
52
1
#include <stdio.h> int main() { int i, i2; for (i = 1; i != 10; i++) { for (i2 = 1; i2 != 10; i2++) { printf("%d×%d=%d\n", i, i2, i * i2); } } return 0; }
#include <stdio.h> int main() { int i, i2; for (i = 1; i != 10; i++) { for (i2 = 1; i2 != 10; i2++) { printf("%dx%d=%d\n", i, i2, i * i2); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
62
2
#include <stdio.h> int main() { int i, j, k = 0; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { k = i * j; printf("%dx%d=%d", i, j, k); } } return 0; }
#include <stdio.h> int main() { int i, j, k = 0; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { k = i * j; printf("%dx%d=%d\n", i, j, k); } } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
69
1
#include <stdio.h> int main() { int i = 0; int j = 0; for (i = 1; i < 9; i++) { for (j = 1; j < 9; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
#include <stdio.h> int main() { int i = 0; int j = 0; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]]
0
67
4
#include <stdio.h> int i, j; int main(void) { for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { printf("%d×%d=%d\n", i, j, i * j); } } return 0; }
#include <stdio.h> int i, j; int main(void) { for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
63
2
#include <stdio.h> void a(int); int main(void) { int b = 1; a(b); return 0; } void a(int c) { int i; if (c < 10) { for (i = 1; i < 10; i++) { printf("%d×%d=%d\n", c, i, c * i); } } else { return; } a(c + 1); return; }
#include <stdio.h> void a(int); int main(void) { int b = 1; a(b); return 0; } void a(int c) { int i; if (c < 10) { for (i = 1; i < 10; i++) { printf("%dx%d=%d\n", c, i, c * i); } } else { return; } a(c + 1); return; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
92
2
#include <stdio.h> #define ONE 1 #define NINE 9 int main() { int i = 0, j = 0; for (i = ONE; i <= NINE; i++) { for (j = ONE; j < NINE; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
#include <stdio.h> #define ONE 1 #define NINE 9 int main() { int i = 0, j = 0; for (i = ONE; i <= NINE; i++) { for (j = ONE; j <= NINE; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
[["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19]]
0
72
2
#include <stdio.h> int main(void) { int i; int j; int ans; for (i = 0; i <= 9; i++) { for (j = 0; j <= 9; j++) { ans = i * j; printf("%dx%d=%d\n", i, j, ans); } } return 0; }
#include <stdio.h> int main(void) { int i; int j; int ans; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { ans = i * j; printf("%dx%d=%d\n", i, j, ans); } } return 0; }
[["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13]]
0
71
4
#include <stdio.h> int main(void) { int i, i2; for (i = 1; i < 10; i++) { for (i2 = 1; i2 < 10; i2++) { printf("%d*%d=%d\n", i, i2, i * i2); } } return (0); }
#include <stdio.h> int main(void) { int i, i2; for (i = 1; i < 10; i++) { for (i2 = 1; i2 < 10; i2++) { printf("%dx%d=%d\n", i, i2, i * i2); } } return (0); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
65
2
#include <stdio.h> int main(void) { int n = 1; int m = 1; for (n = 1; n < 10; n++) { for (m = 1; m < 10; m++) { printf("%d*%d=%d\n", n, m, n * m); } } return 0; }
#include <stdio.h> int main(void) { int n = 1; int m = 1; for (n = 1; n < 10; n++) { for (m = 1; m < 10; m++) { printf("%dx%d=%d\n", n, m, n * m); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
68
2
#include <stdio.h> main() { int i, j, k; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { printf("%d×%d=%d\n", i, j, i * j); } } return 0; }
#include <stdio.h> main() { int i, j, k; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
64
2
#include <stdio.h> main() { int a, b, c, d; for (a = 1; a < 10; a++) { for (b = 1; b < 10; b++) { printf("%dX%d=%d\n", a, b, a * b); } } return 0; }
#include <stdio.h> main() { int a, b, c, d; for (a = 1; a < 10; a++) { for (b = 1; b < 10; b++) { printf("%dx%d=%d\n", a, b, a * b); } } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
66
2
#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; }
#include <stdio.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); return 0; }
[["-", 0, 14, 8, 9, 0, 7, 26, 27, 28, 22], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 28, 22], ["-", 8, 9, 0, 7, 8, 7, 15, 16, 17, 18], ["+", 8, 9, 0, 7, 8, 7, 15, 16, 17, 19], ["-", 8, 9, 0, 7, 8, 7, 26, 27, 28, 22], ["+", 8, 9, 0, 7, 8, 7, 26, 27, 28, 22]]
1
60
11
#include <iostream> using namespace std; int main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { cout << i << "*" << j << "=" << i * j << endl; } } return 0; }
#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; } }
[["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 45], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 35]]
1
67
10
#include <iostream> using namespace std; int main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { cout << i << "*" << j << "=" << i * j << endl; } } return 0; }
#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; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104]]
1
67
10
#include <iostream> using namespace std; int main() { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9; j++) { cout << i << "*" << j << "=" << i * j << endl; } } return 0; }
// // Created by Tian Wang on 16/4/3. // #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; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104]]
1
67
10
#include "iostream" using namespace std; int main() { int a, b, c; for (a = 1; a < 10; a++) { for (b = 1; b < 10; b++) { c = a * b; cout << a << "*" << b << "=" << c << endl; } } return 0; }
#include "iostream" using namespace std; int main() { int a, b, c; for (a = 1; a < 10; a++) { for (b = 1; b < 10; b++) { c = a * b; cout << a << "x" << b << "=" << c << endl; } } return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
78
2
#include <iostream> using namespace std; int main() { for (int i = 1; i <= 9; i++) for (int j = 1; j <= 9; j++) cout << i << '*' << j << '=' << i * j << endl; return 0; }
#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; }
[["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62]]
1
63
6
#include <iostream> using namespace std; int main() { for (int i = 1; i <= 9; i++) for (int j = 1; j <= 9; j++) cout << i << "*" << j << "=" << i * j << endl; return 0; }
#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 << "\n"; return 0; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 7, 8, 7, 8, 1, 0, 16, 12, 22], ["+", 8, 7, 8, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 7, 8, 1, 0, 16, 12, 5, 0, 44]]
1
63
10
#include <iostream> using namespace std; int main() { int i, j; for (i = 1; i < 10; i++) { for (j = 1; j <= i; j++) { cout << i << "X" << j << "=" << i * j << endl; } } }
#include <iostream> using namespace std; int main() { int i, j; for (i = 1; i < 10; i++) { for (j = 1; j <= 9; j++) { cout << i << "x" << j << "=" << i * j << endl; } } }
[["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
67
13
#include <iostream> using namespace std; int main() { for (int i = 1; i <= 9; i++) for (int j = 1; j <= 9; j++) cout << i << "*" << j << " = " << i * j << endl; return 0; }
#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; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]]
1
63
4
#include <iostream> using namespace std; int main() { int i, j; for (i = 1; i <= 9; i++) { for (j = 1; j <= i; j++) { cout << i << "x" << j << "=" << i * j << endl; } } return 0; }
#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; }
[["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 45], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 8, 9, 0, 7, 8, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 8, 9, 0, 45], ["-", 0, 7, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]]
1
70
11
#include <iostream> using namespace std; int main() { int i, j; for (i = 1; i <= 9; i++) for (j = 1; j <= 9; j++) cout << i << "*" << j << "=" << i * j << endl; return 0; }
#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; }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104]]
1
66
10
#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; }
#include <stdio.h> int main() { int i, j; for (i = 1; i < 10; i++) for (j = 1; j < 10; j++) { printf("%dx%d=%d\n", i, j, i * j); } return 0; }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 8, 9, 0, 7, 8, 7, 15, 16, 12, 13], ["+", 8, 9, 0, 7, 8, 7, 15, 16, 12, 13], ["+", 8, 9, 0, 7, 8, 7, 8, 9, 0, 45], ["+", 8, 9, 0, 7, 8, 7, 8, 9, 0, 46]]
1
60
11
#include <iostream> using namespace std; int main() { for (int i = 1; i < 10; i++) { for (int j = 1; j < 10; j++) { cout << i << "*" << j << "=" << i * j << endl; } } return 0; }
#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; } } }
[["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["-", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 35]]
1
67
13
#include <iostream> using namespace std; int main() { for (int i = 1; i <= 9; i++) for (int j = 1; j <= 9; j++) cout << i << '*' << j << '=' << i * j << endl; return 0; }
#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; }
[["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 7, 8, 9, 0, 45], ["-", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 31, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 7, 8, 9, 0, 7, 8, 9, 0, 46], ["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]]
1
63
6