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
A, B = [int(i) for i in input()] print(A*B)
A, B = [int(i) for i in input().split()] print(A*B)
[["+", 12, 658, 0, 659, 12, 652, 63, 319, 0, 131], ["+", 12, 658, 0, 659, 12, 652, 63, 319, 319, 22], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 24], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 25]]
5
22
#include <algorithm> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <tuple> #include <utility> #include <vector> using namespace std; using ll = long long; using ld = long double; usi...
#include <algorithm> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <tuple> #include <utility> #include <vector> using namespace std; using ll = long long; using ld = long double; usi...
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]]
1
338
#include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <unordered_map> #include <vector> using namespace std; int main() { int a, b; cin >> a >> ...
#include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <unordered_map> #include <vector> using namespace std; int main() { int a, b; cin >> a >> ...
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]]
1
60
"use strict"; const main = (input) => { let arr = input.trim().split(""); console.log(arr[0] * arr[1]); }; main(require("fs").readFileSync("/dev/stdin", "utf8"));
"use strict"; const main = (input) => { let arr = input.trim().split(" "); console.log(arr[0] * arr[1]); }; main(require("fs").readFileSync("/dev/stdin", "utf8"));
[["+", 0, 200, 51, 2, 3, 3, 0, 557, 0, 491]]
2
65
a,b = list(map(int, input().split)) print(a*b)
a,b = map(int,input().split()) print(a*b)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24]]
5
23
a,b = list(map(int, input().split)) print(a*b)
a,b = map(int,input().split()) #print(a+b) print(a*b)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24]]
5
23
a,b = list(map(int, input().split)) print(a*b)
a,b = list(map(int, input().split())) print(a*b)
[["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
23
a,b = (int(x) for x in input.split()) print(a*b)
a,b = (int(x) for x in input().split()) print(a*b)
[["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 25]]
5
24
a, b = list(map, input().split()) print(a * b)
a, b = list(map(int, input().split())) print(a * b)
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
22
numbers = input.gets.split(' ').map(&:to_i) puts numbers[0] * numbers[1]
numbers = STDIN.gets.split(' ').map(&:to_i) puts numbers[0] * numbers[1]
[["-", 0, 662, 12, 652, 486, 652, 486, 652, 486, 22], ["+", 0, 662, 12, 652, 486, 652, 486, 652, 486, 743]]
4
28
a,b = map(int,intput().split()) p = a * b print(p)
a, b = map(int,input().split()) p = a * b print(p)
[["-", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22]]
5
25
#include <stdio.h> signed main() { int A, B; scanf("%d %d", A, B); printf("%d\n", A * B); return (0); }
#include <stdio.h> signed main() { int A, B; scanf("%d %d", &A, &B); printf("%d\n", A * B); return (0); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
41
a, b = map(int,input().split()) def main(x,y): return x*y main(a,b)
a, b = map(int,input().split()) def main(x,y): print(x*y) main(a,b)
[["-", 0, 656, 0, 14, 8, 196, 0, 37, 0, 38], ["+", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
34
import java.util.Scanner; public class Main { public static void Main(String[] args) { Scanner scanner = new Scanner(System.in); int factor1 = scanner.nextInt(); int factor2 = scanner.nextInt(); int result = factor1 * factor2; System.out.println(result); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int factor1 = scanner.nextInt(); int factor2 = scanner.nextInt(); int result = factor1 * factor2; System.out.println(result); } }
[["-", 0, 493, 0, 235, 8, 498, 0, 195, 141, 22], ["+", 0, 493, 0, 235, 8, 498, 0, 195, 141, 22]]
3
69
def main content = gets.chomp content.split.map(&:to_i)[0] * content.split.map(&:to_i)[1] end main
def main content = gets.chomp sum = content.split.map(&:to_i)[0] * content.split.map(&:to_i)[1] puts sum end main
[["+", 0, 493, 0, 735, 8, 736, 0, 662, 31, 22], ["+", 0, 493, 0, 735, 8, 736, 0, 662, 0, 32], ["+", 0, 493, 0, 735, 8, 736, 0, 652, 735, 22], ["+", 0, 735, 8, 736, 0, 652, 3, 4, 0, 22]]
4
34
#include <bits/stdc++.h> using namespace std; int main() { int A; int B; cin >> A, B; cout << A * B << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int A; int B; cin >> A; cin >> B; cout << A * B << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
32
#include <bits/stdc++.h> using namespace std; int main() { int A, B; cin >> A >> B; cout << A + B << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int A, B; cin >> A >> B; cout << A * B << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]]
1
31
#include <bits/stdc++.h> #define LL "%I64d" #define pb push_back #define pp pop_back #define ll long long #define pll pair<ll, ll> #define pii pair<int, int> #define vi vector<int> #define vs vector<string> #define vl vector<ll> #define mp make_pair #define all(v) v.begin(), v.end() #define all(s) s.begin(), s.end() #d...
#include <bits/stdc++.h> #define LL "%I64d" #define pb push_back #define pp pop_back #define ll long long #define pll pair<ll, ll> #define pii pair<int, int> #define vi vector<int> #define vs vector<string> #define vl vector<ll> #define mp make_pair #define all(v) v.begin(), v.end() #define all(s) s.begin(), s.end() #d...
[["-", 8, 9, 0, 1, 0, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48]]
1
340
A,B =map(int,input.split()) print(A*B)
A,B =map(int,input().split()) print(A*B)
[["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25]]
5
20
import numpy as np import sys #import copy def xnxn(n=0): """ args: int n: a number of lows to read example: input 1 retrun 1 input 1 2 3 return [1,2,3] input 1 2 3 4 return [[1,2,3], [4]] """ if n =...
import numpy as np import sys #import copy def xnxn(n=0): """ args: int n: a number of lows to read example: input 1 retrun 1 input 1 2 3 return [1,2,3] input 1 2 3 4 return [[1,2,3], [4]] """ if n =...
[["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
279
A,B = list(map(int,inpuut().split())) print(A*B)
A,B = list(map(int,input().split())) print(A*B)
[["-", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22], ["+", 3, 4, 0, 652, 63, 319, 500, 652, 63, 22]]
5
25
a, b = (int(x) for x in input().split) print(a*b)
a, b = (int(x) for x in input().split()) print(a*b)
[["+", 12, 668, 0, 659, 12, 652, 3, 4, 0, 24], ["+", 12, 668, 0, 659, 12, 652, 3, 4, 0, 25]]
5
24
$num = explode(" ",trim(fgets(STDIN))); echo $num[0] * $num[1];
<?php $num = explode(" ",trim(fgets(STDIN))); echo $num[0]*$num[1]; ?>
[["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 605], ["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 611]]
6
31
a, b = int(input().split()) print(a * b)
a, b = map(int, input().split()) print(a * b)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
20
#include <stdio.h> int main(void) { int a, b; //%dでint,syort型の変換指定子 scanf("%d", &a, &b); int c = a * b; printf("%d", c); }
#include <stdio.h> // voidは書いても書かなくてもいい. int main() { int a, b; //%dでint,syort型の変換指定子 scanf("%d%d", &a, &b); int c = a * b; printf("%d", c); // return 0は書いても書かなくてもいい. return 0; }
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]]
0
44
#include <stdio.h> int main(void) { int a, b; //%dでint,syort型の変換指定子 scanf("%d", &a, &b); int c = a * b; printf("%d", c); }
#include <stdio.h> int main() { int a, b; //%dでint,syort型の変換指定子 scanf("%d%d", &a, &b); int c = a * b; printf("%d", c); }
[["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
44
#include <stdio.h> #include <stdlib.h> int main(void) { int a, b; scanf("&d&d", &a, &b); printf("%d", a * b); }
#include <stdio.h> #include <stdlib.h> int main(void) { int a, b; scanf("%d%d", &a, &b); printf("%d", 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, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]]
0
40
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = a * b; System.out.println("c"); } }
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); int c = a * b; System.out.println(c); } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 62]]
3
71
#include <stdio.h> int main() { long long int a, b; scanf("%lld%lld", &a, &b); printf("lld\n", a * b); return 0; }
#include <stdio.h> int main() { long long int a, b; scanf("%lld%lld", &a, &b); printf("%lld\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]]
1
43
a,b = int,input().split() print(a*b)
a,b = map(int,input().split()) print(a*b)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
19
#include "bits/stdc++.h" using namespace std; using ll = long long; using l = long; using vi = vector<int>; using vl = vector<l>; using vll = vector<ll>; using vvl = vector<vector<l>>; using vvll = vector<vector<ll>>; using pll = pair<ll, ll>; using un = unsigned; int main() { int a, b; cin >> a, b; cout << a * ...
#include "bits/stdc++.h" using namespace std; using ll = long long; using l = long; using vi = vector<int>; using vl = vector<l>; using vll = vector<ll>; using vvl = vector<vector<l>>; using vvll = vector<vector<ll>>; using pll = pair<ll, ll>; using un = unsigned; int main() { int a, b; cin >> a >> b; cout << a ...
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
106
#include <algorithm> #include <math.h> #include <stdio.h> #include <vector> using namespace std; int main() { int a, b; scanf("%d %d", a, b); printf("%d", a * b); return 0; }
#include <algorithm> #include <math.h> #include <stdio.h> #include <vector> using namespace std; int main() { int a, b; scanf("%d %d", &a, &b); printf("%d", a * b); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
48
s = map(int, input().split()) print(s[0]*s[1])
s = list(map(int, input().split())) print(s[0]*s[1])
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
26
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = a; i < b; i++) #define FORS(i, a, b, c) for (int i = a; i < b; i += c) #define FORN(i, a, b) for (int i = a; i <= b; i++) #define FORD(i, a, b) for (int i = a - 1; i >= b; i--) #define FORE(i, b) for (auto &i : b) #define REP(i, b) FOR(i, 0, b) #define REPN(i,...
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = a; i < b; i++) #define FORS(i, a, b, c) for (int i = a; i < b; i += c) #define FORN(i, a, b) for (int i = a; i <= b; i++) #define FORD(i, a, b) for (int i = a - 1; i >= b; i--) #define FORE(i, b) for (auto &i : b) #define REP(i, b) FOR(i, 0, b) #define REPN(i,...
[["-", 0, 42, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 42, 0, 2, 3, 4, 0, 5, 0, 6]]
1
695
a=input().split() print(int(a[0]),int(a[1]))
a=input().split() print(int(a[0])*int(a[1]))
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]]
5
27
#include <bits/stdc++.h> #include <stdlib.h> #include <sys/time.h> #include <unistd.h> using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef pair<P, ll> T; typedef pair<long double, ll> Ps; const ll INF = 2e18; const ll fact_table = 3200008; long double Pi = 3.1415926535897932384626; priority_q...
#include <bits/stdc++.h> #include <stdlib.h> #include <sys/time.h> #include <unistd.h> using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef pair<P, ll> T; typedef pair<long double, ll> Ps; const ll INF = 2e18; const ll fact_table = 3200008; long double Pi = 3.1415926535897932384626; priority_q...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152]]
1
730
#include <bits/stdc++.h> #define mem(dp, a) memset(dp, a, sizeof(dp)) #define pb(x) push_back(x) #define m_p(x, y) make_pair(x, y) #define rep(i, a, b) for (ll i = a; i < b; i++) #define per(i, b, a) for (ll i = b; i >= a; i--) #define ff first #define ss second #define pi 3.14159265359 #define hs ...
#include <bits/stdc++.h> #define mem(dp, a) memset(dp, a, sizeof(dp)) #define pb(x) push_back(x) #define m_p(x, y) make_pair(x, y) #define rep(i, a, b) for (ll i = a; i < b; i++) #define per(i, b, a) for (ll i = b; i >= a; i--) #define ff first #define ss second #define pi 3.14159265359 #define hs ...
[["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44]]
1
150
a,b=int(input().split()) print(a*b)
a,b=map(int,(input()).split()) print(a*b)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 63, 319, 500, 23, 0, 652, 3, 4, 0, 25]]
5
20
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> #include <iomanip> #include <map> #include <set> using namespace std; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) #define rrep(i, n) for (long long i = (long long)(n - 1); i >= 0; i--) #define all(x) (x...
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> #include <iomanip> #include <map> #include <set> using namespace std; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) #define rrep(i, n) for (long long i = (long long)(n - 1); i >= 0; i--) #define all(x) (x...
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
76
A, B = int(input().split()) C = A * B print(C)
A, B = map(int, input().split()) C = A * B print(C)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
23
A, B = input.split() A = int(A) B = int(B*100) print(int(A*B/100))
A, B = input().split() A = int(A) B = int(float(B)*100) print(int(A*B/100))
[["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 25], ["+", 12, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25]]
5
34
i = list(map(int, input().split())) C = i[0]*i[1] print(c)
i = list(map(int, input().split())) #i_1 i_2を取得し、iに値を入れる c = i[0]*i[1] print(c)
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]]
5
32
#include <stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); printf("%d", A + B); }
#include <stdio.h> int main() { int A, B; scanf("%d %d", &A, &B); printf("%d", A * B); }
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48]]
0
37
#include <iostream> using namespace std; int main() { int a, b; cin >> a; cin >> b; cout << a + b << endl; return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a; cin >> b; cout << a * b << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]]
1
36
s = input().split() int(s[0]) * int(s[1])
s = input().split() print(int(s[0]) * int(s[1]))
[["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]]
5
24
<?php fscanf(STDIN. "%d %d", $a, $b); echo $a * $b;
<?php fscanf(STDIN, "%d %d", $a, $b); echo $a * $b;
[["-", 0, 613, 3, 3, 0, 28, 0, 16, 17, 131], ["+", 0, 493, 0, 1, 0, 613, 3, 3, 0, 21]]
6
23
#include <stdio.h> int main() { int A, B, M; scanf("%d%d", &A, &B); M = A * B; printf("the value of %d\n", M); return 0; }
#include <stdio.h> int main() { int A, B, M; scanf("%d%d", &A, &B); M = A * B; printf("%d\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
47
// 自己选择的路,跪着也要走完。朋友们,虽然这个世界日益浮躁起来,只 // 要能够为了当时纯粹的梦想和感动坚持努力下去,不管其它人怎么样,我们也 // 能够保持自己的本色走下去。 ——陈立杰 /************************************* * @problem: T132641 中子衰变. * @user_id: 63720. * @user_name: brealid. * @time: 2020-05-30. * @language: C++. * @upload_pl...
// 自己选择的路,跪着也要走完。朋友们,虽然这个世界日益浮躁起来,只 // 要能够为了当时纯粹的梦想和感动坚持努力下去,不管其它人怎么样,我们也 // 能够保持自己的本色走下去。 ——陈立杰 /************************************* * @problem: T132641 中子衰变. * @user_id: 63720. * @user_name: brealid. * @time: 2020-05-30. * @language: C++. * @upload_pl...
[["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48]]
1
693
#define _CRT_SECURE_NO_WARNINGS #pragma target("avx") #pragma optimize("O3") #pragma optimize("unroll-loops") #include <algorithm> #include <bitset> #include <cassert> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <ctime> #include <deque> #include <fstream> #include <functional> #inc...
#define _CRT_SECURE_NO_WARNINGS #pragma target("avx") #pragma optimize("O3") #pragma optimize("unroll-loops") #include <algorithm> #include <bitset> #include <cassert> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <ctime> #include <deque> #include <fstream> #include <functional> #inc...
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]]
1
630
// // AtCoder Beginner Contest 169 // A - Multiplication 1 // #include <algorithm> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <tuple> #include <vector> using namespace std; #define REP(i, n)...
// // AtCoder Beginner Contest 169 // A - Multiplication 1 // #include <algorithm> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <tuple> #include <vector> using namespace std; #define REP(i, n)...
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
198
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B; cout << C << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int A, B, C; cin >> A >> B; C = A * B; cout << C << endl; }
[["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
31
a,b = [int(e) for e in input().split(" ")] print(a,b)
a,b = [int(e) for e in input().split(" ")] print(a*b)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]]
5
29
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << a << b; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
32
#include <bits/stdc++.h> #include <cmath> using namespace std; int main() { int A, B; cin >> A, B; cout << A * B << endl; }
#include <bits/stdc++.h> #include <cmath> using namespace std; int main() { int A, B; cin >> A >> B; cout << A * B << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
33
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; return a * b; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
28
A,B=input().split; A-int(A); B=int(B); print(A*B);
A,B=input().split(); A=int(A); B=int(B); print(A*B);
[["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 657, 17, 33], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]]
5
31
a=input.split(' ') a[0]=int(a[0]) a[1]=int(a[1]) print(a[0]*a[1])
a=input().split(' ') a[0]=int(a[0]) a[1]=int(a[1]) print(a[0]*a[1])
[["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 12, 652, 63, 319, 500, 652, 3, 4, 0, 25]]
5
46
#include <bits/stdc++.h> using namespace std; int main() { int A, B; string op; cin >> A >> op >> B; cout << A * B << endl; }
#include <bits/stdc++.h> using namespace std; int main() { // ここに追記 int A, B; cin >> A >> B; cout << A * B << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
36
#include <algorithm> #include <chrono> #include <deque> #include <fstream> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <map> #include <math.h> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string> #include <unordered_map> #...
#include <algorithm> #include <chrono> #include <deque> #include <fstream> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <map> #include <math.h> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string> #include <unordered_map> #...
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
191
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) throws IOException { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); long p = a * b; System.out.println((int)b); } }
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) throws IOException { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); long p = a * b; System.out.println((int)p); } }
[["-", 0, 1, 0, 492, 3, 4, 0, 74, 51, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 74, 51, 22]]
3
81
A, B = map(int, input().split()) 1 <= A <= 100 1 <= B <= 100 print(a*b)
A, B = map(int, input().split()) 1 <= A <= 100 1 <= B <= 100 print(A*B)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
32
#include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef...
#include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef...
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
121
a, b = input().split() A = int(a) B - int(b) print(A*B)
a, b = input().split() A = int(a) B = int(b) print(A*B)
[["-", 36, 36, 0, 656, 0, 1, 0, 657, 17, 33], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]]
5
29
def resolve(): N, M = [int(i) for i in input().split()] print(A*B) resolve()
def resolve(): N, M = [int(i) for i in input().split()] print(N*M) resolve()
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
34
A, B = [int(x) for x in stdin.readline().rstrip().split()] print(A * B)
from sys import stdin A, B = [int(x) for x in stdin.readline().rstrip().split()] print(A * B)
[["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 314], ["+", 36, 36, 0, 656, 0, 686, 687, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 686, 0, 487], ["+", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22]]
5
32
a, b = gets.split.map(&to_i) puts a * b
a, b = gets.split.map(&:to_i) puts a * b
[["-", 0, 662, 12, 652, 3, 4, 0, 752, 0, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753]]
4
17
#include <stdio.h> int main() { int a, b; scanf("%d %d", a, b); printf("%d", a * b); return 0; }
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); printf("%d", a * b); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
38
/*-- ILSH --*/ #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define pb push_back #define pop pop_back #define mp make_pair #define vii vector<int> #define vll vector<ll> #define dt cout << "HERE\n"; #define pii pair<int, int> #define pll pair<ll, ll> #define vpi vector<pl...
/*-- ILSH --*/ #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define pb push_back #define pop pop_back #define mp make_pair #define vii vector<int> #define vll vector<ll> #define dt cout << "HERE\n"; #define pii pair<int, int> #define pll pair<ll, ll> #define vpi vector<pl...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
328
<?php fscanf("%d %d", $a, $b); echo ($a * $b);
<?php fscanf(STDIN, "%d %d", $a, $b); echo ($a * $b);
[["+", 0, 1, 0, 613, 3, 3, 0, 28, 0, 141], ["+", 0, 493, 0, 1, 0, 613, 3, 3, 0, 21]]
6
23
#include <stdio.h> int main(void) { int a, b; int ans; scanf("%d %d", &a, &a); ans = a * b; printf("%d", ans); return 0; }
#include <stdio.h> int main(void) { int a, b; int ans; scanf("%d %d", &a, &b); ans = a * b; printf("%d", ans); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]]
1
48
#include <bits/stdc++.h> using namespace std; typedef __int128_t i128; typedef long long i64; #ifdef DEBUG #define FPEN freopen("in.txt", "r", stdin); #define FPEN2 freopen("out.txt", "w", stdout); #else #define FPEN #define FPEN2 #endif #define Sz(a) ((int)(a).size()) const int maxn = 200009; const int MOD = 1e9 + 7; ...
#include <bits/stdc++.h> using namespace std; typedef __int128_t i128; typedef long long i64; #ifdef DEBUG #define FPEN freopen("in.txt", "r", stdin); #define FPEN2 freopen("out.txt", "w", stdout); #else #define FPEN #define FPEN2 #endif #define Sz(a) ((int)(a).size()) const int maxn = 200009; const int MOD = 1e9 + 7; ...
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]]
1
101
s=int(input()) n,m=int(s[0]),int(s[1]) print(n*m)
s=input().split() n,m=int(s[0]),int(s[1]) print(n*m)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24]]
5
33
#include <algorithm> #include <assert.h> #include <bitset> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include ...
#include <algorithm> #include <assert.h> #include <bitset> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include ...
[["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44]]
1
110
# -*- coding: utf-8 -*- A, B = map(int, input().split()) return(A*B)
# -*- coding: utf-8 -*- A, B = map(int, input().split()) print(A*B)
[["-", 36, 36, 36, 36, 0, 656, 0, 37, 0, 38], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22]]
5
23
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int max(int a, int b) { return a > b ? a : b; } int min(int a, int b) { return a < b ? a : b; } int main(void) { int a, b; scanf("%d %d"); printf("%d", a * b); }
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int max(int a, int b) { return a > b ? a : b; } int min(int a, int b) { return a < b ? a : b; } int main(void) { int a, b; scanf("%d %d", &a, &b); printf("%d", a * b); }
[["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]]
0
78
import sys from collections import deque import copy def main(): A,B = map(int, input()) print(A * B) if __name__ == '__main__': main()
import sys from collections import deque import copy def main(): A, B = map(int, input().split()) print(A * B) if __name__ == '__main__': main()
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
41
a, b = [int() for i in input().split()] print(a*b)
a, b = [int(i) for i in input().split()] print(a*b)
[["+", 0, 662, 12, 658, 8, 652, 3, 4, 0, 22]]
5
25
#include <stdio.h> int main() { int a, b; scanf("%d", &a, &b); printf("%d\n", a * b); return 0; }
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); 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
41
#include <bits/stdc++.h> using namespace std; #define _USE_MATH_DEFINES #include <math.h> int main() { int A, B; cin >> A, B; cout << A * B << endl; }
#include <bits/stdc++.h> using namespace std; #define _USE_MATH_DEFINES #include <math.h> int main() { int A, B; cin >> A >> B; cout << A * B << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
35
A, B = map(int, input().split) ans = A * B print(ans)
A, B = map(int, input().split()) ans = A * B print(ans)
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
23
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> long long int ans = 0; #define ll long long //最大公約数 long long int getgcd(long long n, long long m) { int r; if (n > m) { long long t = m; m = n; n = t; } while ((r = m % n) != 0) { ...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> long long int ans = 0; #define ll long long //最大公約数 long long int getgcd(long long n, long long m) { int r; if (n > m) { long long t = m; m = n; n = t; } while ((r = m % n) != 0) { ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
0
275
a, b =gets.split.map(&:to_i) puts a*5
a, b =gets.split.map(&:to_i) puts a*b
[["-", 0, 493, 0, 652, 3, 4, 0, 738, 12, 612], ["+", 0, 493, 0, 652, 3, 4, 0, 738, 12, 22]]
4
17
#include <stdio.h> int main(void) { unsigned long int a, b, c; scanf("%ld", &a, &b); printf("%ld", a * b); return 0; }
#include <stdio.h> int main(void) { unsigned long int a, b, c; scanf("%ld%ld", &a, &b); printf("%ld", 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
45
Line = [int(s) for s in input().split()] print(Liine[0]*Line[1])
Line = [int(s) for s in input().split()] print(Line[0]*Line[1])
[["-", 0, 652, 3, 4, 0, 657, 31, 206, 51, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 206, 51, 22]]
5
30
import java.io.*; import java.math.BigDecimal; import java.math.BigInteger; import java.math.RoundingMode; import java.util.*; // written by luchy0120 public class Main { public static void main(String[] args) throws Exception { new Main().run(); } long sum(long r, long a, long b) { long bb = r / b; // ...
import java.io.*; import java.math.BigDecimal; import java.math.BigInteger; import java.math.RoundingMode; import java.util.*; // written by luchy0120 public class Main { public static void main(String[] args) throws Exception { new Main().run(); } long sum(long r, long a, long b) { long bb = r / b; // ...
[["-", 8, 196, 0, 503, 49, 200, 51, 492, 141, 22], ["-", 0, 503, 49, 200, 51, 492, 3, 4, 0, 24], ["-", 0, 503, 49, 200, 51, 492, 3, 4, 0, 25], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]]
3
1,995
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; typedef vector<vi> vvi; typedef vector<vii> vvii; #define fi first #define se second #define ALL(x) (x).begin(), (x).end() #define RALL(x) (x).rbegin(), (x).rend() #define pf pu...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<ii> vii; typedef vector<vi> vvi; typedef vector<vii> vvii; #define fi first #define se second #define ALL(x) (x).begin(), (x).end() #define RALL(x) (x).rbegin(), (x).rend() #define pf pu...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
542
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; return a * b; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << a * b << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
31
#include <bits/stdc++.h> using namespace std; void fast() { ios_base::sync_with_stdio(false); cin.tie(NULL); } long long int printDivisors(long long int n, long long int k) { // Note that this loop runs till square root long long int ans = 1, i, j, l; l = sqrt(n); j = min(l, k); for (i = 2; i <= j; i++) ...
#include <bits/stdc++.h> using namespace std; void fast() { ios_base::sync_with_stdio(false); cin.tie(NULL); } long long int printDivisors(long long int n, long long int k) { // Note that this loop runs till square root long long int ans = 1, i, j, l; l = sqrt(n); j = min(l, k); for (i = 2; i <= j; i++) ...
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22]]
1
363
import sys from collections import deque def bfs(x1, y1, d): q = deque([]) q.append((d, x1, y1)) M[x1][y1] = d while q: d, x1, y1 = q.popleft() if [x1, y1] == [xg, yg]: print(d) return for dx, dy in ((0, 1), (1, 0), (0, -1), (-1, 0)): for ...
import sys from collections import deque def bfs(x1, y1, d): q = deque([]) q.append((d, x1, y1)) M[x1][y1] = d while q: d, x1, y1 = q.popleft() if [x1, y1] == [xg, yg]: print(d) return for dx, dy in ((0, 1), (1, 0), (0, -1), (-1, 0)): for ...
[["-", 12, 658, 8, 657, 31, 634, 0, 664, 17, 33], ["-", 12, 658, 8, 657, 31, 634, 0, 664, 28, 612], ["+", 12, 658, 8, 657, 31, 634, 0, 652, 63, 22], ["+", 8, 657, 31, 634, 0, 652, 3, 4, 0, 24], ["+", 31, 634, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 31, 634, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 31, 634, 0, 652, 3, 4, 0, 557,...
5
364
#include <bits/stdc++.h> using namespace std; const int dir[4][2] = {{-1, 0}, {0, -1}, {1, 0}, {0, 1}}; const int INF = 1e9; int h, w, k; int sx, sy, gx, gy; vector<vector<char>> MP; vector<vector<int>> dis; bool outside(int x, int y) { return x < 0 or x >= h or y < 0 or y >= w; } bool bad(int x, int y, int nd) { re...
#include <bits/stdc++.h> using namespace std; const int dir[4][2] = {{-1, 0}, {0, -1}, {1, 0}, {0, 1}}; const int INF = 1e9; int h, w, k; int sx, sy, gx, gy; vector<vector<char>> MP; vector<vector<int>> dis; bool outside(int x, int y) { return x < 0 or x >= h or y < 0 or y >= w; } bool bad(int x, int y, int nd) { re...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
493
#include <bits/stdc++.h> using namespace std; typedef long long ll; struct node { int x, y; }; int h, w, sx, sy, ex, ey, k; int mo[4][2] = {1, 0, -1, 0, 0, 1, 0, -1}; main() { cin >> h >> w >> k; cin >> sx >> sy >> ex >> ey; char g[h][w]; int step[h][w], vis[h][w]; memset(vis, 0, sizeof(vis)); memset(step...
#include <bits/stdc++.h> using namespace std; typedef long long ll; struct node { int x, y; }; int h, w, sx, sy, ex, ey, k; int mo[4][2] = {1, 0, -1, 0, 0, 1, 0, -1}; main() { cin >> h >> w >> k; cin >> sx >> sy >> ex >> ey; char g[h][w]; int step[h][w], vis[h][w]; memset(vis, 0, sizeof(vis)); memset(step...
[["-", 12, 16, 12, 16, 31, 69, 341, 342, 0, 13], ["+", 12, 16, 12, 16, 31, 69, 341, 342, 0, 13]]
1
562
#include <bits/stdc++.h> using namespace std; #define fs first #define sc second #define pb push_back #define mp make_pair #define eb emplace_back #define ALL(A) A.begin(), A.end() #define RALL(A) A.rbegin(), A.rend() typedef long long LL; typedef pair<int, int> P; template <class T> inline bool chmax(T &a, T b) { if...
#include <bits/stdc++.h> using namespace std; #define fs first #define sc second #define pb push_back #define mp make_pair #define eb emplace_back #define ALL(A) A.begin(), A.end() #define RALL(A) A.rbegin(), A.rend() typedef long long LL; typedef pair<int, int> P; template <class T> inline bool chmax(T &a, T b) { if...
[["-", 75, 76, 0, 57, 64, 9, 0, 116, 0, 117], ["-", 75, 76, 0, 57, 64, 9, 0, 116, 0, 35]]
1
597
#include "bits/stdc++.h" using namespace std; #ifdef _DEBUG #define dlog(str) cout << "====" << str << endl; #else #define dlog(str) #endif #define INF 999999999 #define MOD 1000000007 #define REP(i, n) for (int i = 0, i##_l = (n); i < i##_l; i++) #define FOR(i, s, e) for (int i = s, i##_l = (e); i < i##_l; i++) #defin...
#include "bits/stdc++.h" using namespace std; #ifdef _DEBUG #define dlog(str) cout << "====" << str << endl; #else #define dlog(str) #endif #define INF 999999999 #define MOD 1000000007 #define REP(i, n) for (int i = 0, i##_l = (n); i < i##_l; i++) #define FOR(i, s, e) for (int i = s, i##_l = (e); i < i##_l; i++) #defin...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
498
#include <stdio.h> int main() { int n, flag = 0; long long arr[100000]; long long temp = 1; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%lld", &arr[i]); } for (int i = 0; i < n; i++) { if (arr[i] == 0) { flag = 1; break; } if (flag == 0) { printf("0\n"); ...
#include <stdio.h> int main() { int n, flag = 0; long long arr[100000]; long long temp = 1; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%lld", &arr[i]); } for (int i = 0; i < n; i++) { if (arr[i] == 0) { flag = 1; } if (flag == 1) { printf("0\n"); return 0; ...
[["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]]
0
183
#include <bits/stdc++.h> using namespace std; int main() { unsigned long long n, a[200005], sum = 1; cin >> n; bool f = 0; for (int i = 0; i < n; i++) { cin >> a[i]; if (a[i] == 0) f = 1; } if (f) { cout << 0; return 0; } for (int i = 0; i < a[i]; i++) { if (ULLONG_MAX / a[i] ...
#include <bits/stdc++.h> using namespace std; int main() { unsigned long long n, a[200005], sum = 1; cin >> n; bool f = 0; for (int i = 0; i < n; i++) { cin >> a[i]; if (a[i] == 0) f = 1; } if (f) { cout << 0; return 0; } for (int i = 0; i < n; i++) { if (ULLONG_MAX / a[i] < s...
[["-", 8, 9, 0, 7, 15, 16, 12, 69, 28, 22], ["-", 0, 7, 15, 16, 12, 69, 341, 342, 0, 70], ["-", 0, 7, 15, 16, 12, 69, 341, 342, 0, 22], ["-", 0, 7, 15, 16, 12, 69, 341, 342, 0, 73], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]]
1
143
#include <stdio.h> int main() { int N; scanf("%d", &N); long long int array[N], max = 1e18, x = 1, y = 0, z = 0; for (int i = 1; i < N; i++) { scanf("%lld", &array[i]); y = (array[i] > max) ? 1 : y; x = x * array[i]; (array[i]) ? max = max / array[i] : z = 1; } (z) ? printf("0") : ((y) ? p...
#include <stdio.h> int main() { int N; scanf("%d", &N); long long int array[N], max = 1e18, x = 1, y = 0, z = 0; for (int i = 0; i < N; i++) { scanf("%lld", &array[i]); y = (array[i] > max) ? 1 : y; x = x * array[i]; (array[i]) ? max = max / array[i] : z = 1; } (z) ? printf("0") : ((y) ? p...
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 75, 23, 0, 41, 75, 2, 3, 4, 0, 22], ["+", 75, 23, 0, 41, 75, 2, 3, 4, 0, 22]]
1
155
#include <stdio.h> int main() { int t, zero = 0, flag = 0; scanf("%d", &t); long long int n, max = 1e18, sum = 1; for (int i = 0; i < t; i++) { scanf("%lld", &n); n > max ? flag == 1 : flag; sum *= n; n == 0 ? zero = 1 : max /= n; } if (zero == 1) { puts("0"); } else { flag == 1 ?...
#include <stdio.h> int main() { int t, zero = 0, flag = 0; // zero buat nandain 0 gak,flag buat nandain melebihi gk scanf("%d", &t); long long int n, max = 1e18, sum = 1; // sum 1 karena dikali 1 ya satu,max 10^18 for (int i = 0; i < t; i++) { scanf("%lld", &n); n > max ? fl...
[["-", 8, 9, 0, 1, 0, 41, 64, 16, 17, 60], ["+", 8, 9, 0, 1, 0, 41, 64, 11, 17, 32]]
1
136
#include <stdio.h> int main() { int t, zero = 0, flag = 0; scanf("%d", &t); long long int n, max = 1e18, sum = 1; for (int i = 0; i < t; i++) { scanf("%lld", &n); n > max ? flag == 1 : flag; sum *= n; n == 0 ? zero = 1 : max /= n; } if (zero == 1) { puts("0"); } else { flag == 1 ?...
#include <stdio.h> int main() { int t, zero = 0, flag = 0; scanf("%d", &t); long long int n, max = 1e18, sum = 1; for (int i = 0; i < t; i++) { scanf("%lld", &n); n > max ? flag = 1 : flag; sum *= n; n == 0 ? zero = 1 : max /= n; } if (zero == 1) { puts("0"); } else { flag == 1 ? ...
[["-", 8, 9, 0, 1, 0, 41, 64, 16, 17, 60], ["+", 8, 9, 0, 1, 0, 41, 64, 11, 17, 32]]
1
136
#include <stdio.h> int main() { long long int x; scanf("%lld", &x); long long int y[x]; long long int total = 1; for (int i = 0; i < x; i++) { scanf("%lld", &y[i]); } for (int j = 0; j < x; j++) { if (y[j] == 0) { printf("0"); return 0; } } for (int k = 0; k < x; k++) { ...
#include <stdio.h> int main() { long long int x; scanf("%lld", &x); long long int y[x]; long long int total = 1; for (int i = 0; i < x; i++) { scanf("%lld", &y[i]); } for (int j = 0; j < x; j++) { if (y[j] == 0) { printf("0"); return 0; } } for (int k = 0; k < x; k++) { ...
[["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35], ["+", 0, 57, 75, 76, 0, 9, 0, 37, 0, 38], ["+", 0, 57, 75, 76, 0, 9, 0, 37, 0, 13]]
1
162
dontt_use = input() str_list = list(input().split()) n = map(int,str_list) def foo(n): total = 1 for number in n: total = total * number print(total) if total > 10**18: print('-1') return print(total) if '0' in str_list : print(0) else: foo(n)
dontt_use = input() str_list = list(input().split()) n = map(int,str_list) def foo(n): total = 1 for number in n: total = total * number if total > 10**18: print('-1') return print(total) if '0' in str_list : print(0) else: foo(n)
[["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]]
5
83