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 |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
#define arep(i, x, n) for (int i = int(x); i < (int)(n); i++)
#define rep(i, n) for (int i = 0; i < n; ++i)
#define pi 3.141592653589793
#define eps 0.00000001
#define INF 1e9 + 7
using ll = long long;
int main() {
float N;
cin >> N;
int sq = sqrt(N) + 1;
int intN... | #include <bits/stdc++.h>
using namespace std;
#define arep(i, x, n) for (int i = int(x); i < (int)(n); i++)
#define rep(i, n) for (int i = 0; i < n; ++i)
#define pi 3.141592653589793
#define eps 0.00000001
#define INF 1e9 + 7
using ll = long long;
int main() {
float N;
cin >> N;
int sq = sqrt(N) + 1;
int intN... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 178 |
#include <bits/stdc++.h>
#include <iomanip>
#include <math.h>
#include <stdio.h>
#include <unistd.h>
#define rep(i, x) for (ll i = 0; i < x; i++)
#define all(a) (a).begin(), (a).end()
#define vecin(a) rep(i, a.size()) cin >> a[i]
#define vecout(a) rep(i, a.size()) cout << a[i] << " "
using ll = long long;
using ld = lo... | #include <bits/stdc++.h>
#include <iomanip>
#include <math.h>
#include <stdio.h>
#include <unistd.h>
#define rep(i, x) for (ll i = 0; i < x; i++)
#define all(a) (a).begin(), (a).end()
#define vecin(a) rep(i, a.size()) cin >> a[i]
#define vecout(a) rep(i, a.size()) cout << a[i] << " "
using ll = long long;
using ld = lo... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 724 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef vector<int> vec;
//配列の添字ズレに注意
//=に注意
int main() {
int f[10007];
rep(i, 10005) f[i] = 0;
int n, memo;
cin >> n;
for (int x = 1; x < 50; x++) {
for (int y = 1; y < 50; y++) {
for (int z = 1; z < 50; z... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef vector<int> vec;
//配列の添字ズレに注意
//=に注意
int main() {
int f[10007];
rep(i, 10005) f[i] = 0;
int n, memo;
cin >> n;
for (int x = 1; x < 101; x++) {
for (int y = 1; y < 101; y++) {
for (int z = 1; z < 10... | [["-", 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 | 161 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a[1000001] = {};
int n = 0;
cin >> n;
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
for (int k = 1; k <= 100; k++) {
a[(i * i) + (j * j) + (k * k) + (i * j) + (j * k) + (k * i)]++;
}
}
}
for (int ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[1000001] = {};
int n = 0;
cin >> n;
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
for (int k = 1; k <= 100; k++) {
a[(i * i) + (j * j) + (k * k) + (i * j) + (j * k) + (k * i)]++;
}
}
}
for (int ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 141 |
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <climits>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <functional>
#incl... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <climits>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <functional>
#incl... | [["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 254 |
def main():
N = int(input())
ans = [0] * 4001
for i in range(1, 201):
for j in range(1, 201):
if i**2 + j**2 < 4001:
for k in range(1, 201):
tmp = i**2 + j**2 + k**2 + i*j + j*k + i*k
if tmp < 4001:
ans[tmp]... | def main():
N = int(input())
ans = [0] * 10001
for i in range(1, 101):
for j in range(1, 101):
if i**2 + j**2 < 10001:
for k in range(1, 101):
tmp = i**2 + j**2 + k**2 + i*j + j*k + i*k
if tmp < 10001:
ans[t... | [["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["-", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["... | 5 | 126 |
N=int(input())
ans=[0]*(10**5)
L=list(i for i in range(1,40))
from itertools import*
P=list(product(L,repeat=3))
for x,y,z in P:
ans[x**2+y**2+z**2+x*y+y*z+z*x-1]+=1
for a in ans[:N]:
print(a) | N=int(input())
ans=[0]*(10**5)
L=list(i for i in range(1,100))
from itertools import*
P=list(product(L,repeat=3))
for x,y,z in P:
ans[x**2+y**2+z**2+x*y+y*z+z*x-1]+=1
for a in ans[:N]:
print(a) | [["-", 3, 668, 0, 659, 12, 652, 3, 4, 0, 612], ["+", 3, 668, 0, 659, 12, 652, 3, 4, 0, 612]] | 5 | 103 |
#include <bits/stdc++.h>
#define IO std::ios::sync_with_stdio(false), cin.tie(0)
using namespace std;
int fun(int x, int y, int z) {
return x * x + y * y + z * z + x * z + y * z + x * y;
}
int a[10001];
int main() {
int n;
memset(a, 0, sizeof(a));
cin >> n;
for (int j = 1; j <= 70; j++) {
for (int k = ... | #include <bits/stdc++.h>
#define IO std::ios::sync_with_stdio(false), cin.tie(0)
using namespace std;
int fun(int x, int y, int z) {
return x * x + y * y + z * z + x * z + y * z + x * y;
}
int a[10001];
int main() {
int n;
memset(a, 0, sizeof(a));
cin >> n;
for (int j = 1; j <= 100; j++) {
for (int k =... | [["-", 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 | 179 |
#include <bits/stdc++.h>
using namespace std;
void Main();
using i8 = int8_t; /* -128 ~ 127 */
using u8 = uint8_t; /* 0 ~ 255 */
using i16 = int16_t; /* -32,768 ~ 32,767 */
using u16 = uint16_t; /* 0 ~ 65,535 */
using i32 = int32_t; /* -2,147,483,648 ~ 2,147,483,647 */
using u32 = uint32_t; /* 0 ~ 4,294,967,295... | #include <bits/stdc++.h>
using namespace std;
void Main();
using i8 = int8_t; /* -128 ~ 127 */
using u8 = uint8_t; /* 0 ~ 255 */
using i16 = int16_t; /* -32,768 ~ 32,767 */
using u16 = uint16_t; /* 0 ~ 65,535 */
using i32 = int32_t; /* -2,147,483,648 ~ 2,147,483,647 */
using u32 = uint32_t; /* 0 ~ 4,294,967,295... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 349 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int i = 1;
int[] nums = new int[n + 1];
while (true) {
if (i * i > n) {
break;
}
int j = i;
while (true) {
if (i * i + j * j... | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int i = 1;
int[] nums = new int[n + 1];
while (true) {
if (i * i > n) {
break;
}
int j = 1;
while (true) {
if (i * i + j * j... | [["-", 0, 52, 8, 196, 0, 503, 49, 200, 51, 22], ["+", 0, 52, 8, 196, 0, 503, 49, 200, 51, 499]] | 3 | 201 |
/* * In the name of GOD
* Thanks God */
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define F first
#define S second
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int a[10000] = {
1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, ... | /* * In the name of GOD
* Thanks God */
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define F first
#define S second
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int a[10000] = {
0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, ... | [["-", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 83, 0, 13]] | 1 | 20,090 |
N = int(input())
from collections import defaultdict
ansd = defaultdict(int)
def calc(x,y,z):
return x**2 + y**2 + z **2 + x*z + y*z + y*x
for x in range(1,45):
for y in range(1, 45):
for z in range(1,45):
ansd[calc(x,y,z)] += 1
for k in range(1, N+1):
print(ansd[k]) | N = int(input())
from collections import defaultdict
ansd = defaultdict(int)
def calc(x,y,z):
return x**2 + y**2 + z **2 + x*z + y*z + y*x
for x in range(1,100):
for y in range(1, 100):
for z in range(1,100):
ansd[calc(x,y,z)] += 1
for k in range(1, N+1):
print(ansd[k]) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 114 |
#include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <vector>
#define INF 1000000007 // 1000000000000000003
#define MOD 10000... | #include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <vector>
#define INF 1000000007 // 1000000000000000003
#define MOD 10000... | [["-", 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 | 960 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
int f[1010];
int main() {
int n;
scanf("%d", &n);
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
for (int k = 1; k <= 100; k++) {
long long su... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
int f[10010];
int main() {
int n;
scanf("%d", &n);
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
for (int k = 1; k <= 100; k++) {
long long s... | [["-", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13]] | 1 | 162 |
#include <bits/stdc++.h>
#define IOS \
{ \
ios::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
#define IOS \
{ \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 256 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> f(N);
for (int x = 1; x * x < N; x++) {
for (int y = 1; y * y < N; y++) {
for (int z = 1; z * z < N; z++) {
int n;
n = x * x + y * y + z * z + x * y + y * z + z * x;
if (n < N)
f.... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> f(N);
for (int x = 1; x * x < N; x++) {
for (int y = 1; y * y < N; y++) {
for (int z = 1; z * z < N; z++) {
int n;
n = x * x + y * y + z * z + x * y + y * z + z * x;
if (n <= N)
f... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 155 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define FOR(i, n, j) for (int i = (j); i < (n); ++i)
#define rrep(i, n) for (int i = (n); i >= 0; --i)
#define ssort(n) sort((n).begin(), (n).end())
using ll = long long;
using ld = long double;
typedef pair<int, int> P;
#defi... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define FOR(i, n, j) for (int i = (j); i < (n); ++i)
#define rrep(i, n) for (int i = (n); i >= 0; --i)
#define ssort(n) sort((n).begin(), (n).end())
using ll = long long;
using ld = long double;
typedef pair<int, int> P;
#defi... | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["-", 0, 43, 49, 50, 51, 4, 0, 16, 31, 22], ["-", 0, 43, 49, 50, 51, 4, 0, 16, 17, 72], ["-", 0, 43, 49, 50, 51, 4, 0, 16, 12, 13], ["+", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78]] | 1 | 211 |
#c
n=int(input())
import math
nn=int(math.sqrt(n))+1
a=[0]*(8*n)
for x in range(1,nn+1):
for y in range(1,nn+1):
for z in range(1,nn+1):
a[(x+y+z)**2-x*y-x*z-y*z]+=1
for i in range(1,n+1):
print(a[i]) | n=int(input())
import math
nn=int(math.sqrt(n))+1
a=[0]*(100*n)
for x in range(1,nn+1):
for y in range(1,nn+1):
for z in range(1,nn+1):
a[(x+y+z)**2-x*y-x*z-y*z]+=1
for i in range(1,n+1):
print(a[i]) | [["-", 0, 662, 12, 657, 12, 23, 0, 657, 31, 612], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 31, 612]] | 5 | 116 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int n;
cin >> n;
int total[10001];
fill(total, total + 10001, 0);
for (int x = 1; x < sqrt(n); x++) {
for (int y = 1; y < sqrt(n); y++) {
for (int z = 1; z < sqrt(n); z++) {
int num = x * x + y * y + z * z + x * y + y * z + z * ... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int n;
cin >> n;
int total[100000];
fill_n(total, 100000, 0);
for (int x = 1; x < sqrt(n); x++) {
for (int y = 1; y < sqrt(n); y++) {
for (int z = 1; z < sqrt(n); z++) {
int num = x * x + y * y + z * z + x * y + y * z + z * x;
... | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 31, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, ... | 1 | 155 |
N = int(input())
ans = [0]*(10**5)
a = 0
for x in range(1,10**2):
for y in range(1,10**2-x):
for z in range(1,10**2-x-y):
ans[x**2 + y**2 + z**2 + x*y + y*z + z*x] += 1
for i in range(1,N+1):
print(ans[i])
| N = int(input())
ans = [0]*(10**5)
a = 0
for x in range(1,10**2):
for y in range(1,10**2):
for z in range(1,10**2):
ans[x**2 + y**2 + z**2 + x*y + y*z + z*x] += 1
for i in range(1,N+1):
print(ans[i])
| [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 22], ["-", 12, 652, 3, 4, 0, 657, 31, 657, 17, 33], ["-", 12, 652, 3, 4, 0, 657, 31, 657, 12, 22]] | 5 | 111 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vi2 = vector<vector<int>>;
#define MP(a, b) make_pair((a), (b))
#define MT(...) make_tuple(__VA_ARGS__)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, x) for (int i = 0; i < (int)(x); i++)
#define RE... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vi2 = vector<vector<int>>;
#define MP(a, b) make_pair((a), (b))
#define MT(...) make_tuple(__VA_ARGS__)
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, x) for (int i = 0; i < (int)(x); i++)
#define RE... | [["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 346 |
print_cnt = int(input())
result = [0] * 1000
for x in range(100):
for y in range(100):
for z in range(100):
if x*y*z == 0:
continue
tmp = x*x + y*y + z*z + x*y + y*z + z*x
if tmp <= 1000:
result[tmp-1] += 1
for i in range(print_cnt):
print(result[i]) | print_cnt = int(input())
result = [0] * 10000
for x in range(100):
for y in range(100):
for z in range(100):
if x*y*z == 0:
continue
tmp = x*x + y*y + z*z + x*y + y*z + z*x
if tmp <= 10000:
result[tmp-1] += 1
for i in range(print_cnt):
print(result[i]) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 102 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll ans[2001] = {};
int main() {
int n_max;
cin >> n_max;
for (int x = 1; x * x <= n_max; ++x) {
for (int y = 1; x * x + y * y + x * y <= n_max; ++y) {
for (int z = 1; x * x + y * (x + y) + z * (x + y + z) <= n_max; ++z) {
ans[x ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll ans[10001] = {};
int main() {
int n_max;
cin >> n_max;
for (int x = 1; x * x <= n_max; ++x) {
for (int y = 1; x * x + y * y + x * y <= n_max; ++y) {
for (int z = 1; x * x + y * (x + y) + z * (x + y + z) <= n_max; ++z) {
ans[x... | [["-", 0, 30, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 0, 30, 0, 43, 49, 50, 49, 80, 81, 13]] | 1 | 168 |
#include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
typedef long long ll;
constexpr long long INFLL = 1e18;
using namespace std;
int main() {
int n;
cin >> n;
int ans = 0;
for (int i = 1; i <... | #include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
typedef long long ll;
constexpr long long INFLL = 1e18;
using namespace std;
int main() {
int n;
cin >> n;
int ans = 0;
for (int i = 1; i <... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 12, 13], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 13]] | 1 | 224 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
t = 1;
while (t--) {
long long int ans = 0;
int n;
cin >> n;
unordered_map<int, int> mp;
for (int i = 1; i <= 50; i++) {
for (int j = 1; j <= 50; j++) {
for (int... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
t = 1;
while (t--) {
long long int ans = 0;
int n;
cin >> n;
map<int, int> mp;
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
for (int k = 1; ... | [["-", 0, 52, 8, 9, 0, 43, 39, 344, 141, 78], ["+", 0, 52, 8, 9, 0, 43, 39, 344, 141, 78], ["-", 0, 52, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 52, 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 | 168 |
#include <bits/stdc++.h>
using namespace std;
// defines...
#define ll long long
#define tata return;
#define pb push_back
#define mp make_pair
#define in insert
#define run \
ios_base::sync_with_stdio(false); ... |
#include <bits/stdc++.h>
using namespace std;
// defines...
#define ll long long
#define tata return;
#define pb push_back
#define mp make_pair
#define in insert
#define run \
ios_base::sync_with_stdio(false); ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 332 |
#include <bits/stdc++.h>
/*#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
*/
using namespace std;
#define m 1000000001
#define rep(i, a, b) for (int i = a; i < b; ++i)
#define repb(i, a, b) for (int i = a; i >= b; --i)
#define repv(arr) for (auto it = arr[i].begin(); it != arr[i].end(); ++it)
#define vi v... | #include <bits/stdc++.h>
/*#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
*/
using namespace std;
#define m 1000000001
#define rep(i, a, b) for (int i = a; i < b; ++i)
#define repb(i, a, b) for (int i = a; i >= b; --i)
#define repv(arr) for (auto it = arr[i].begin(); it != arr[i].end(); ++it)
#define vi v... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 233 |
#include <sys/time.h>
#include <algorithm>
#include <cctype>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<double... | #include <sys/time.h>
#include <algorithm>
#include <cctype>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<double... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 232 |
n = int(input())
ans = [0]*60001
for i in range(1,100):
for j in range(1,100):
for k in range(1,100):
a = i**2+j**2+k**2+i*j+i*k+j*k
ans[a]+=1
for i in range(n+1):
print(ans[i])
| n = int(input())
ans = [0]*60001
for i in range(1,100):
for j in range(1,100):
for k in range(1,100):
a = i**2+j**2+k**2+i*j+i*k+j*k
ans[a]+=1
for i in range(1,n+1):
print(ans[i])
| [["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 93 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n;
cin >> n;
vector<ll> a(1000000, 0);
for (ll l = 3; l <= 105; l++) {
for (ll i = 1; i <= l / 3; i++) {
for (ll j = i; j * 2 <= l - i; j++) {
ll k = l - i - j;
ll res = i * i + j * j + k * k + i * j +... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n;
cin >> n;
vector<ll> a(1000000, 0);
for (ll l = 3; l <= 200; l++) {
for (ll i = 1; i <= l / 3; i++) {
for (ll j = i; j * 2 <= l - i; j++) {
ll k = l - i - j;
ll res = i * i + j * j + k * k + i * j +... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 192 |
import math
LI = lambda: list(map(int,input().split()) )
MI = lambda: map(int,input().split())
SI = lambda: input()
II = lambda: int(input())
n = II()
l = [0]*(10**4+1)
m = 10**4
lim = int(m**0.5)+1
for i in range(1,lim):
for j in range(i,lim):
for z in range(j,lim):
s = i**2+j**2+z**2+i*j+i*z+j... | import math
LI = lambda: list(map(int,input().split()) )
MI = lambda: map(int,input().split())
SI = lambda: input()
II = lambda: int(input())
n = II()
l = [0]*(10**4+1)
m = 10**4
lim = int(m**0.5)+1
for i in range(1,lim):
for j in range(i,lim):
for z in range(j,lim):
s = i**2+j**2+z**2+i*j+i*z+j... | [["-", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 17, 107], ["-", 75, 665, 64, 196, 0, 1, 0, 662, 0, 32], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 17, 107], ["-", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 107]] | 5 | 207 |
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func solve() {
n := scanInt()
a := make([]int, n)
for x := 1; x < 100; x++ {
for y := 1; y < 100; y++ {
for z := 1; z < 100; z++ {
num := pow(x, 2) + pow(y, 2) + pow(z, 2) + x*z + y*z + x*y
if num < n {
a[num-1]++
}
}
}
}
for i :... | package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func solve() {
n := scanInt()
a := make([]int, n)
for x := 1; x < 110; x++ {
for y := 1; y < 110; y++ {
for z := 1; z < 110; z++ {
num := pow(x, 2) + pow(y, 2) + pow(z, 2) + x*z + y*z + x*y
if num <= n {
a[num-1]++
}
}
}
}
for i ... | [["-", 8, 196, 0, 7, 0, 430, 15, 16, 12, 433], ["+", 8, 196, 0, 7, 0, 430, 15, 16, 12, 433], ["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]] | 7 | 809 |
N = int(input())
#A = list(map(int, input().split()))
ans = [0 for _ in range(N)]
for x in range(1, 151):
for y in range(1, 151):
for z in range(1, 151):
k = (x+y)**2+(y+z)**2+(z+x)**2
if k % 2 == 0 and k < 2*N:
ans[((x+y)**2+(y+z)**2+(z+x)**2)//2-1] += 1
for i in range(N):
print(ans[i]) | N = int(input())
#A = list(map(int, input().split()))
ans = [0 for _ in range(N)]
for x in range(1, 101):
for y in range(1, 101):
for z in range(1, 101):
k = (x+y)**2+(y+z)**2+(z+x)**2
if k % 2 == 0 and k <= 2*N:
ans[((x+y)**2+(y+z)**2+(z+x)**2)//2-1] += 1
for i in range(N):
print(ans[i]) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 138 |
from collections import Counter
n = int(input())
l = list()
for i in range(1,31):
l.append((i, i**2))
# print(l)
c = Counter()
for X in l:
for Y in l:
for Z in l:
x = X[0]
y = Y[0]
z = Z[0]
c[X[1]+Y[1]+Z[1]+x*y+y*z+x*z] += 1
for i in range(1, n+1):
pr... | from collections import Counter
n = int(input())
l = list()
for i in range(1,101):
l.append((i, i**2))
# print(l)
c = Counter()
for X in l:
for Y in l:
for Z in l:
x = X[0]
y = Y[0]
z = Z[0]
c[X[1]+Y[1]+Z[1]+x*y+y*z+x*z] += 1
for i in range(1, n+1):
p... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 128 |
/***** author : C0d1ngPhenomena *****/
#include <bits/stdc++.h>
#define endl "\n"
#define ll long long int
#define TestCases \
int T; \
cin >> T; ... | /***** author : C0d1ngPhenomena *****/
#include <bits/stdc++.h>
#define endl "\n"
#define ll long long int
#define TestCases \
int T; \
cin >> T; ... | [["+", 0, 27, 28, 69, 341, 342, 0, 16, 17, 33], ["+", 0, 27, 28, 69, 341, 342, 0, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]] | 1 | 326 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
typedef pair<int, int> P;
#define MAX 100005
#define INF 1001001001
int main(int, char **) {
int n;
cin >> n;
int max = sqrt(n) + 1;
rep(i, n + 1) {
int ans = 0;
for (int x = 1; x <=... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
typedef pair<int, int> P;
#define MAX 100005
#define INF 1001001001
int main(int, char **) {
int n;
cin >> n;
int max = sqrt(n) + 1;
rep(i, n) {
int ans = 0;
for (int x = 1; x <= max... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 198 |
#include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
//エイリアス
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
class S... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
//エイリアス
using namespace std;
using ll = long long;
using pll = pair<ll, ll>;
class S... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 367 |
N = gets.to_i
a = []
(1..57).each{ |x|
(1..57).each{ |y|
(1..57).each{ |z|
n = x**2 + y**2 + z**2 + x*y + y*z + z*x
a.push n
}
}
}
a2 = a.group_by{|n| n}
(1..N).each{ |n|
puts a2.fetch(n, []).size
}
| N = gets.to_i
#max = 57
max = 100
a = []
(1..max).each{ |x|
(1..max).each{ |y|
(1..max).each{ |z|
n = x**2 + y**2 + z**2 + x*y + y*z + z*x
a.push n
}
}
}
a2 = a.group_by{|n| n}
(1..N).each{ |n|
puts a2.fetch(n, []).size
}
| [["+", 36, 36, 36, 36, 0, 493, 0, 662, 31, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 0, 32], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 12, 612], ["-", 0, 493, 0, 652, 486, 739, 0, 475, 444, 612], ["+", 0, 493, 0, 652, 486, 739, 0, 475, 444, 22], ["-", 8, 734, 0, 652, 486, 739, 0, 475, 444, 612], ["+", 8, 734, 0, 652, 486,... | 4 | 109 |
#!/usr/bin/env python3
import sys
import numpy as np
def solve(N: int):
F = 60
p = [0] * (F**3)
for x in range(1,F):
for y in range(1,F):
for z in range(1,F):
p[x*x+y*y+z*z+x*y+y*z+z*x] += 1
for i in range(1,(N+1)):
print(p[i])
return
# Generated by 1... | #!/usr/bin/env python3
import sys
import numpy as np
def solve(N: int):
F = 110
p = [0] * (F**3)
for x in range(1,F):
for y in range(1,F):
for z in range(1,F):
p[x*x+y*y+z*z+x*y+y*z+z*x] += 1
for i in range(1,(N+1)):
print(p[i])
return
# Generated by ... | [["-", 0, 14, 8, 196, 0, 1, 0, 662, 12, 612], ["+", 0, 14, 8, 196, 0, 1, 0, 662, 12, 612]] | 5 | 167 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int x, y, z;
map<long long, long long> ans;
for (x = 1; x <= 100; x++) {
for (y = 1; y <= 100; y++) {
for (z = 1; z <= 100; z++) {
long long a = x * x + y * y + z * z + x * y + y * z + z * x;
ans[a]++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int x, y, z;
map<long long, long long> ans;
for (x = 1; x <= 100; x++) {
for (y = 1; y <= 100; y++) {
for (z = 1; z <= 100; z++) {
long long a = x * x + y * y + z * z + x * y + y * z + z * x;
ans[a]++;
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 140 |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int n;
scanf("%d", &n);
int f[10001] = {0};
for (int x = 1; x < 100; x++) {
for (int y = 1; y < 100; y++) {
for (int z = 1; z < 100; z++) {
if (x * x + y * y + z * z + x * y + y * z + z * x < 1001) {
f[x * x + y * y + z * z +... | #include <stdio.h>
#include <stdlib.h>
int main(void) {
int n;
scanf("%d", &n);
int f[10001] = {0};
for (int x = 1; x < 100; x++) {
for (int y = 1; y < 100; y++) {
for (int z = 1; z < 100; z++) {
if (x * x + y * y + z * z + x * y + y * z + z * x < 10001) {
f[x * x + y * y + z * z ... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]] | 0 | 169 |
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define rep(i, n) \
; \
for (long long i = 0; i < (n); i++)
using ll = long long;
using P = pair<long long, long lon... | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define rep(i, n) \
; \
for (long long i = 0; i < (n); i++)
using ll = long long;
using P = pair<long long, long lon... | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13]] | 1 | 228 |
#include <algorithm>
#include <climits>
#include <cmath>
#include <fstream>
#include <iostream>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
const int MAX_COUNT = 100;
int main() {
ios_base::sync_with_s... | #include <algorithm>
#include <climits>
#include <cmath>
#include <fstream>
#include <iostream>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
const int MAX_COUNT = 100;
int main() {
ios_base::sync_with_s... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 204 |
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> data(10009, 0);
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
for (int k = 1; k <= 100; k++) {
if (i * i + j * j + k *... | #include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> data(10019, 0);
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
for (int k = 1; k <= 100; k++) {
if (i * i + j * j + k *... | [["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 176 |
#include <bits/stdc++.h>
using namespace std;
#define all(v) begin(v), end(v)
#define endl '\n';
#define int long long
#define pii pair<int, int>
#define sz(x) (int)x.size()
void test_case() {
int n;
cin >> n;
const int x = 1 + (int)sqrt(n);
vector<int> a(n + 1, 0);
for (int i = 1; i <= x; i++) {
for (i... | #include <bits/stdc++.h>
using namespace std;
#define all(v) begin(v), end(v)
#define endl '\n';
#define int long long
#define pii pair<int, int>
#define sz(x) (int)x.size()
void test_case() {
int n;
cin >> n;
const int x = 1 + (int)sqrt(n);
vector<int> a(n + 1, 0);
for (int i = 1; i <= x; i++) {
for (i... | [["-", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 107]] | 1 | 220 |
#include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int ans[10007];
int main() {
for (int x = 1; x <= 100; x++) {
for (int y = 1; y <= 100; y++) {
for (int z = 1; z <= 100; z++) {
int a = x + y, b = y + z, c = x + z;
int t = a * a + b * b + c * c;
if (t <= ... | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int ans[10007];
int main() {
for (int x = 1; x <= 100; x++) {
for (int y = 1; y <= 100; y++) {
for (int z = 1; z <= 100; z++) {
int a = x + y, b = y + z, c = x + z;
int t = a * a + b * b + c * c;
if (t <= ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 164 |
#from collections import deque,defaultdict
printn = lambda x: print(x,end='')
inn = lambda : int(input())
inl = lambda: list(map(int, input().split()))
inm = lambda: map(int, input().split())
ins = lambda : input().strip()
DBG = True # and False
BIG = 10**18
R = 10**9 + 7
#R = 998244353
def ddprint(x):
if D... | #from collections import deque,defaultdict
printn = lambda x: print(x,end='')
inn = lambda : int(input())
inl = lambda: list(map(int, input().split()))
inm = lambda: map(int, input().split())
ins = lambda : input().strip()
DBG = True # and False
BIG = 10**18
R = 10**9 + 7
#R = 998244353
def ddprint(x):
if D... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 202 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> ans(10001, 0);
for (int i = 1; i < 100; i++) {
for (int j = 1; j < 100; j++) {
for (int k = 1; k < 100; k++) {
int a = i * i + j * j + k * k + i * j + j * k + k * i;
if (a <= 1000) {
ans.... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> ans(10001, 0);
for (int i = 1; i < 100; i++) {
for (int j = 1; j < 100; j++) {
for (int k = 1; k < 100; k++) {
int a = i * i + j * j + k * k + i * j + j * k + k * i;
if (a <= 10000) {
ans... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 148 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
vector<int> ans(n + 1, 0);
for (int x = 1; x * x <= n; x++) {
for (int y = 1; y * y <= n; y++) {
for (int z = 1;; z++) {
int f = x * x + y * y + z ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
vector<int> ans(n + 1, 0);
for (int x = 1; x * x <= n; x++) {
for (int y = 1; y * y <= n; y++) {
for (int z = 1;; z++) {
int f = x * x + y * y + z ... | [["-", 31, 16, 31, 2, 3, 4, 0, 16, 17, 72], ["-", 31, 16, 31, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]] | 1 | 155 |
"""
NTC here
"""
#!/usr/bin/env python
import os
import sys
from io import BytesIO, IOBase
profile = 0
pypy = 1
def iin(): return int(input())
def lin(): return list(map(int, input().split()))
def main():
T = 1
while T:
T -= 1
n = iin()
mx = 10**4+1
ans = [0]*(mx)
... | """
NTC here
"""
#!/usr/bin/env python
import os
import sys
from io import BytesIO, IOBase
profile = 0
pypy = 1
def iin(): return int(input())
def lin(): return list(map(int, input().split()))
def main():
T = 1
while T:
T -= 1
n = iin()
mx = 10**4+1
ans = [0]*(mx)
... | [["+", 0, 652, 3, 4, 0, 206, 206, 663, 0, 612]] | 5 | 654 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const int INF = 0x3f3f3f3f;
const double pi = acos(-1), eps = 1e-8;
const int maxn = 1 << 17;
con... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const int INF = 0x3f3f3f3f;
const double pi = acos(-1), eps = 1e-8;
const int maxn = 1 << 17;
con... | [["-", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13], ["-", 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 | 283 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int64_t MOD = 1000000007;
int main() {
vector<int> S(10050, 0);
for (int i = 1; i * i < 10001; i++) {
for (int j = 1; j * j < 10001; j++) {
for (int k = 1; k * k < 01001; k++) {
int64_t a = i * i + ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int64_t MOD = 1000000007;
int main() {
vector<int> S(10050, 0);
for (int i = 1; i * i < 10001; i++) {
for (int j = 1; j * j < 10001; j++) {
for (int k = 1; k * k < 10001; k++) {
int64_t a = i * i + ... | [["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 165 |
n=int(input())
res=[0]*(n+1)
for x in range(1,50):
for y in range(1,50):
for z in range(1,50):
t = x**2+y**2+z**2+x*y+y*z+z*x
if t > n:
continue
res[t]+=1
for i in range(1,n+1):
print(res[i]) | n=int(input())
res=[0]*(n+1)
for x in range(1,150):
for y in range(1,150):
for z in range(1,150):
t = x**2+y**2+z**2+x*y+y*z+z*x
if t > n:
continue
res[t]+=1
for i in range(1,n+1):
print(res[i])
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 105 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> A(N + 1, 0);
for (int X = 1; X <= 100; X++) {
for (int Y = 1; Y <= 100; Y++) {
for (int Z = 1; Z <= 100; Z++) {
if (X * X + Y * Y + Z * Z + X * Y + Y * Z + Z + X <= N) {
A.at(X * X + Y * Y + Z * ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> A(N + 1, 0);
for (int X = 1; X <= 100; X++) {
for (int Y = 1; Y <= 100; Y++) {
for (int Z = 1; Z <= 100; Z++) {
if (X * X + Y * Y + Z * Z + X * Y + Y * Z + Z * X <= N) {
A.at(X * X + Y * Y + Z * ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 72], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 48]] | 1 | 165 |
import java.io.*;
import java.util.*;
class Main {
Scanner in;
InputStream is;
PrintWriter out;
String INPUT = "";
//----------------------------------------------------------------------------------------------------//
int INF = Integer.MAX_VALUE;
int mod = (int)(1e9) + 7;
void solve() throws IOExc... |
import java.io.*;
import java.util.*;
class Main {
Scanner in;
InputStream is;
PrintWriter out;
String INPUT = "";
//----------------------------------------------------------------------------------------------------//
int INF = Integer.MAX_VALUE;
int mod = (int)(1e9) + 7;
void solve() throws IOExc... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 0, 52, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 52, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 937 |
#include <bits/stdc++.h>
using namespace std;
#define mod1 1000000007
#define mod2 998244353
#define int long long int
#define pii pair<int, int>
#define vpii vector<pii>
#define vi vector<int>
#define fi first
#define se second
#define psb push_back
#define ppb pop_back
#define fio ... | #include <bits/stdc++.h>
using namespace std;
#define mod1 1000000007
#define mod2 998244353
#define int long long int
#define pii pair<int, int>
#define vpii vector<pii>
#define vi vector<int>
#define fi first
#define se second
#define psb push_back
#define ppb pop_back
#define fio ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 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], ["-", 0, 7, 8, 7, 8, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 7, 8, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 252 |
# -*- coding: utf-8 -*-
# C
import sys
from collections import defaultdict, deque
from heapq import heappush, heappop
import math
import bisect
input = sys.stdin.readline
# 再起回数上限変更
# sys.setrecursionlimit(1000000)
N = int(input())
max_n = 70
ans = defaultdict(int)
for x in range(1, max_n):
for y in range(1, m... | # -*- coding: utf-8 -*-
# C
import sys
from collections import defaultdict, deque
from heapq import heappush, heappop
import math
import bisect
input = sys.stdin.readline
# 再起回数上限変更
# sys.setrecursionlimit(1000000)
N = int(input())
max_n = 100
ans = defaultdict(int)
for x in range(1, max_n):
for y in range(1, ... | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 132 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ll l, r, i, j, k, n, m, x;
cin >> n;
ll ar[1005] = {0};
for (i = 1; i <= 100; i++) {
for (j = 1; j <= 100; j++) {
for (k = 1; k <= 100; k++) {
// cout<<i<<' '<<j<<' '<<k<<endl;
ll x = i * i + j * j +... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main() {
ll l, r, i, j, k, n, m, x;
cin >> n;
ll ar[10005] = {0};
for (i = 1; i <= 100; i++) {
for (j = 1; j <= 100; j++) {
for (k = 1; k <= 100; k++) {
// cout<<i<<' '<<j<<' '<<k<<endl;
ll x = i * i + j * j ... | [["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13]] | 1 | 153 |
N = int(input())
ans = [0] * (N)
for x in range(1, 101):
for y in range(1, 101):
for z in range(1, 101):
n = x ** 2 + y ** 2 + z ** 2 + x * y + y * z + z * x - 1
if n <= N:
ans[n] += 1
for i in ans:
print(i)
| N = int(input())
ans = [0] * N
for x in range(1, 101):
for y in range(1, 101):
for z in range(1, 101):
n = x ** 2 + y ** 2 + z ** 2 + x * y + y * z + z * x - 1
if n < N:
ans[n] += 1
for i in ans:
print(i)
| [["-", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["-", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18]] | 5 | 94 |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long[] count = new long[n + 1];
for (int i = 1; i <= 32; i++) {
for (int j = 1; j <= 32; j++) {
for (int k... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long[] count = new long[n + 1];
for (int i = 1; i <= 1000; i++) {
for (int j = 1; j <= 1000; j++) {
for (i... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 499]] | 3 | 177 |
#include <bits/stdc++.h>
using namespace std;
template <class T> T input() {
T t;
cin >> t;
return t;
}
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define REP(i, b) FOR(i, 0, b)
#define RFOR(i, a, b) for (ll i = a - 1; i >= b; i--)
#define RREP(i, a) RFOR(i, a, 0)
#define REPALL(i, x) for (ll i = 0; i < x.si... | #include <bits/stdc++.h>
using namespace std;
template <class T> T input() {
T t;
cin >> t;
return t;
}
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define REP(i, b) FOR(i, 0, b)
#define RFOR(i, a, b) for (ll i = a - 1; i >= b; i--)
#define RREP(i, a) RFOR(i, a, 0)
#define REPALL(i, x) for (ll i = 0; i < x.si... | [["-", 75, 76, 0, 9, 0, 1, 0, 11, 12, 13], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 13]] | 1 | 598 |
n = gets.chomp.to_i
hash = {}
(1..31).each do |x|
(1..31).each do |y|
(1..31).each do |z|
count = x ** 2 + y ** 2 + z ** 2 + x * y + y * z + z * x
hash[count] ||= 0
hash[count] += 1
end
end
end
(1..n).each do |i|
puts hash[i].to_i
end | n = gets.chomp.to_i
hash = {}
(1..100).each do |x|
(1..100).each do |y|
(1..100).each do |z|
count = x ** 2 + y ** 2 + z ** 2 + x * y + y * z + z * x
hash[count] ||= 0
hash[count] += 1
end
end
end
(1..n).each do |i|
puts hash[i].to_i
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 | 103 |
N = int(input())
F = [0]*(N+1)
for x in range(1, 101):
for y in range(1, 101):
for z in range(1, 101):
c = x**2 + y**2 + z**2 + x*y + y*z + z*x
if (c <= N):
F[c] += 1
print(*F, sep='\n') | N = int(input())
F = [0]*(N+1)
for x in range(1, 101):
for y in range(1, 101):
for z in range(1, 101):
c = x**2 + y**2 + z**2 + x*y + y*z + z*x
if (c <= N):
F[c] += 1
print(*F[1:], sep='\n') | [["+", 0, 1, 0, 652, 3, 4, 0, 206, 0, 70], ["+", 0, 652, 3, 4, 0, 206, 206, 663, 0, 612], ["+", 0, 652, 3, 4, 0, 206, 206, 663, 0, 102], ["+", 0, 1, 0, 652, 3, 4, 0, 206, 0, 73]] | 5 | 98 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using ll = long long;
constexpr int INF = 1e9;
constexpr long long LINF = 1e18;
constexpr long long MOD = 1e9 + 7;
int f[] = {
0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define ALL(v) (v).begin(), (v).end()
using ll = long long;
constexpr int INF = 1e9;
constexpr long long LINF = 1e18;
constexpr long long MOD = 1e9 + 7;
int f[] = {
0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, ... | [["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 33], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]] | 1 | 20,096 |
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def s(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L... | import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def s(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 304 |
from collections import defaultdict
n = int(input())
d = defaultdict(int)
for i in range(1, 120):
for j in range(1, 120):
for k in range(1, 120):
num = i**2 + j ** 2 + k ** 2 + i * j + j * k + k * i
d[num] += 1
for i in range(n+1):
print(d[i])
| from collections import defaultdict
n = int(input())
d = defaultdict(int)
for i in range(1, 120):
for j in range(1, 120):
for k in range(1, 120):
num = i**2 + j ** 2 + k ** 2 + i * j + j * k + k * i
d[num] += 1
for i in range(1,n+1):
print(d[i])
| [["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 96 |
#include <bits/stdc++.h>
#include <cstdint>
#include <vector>
#define FOR(i, l, r) for (int i = (l); i < (r); ++i)
#define RFOR(i, l, r) for (int i = (l); i >= (int)(r); i--)
#define rep(i, n) FOR(i, 0, n)
#define rrep(i, n) RFOR(i, n - 1, 0)
#define int long long
using namespace std;
const int MX = 1e6;
const int inf... | #include <bits/stdc++.h>
#include <cstdint>
#include <vector>
#define FOR(i, l, r) for (int i = (l); i < (r); ++i)
#define RFOR(i, l, r) for (int i = (l); i >= (int)(r); i--)
#define rep(i, n) FOR(i, 0, n)
#define rrep(i, n) RFOR(i, n - 1, 0)
#define int long long
using namespace std;
const int MX = 1e6;
const int inf... | [["-", 0, 1, 0, 16, 31, 16, 31, 2, 63, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 2, 63, 22], ["+", 0, 16, 31, 16, 31, 2, 3, 4, 0, 21], ["+", 0, 16, 31, 16, 31, 2, 3, 4, 0, 13]] | 1 | 183 |
#include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
// using namespace boost::multiprecision;
typedef long long int ll;
typedef long double ld;
#define MOD 1000000007
#define ALL(obj) (obj).begin(), (obj).end()
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
... | #include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
// using namespace boost::multiprecision;
typedef long long int ll;
typedef long double ld;
#define MOD 1000000007
#define ALL(obj) (obj).begin(), (obj).end()
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
... | [["-", 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 | 464 |
#include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int dp[1005] = {0};
int main() {
int n;
cin >> n;
for (int i = 1; i * i <= n; i++)
for (int j = 1; j * j + i * i <= n; ++j) {
for (int k = 1; k * k <= n; ++k) {
int num = i * i + j * j + k * k + i * j + j * k + k * ... | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int dp[10005] = {0};
int main() {
int n;
cin >> n;
for (int i = 1; i * i <= n; i++)
for (int j = 1; j * j <= n; ++j) {
for (int k = 1; k * k <= n; ++k) {
int num = i * i + j * j + k * k + i * j + j * k + k * i;
... | [["-", 0, 30, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 0, 30, 0, 43, 49, 50, 49, 80, 81, 13], ["-", 0, 7, 8, 7, 15, 16, 31, 16, 17, 72], ["-", 8, 7, 15, 16, 31, 16, 12, 16, 31, 22], ["-", 8, 7, 15, 16, 31, 16, 12, 16, 17, 48], ["-", 8, 7, 15, 16, 31, 16, 12, 16, 12, 22], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8,... | 1 | 158 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
#define ll long long
int arr[10001];
int main(void) {
int x, y, z, n, temp;
scanf("%d", &n);
n = sqrt(n);
for (x = 1; x <= n; x++)... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
#define ll long long
int arr[10001];
int main(void) {
int x, y, z, k, n, temp;
scanf("%d", &n);
k = sqrt(n);
for (x = 1; x <= k; x... | [["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["-", 8, 9, 0, 7, 8, 7, 15, 16, 12, 22], ["+", 8, 9, 0, 7, 8, 7, 15, 1... | 1 | 175 |
import math
def main():
n = int(input())
_n = int(math.sqrt(n))
ret = [0] * n
for i in range(1, _n):
for j in range(1, _n):
for k in range(1, _n):
tmp = i ** 2 + j ** 2 + k ** 2 + i * j + j * k + k * i
if tmp < n:
ret[tmp-1] += 1
... | import math
def main():
n = int(input())
_n = int(math.sqrt(n))
ret = [0] * n
for i in range(1, _n):
for j in range(1, _n):
for k in range(1, _n):
tmp = i ** 2 + j ** 2 + k ** 2 + i * j + j * k + k * i
if tmp <= n:
ret[tmp-1] += 1... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 129 |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
typedef long long ll;
typedef std::vector<long long> vll;
typedef std::vector<std::vector<long long>> vvll;
typedef long double ld;
typedef std::vector<long double> vld;
typedef std::vector<std::vector<long double>> vvld;
using namespace std;
v... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
typedef long long ll;
typedef std::vector<long long> vll;
typedef std::vector<std::vector<long long>> vvll;
typedef long double ld;
typedef std::vector<long double> vld;
typedef std::vector<std::vector<long double>> vvld;
using namespace std;
v... | [["-", 31, 16, 31, 2, 3, 4, 0, 16, 17, 72], ["-", 31, 16, 31, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]] | 1 | 282 |
import sys
from operator import itemgetter
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
def ii(): return int(input())
def mi(): return map(int, input().split())
def lmi(): return list(map(int, input().split()))
def iif(n): return [int(input()) for _ in range(n)]
def lmif(n): return [list(map(int, input().s... | import sys
from operator import itemgetter
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
def ii(): return int(input())
def mi(): return map(int, input().split())
def lmi(): return list(map(int, input().split()))
def iif(n): return [int(input()) for _ in range(n)]
def lmif(n): return [list(map(int, input().s... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 234 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int ans[10004];
int n;
cin >> n;
int x, y, z;
for (int i = 0; i <= 10000; i++)
ans[i] = 0;
for (x = 1; x <= 100; x++) {
for (y = 1; y <= 100; y++) {
for (z = 1; z <= 100; z++) {
int t = x * x + y * y + z *... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int ans[10004];
int n;
cin >> n;
int x, y, z;
for (int i = 0; i <= 10000; i++)
ans[i] = 0;
for (x = 1; x <= 100; x++) {
for (y = 1; y <= 100; y++) {
for (z = 1; z <= 100; z++) {
int t = x * x + y * y + z *... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 162 |
#include <bits/stdc++.h>
#define INF 5000000000000000000
#define ll long long
#define pll pair<ll, ll>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll N;
cin >> N;
for (ll i = 1; i <= N; ++i) {
ll ans = 0;
for (ll x = 1; x * x <= i; ++x) {
for (ll y = x; y * ... | #include <bits/stdc++.h>
#define INF 5000000000000000000
#define ll long long
#define pll pair<ll, ll>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll N;
cin >> N;
for (ll i = 1; i <= N; ++i) {
ll ans = 0;
for (ll x = 1; x * x <= i; ++x) {
for (ll y = x; y * ... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 199 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
#define SP << " "
#define LLi long long int
using namespace std;
int imax = 2147483647;
long long int llimax = 9223372036854775807;
// int型vectorを出力
void PV(vector<int> pvv) {
rep(i, pvv.size()) cout <<... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()
#define SP << " "
#define LLi long long int
using namespace std;
int imax = 2147483647;
long long int llimax = 9223372036854775807;
// int型vectorを出力
void PV(vector<int> pvv) {
rep(i, pvv.size()) cout <<... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["-", 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 | 250 |
N=int(input())
ans=[0]*(N+1)
to=int((N)**(1/2))+2
for x in range(1,to):
for y in range(1,to):
for z in range(1,to):
temp=x*x+y*y+z*z+x*y+y*z+z*x
if temp<N:
ans[temp]+=1
for i in range(1,N+1):
print(ans[i]) | N=int(input())
ans=[0]*(N+1)
to=int((N)**(1/2))+2
for x in range(1,to):
for y in range(1,to):
for z in range(1,to):
temp=x*x+y*y+z*z+x*y+y*z+z*x
if temp<=N:
ans[temp]+=1
for i in range(1,N+1):
print(ans[i]) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 120 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
#define DUMP(x) cout << #x << " = " << (x) << endl;
#define FOR(i, m, n) for (ll i = m; i < n; i++)
#define IFOR(i, m, n) for (ll i = n - 1; i >= m; i--)
#define REP(i, n) FOR(i, 0, n)
#define IREP(i, n) IFOR(i, 0, n)
#define FO... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
#define DUMP(x) cout << #x << " = " << (x) << endl;
#define FOR(i, m, n) for (ll i = m; i < n; i++)
#define IFOR(i, m, n) for (ll i = n - 1; i >= m; i--)
#define REP(i, n) FOR(i, 0, n)
#define IREP(i, n) IFOR(i, 0, n)
#define FO... | [["-", 0, 7, 15, 16, 31, 16, 31, 16, 31, 13], ["-", 0, 7, 15, 16, 31, 16, 31, 16, 17, 48]] | 1 | 241 |
N = int(input())
def f(a, b, c):
return a**2 + b**2 + c**2 + a*b + b*c + c*a
ans = [0] * N
for x in range(1, 101):
for y in range(x, 101):
for z in range(y, 101):
p = f(x, y, z)
if (p <= N):
if (x == y and y == z):
ans[p-1] = 1
... | N = int(input())
def f(a, b, c):
return a**2 + b**2 + c**2 + a*b + b*c + c*a
ans = [0] * N
for x in range(1, 101):
for y in range(x, 101):
for z in range(y, 101):
p = f(x, y, z)
if (p <= N):
if (x == y and y == z):
ans[p-1] += 1
... | [["-", 0, 57, 64, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 677, 17, 107], ["-", 75, 665, 64, 196, 0, 1, 0, 662, 0, 32], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 17, 107], ["-", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 107]] | 5 | 157 |
#include <bits/stdc++.h>
#define ll long long int
#define ull unsigned long long
#define ff first
#define ss second
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | #include <bits/stdc++.h>
#define ll long long int
#define ull unsigned long long
#define ff first
#define ss second
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(0); ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 180 |
#include <bits/stdc++.h>
#ifdef __DEBUG__
#define DBG(X) cout << #X << " = " << (X) << endl;
#define SAY(X) cout << (X) << endl;
#else
#define DBG(X)
#define SAY(X)
#endif
using namespace std;
using ll = long long int;
using ull = unsigned long long int;
using ld = long double;
using pii = pair<int, int>;
using pll =... | #include <bits/stdc++.h>
#ifdef __DEBUG__
#define DBG(X) cout << #X << " = " << (X) << endl;
#define SAY(X) cout << (X) << endl;
#else
#define DBG(X)
#define SAY(X)
#endif
using namespace std;
using ll = long long int;
using ull = unsigned long long int;
using ld = long double;
using pii = pair<int, int>;
using pll =... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 656 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vll>;
using vvvll = vector<vvll>;
#define REP(i, n, m) for (ll i = n; i < (ll)m; ++i)
#define IREP(i, n, m) for (ll i = n - 1; i >= m; --i)
#define rep(i, n) REP(i, 0, n)
#define irep(i, n) IREP(i, n, 0)
#d... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vll>;
using vvvll = vector<vvll>;
#define REP(i, n, m) for (ll i = n; i < (ll)m; ++i)
#define IREP(i, n, m) for (ll i = n - 1; i >= m; --i)
#define rep(i, n) REP(i, 0, n)
#define irep(i, n) IREP(i, n, 0)
#d... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 216 |
n = int(input())
from itertools import product
l = list(range(1, 100+1))
f = [0 for _ in range(11000)]
def func(x,y,z):
return x**2 + y**2 + z**2 + x*y + y*z + z*x
for x, y, z in product(l, l, l):
v = func(x,y,z)
if v <= n:
f[v] += 1
for ans in f[:n+1]:
print(ans)
| n = int(input())
from itertools import product
l = list(range(1, 100+1))
f = [0 for _ in range(11000)]
def func(x,y,z):
return x**2 + y**2 + z**2 + x*y + y*z + z*x
for x, y, z in product(l, l, l):
v = func(x,y,z)
if v <= n:
f[v] += 1
for ans in f[1:n+1]:
print(ans)
| [["+", 0, 656, 0, 7, 12, 206, 206, 663, 0, 612]] | 5 | 123 |
#include <bits/stdc++.h>
using namespace std;
using lli = int_fast64_t;
using ulli = unsigned long long;
#define debug(x) cerr << #x << " : " << x << endl
#define debugv(x) \
cerr << #x << " : {"; \
... | #include <bits/stdc++.h>
using namespace std;
using lli = int_fast64_t;
using ulli = unsigned long long;
#define debug(x) cerr << #x << " : " << x << endl
#define debugv(x) \
cerr << #x << " : {"; \
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 9, 0, 7, 15, ... | 1 | 209 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, ini, n) for (int i = ini; i < n; i++)
#define _rep(i, ini, n) for (int i = ini; i >= n; i--)
#define ToEnd(a) a.begin(), a.end()
uint64_t MOD = 1000000007;
int main() {
int N;
cin >> N;
vector<int64_t> Ans(100000, 0);
rep(x, 1, 101) {
rep(y, 1, ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, ini, n) for (int i = ini; i < n; i++)
#define _rep(i, ini, n) for (int i = ini; i >= n; i--)
#define ToEnd(a) a.begin(), a.end()
uint64_t MOD = 1000000007;
int main() {
int N;
cin >> N;
vector<int64_t> Ans(100000, 0);
rep(x, 1, 101) {
rep(y, 1, ... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 15, 339, 51, 16, 12, 2, 63, 118, 28, 22], ["+", 15, 339, 51, 16, 12, 2, 63, 118, 17, 131], ["+", 15, 339, 51, 16, 12, 2, 63, 118, 119, 120], ["+", 15, 339, 51, 16, 12, 2, 3, 4, 0... | 1 | 156 |
#include <bits/stdc++.h>
using namespace std;
#define all(a) a.begin(), a.end()
using ll = long long;
const int INF = 1 << 30;
const ll INFll = 1LL << 62;
const int mod = int(1e9) + 7;
using P = pair<ll, ll>;
using ld = long double;
int main() {
ll n;
cin >> n;
vector<ll> ans(100000, 0);
for (int x = 1; x <= ... | #include <bits/stdc++.h>
using namespace std;
#define all(a) a.begin(), a.end()
using ll = long long;
const int INF = 1 << 30;
const ll INFll = 1LL << 62;
const int mod = int(1e9) + 7;
using P = pair<ll, ll>;
using ld = long double;
int main() {
ll n;
cin >> n;
vector<ll> ans(100000, 0);
for (int x = 1; x <= ... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 203 |
n=int(input())
max_n=10**4+5
ans=[0]*(max_n)
for x in range(1,34):
for y in range(1,34):
for z in range(1,34):
total=x**2+y**2+z**2+x*y+y*z+z*x
if total<=max_n:
ans[total]+=1
for i in range(1,n+1):
print(ans[i])
| n=int(input())
max_n=10**4+5
ans=[0]*(max_n+1)
for x in range(1,105):
for y in range(1,105):
for z in range(1,105):
total=x**2+y**2+z**2+x*y+y*z+z*x
if total<=max_n:
ans[total]+=1
for i in range(1,n+1):
print(ans[i])
| [["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 72], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 12, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 109 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout << setprecision(20) << fixed;
int N;
cin >> N;
vector<int> ans(10000000);
for (int i = 1; i < 500; i++) {
for (int j = 1; j < 500; j++) {
for (int t = 1; t < 500; t++) {
int x = i * ... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout << setprecision(20) << fixed;
int N;
cin >> N;
vector<int> ans(10000000);
for (int i = 1; i < 1000; i++) {
for (int j = 1; j < 500; j++) {
for (int t = 1; t < 500; t++) {
int x = i *... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 165 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int N;
cin >> N;
vector<int> dp(2000000, 0);
for (int i = 1; i < 100; i++) {
for (int j = 1; j < 100; j++) {
for (int k = 1; k < 100; k++) {
int tmp = i * i + j * j + k * k + i * j + j * k + k * i;
dp[tm... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int N;
cin >> N;
vector<int> dp(2000000, 0);
for (int i = 1; i < 200; i++) {
for (int j = 1; j < 200; j++) {
for (int k = 1; k < 200; k++) {
int tmp = i * i + j * j + k * k + i * j + j * k + k * i;
dp[tm... | [["-", 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], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]] | 1 | 145 |
#include <bits/stdc++.h>
using namespace std;
int f[110000];
int main() {
// freopen("test.in","r",stdin);
// freopen("test.out","w",stdout);
int n;
scanf("%d", &n);
int x = sqrt(n);
for (int i = 0; i <= x; i++)
for (int j = 0; j <= x; j++)
for (int k = 0; k <= x; k++)
f[i * i + j * j + ... | #include <bits/stdc++.h>
using namespace std;
int f[110000];
int main() {
// freopen("test.in","r",stdin);
// freopen("test.out","w",stdout);
int n;
scanf("%d", &n);
int x = sqrt(n);
for (int i = 1; i <= x; i++)
for (int j = 1; j <= x; j++)
for (int k = 1; k <= x; k++)
f[i * i + j * j + ... | [["-", 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], ["-", 8, 7, 8, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 7, 8, 7, 10, 43, 49, 50, 51, 13]] | 1 | 141 |
#include "bits/stdc++.h"
#define MOD 1000000007
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define rrep(i, n) for (ll i = (n)-1; i >= 0; i--)
#define ALL(v) v.begin(), v.end()
#define rALL(v) v.rbegin(), v.rend()
#define FOR(i, j, k) for (ll i = j; i < k; i++)
#define debug_print(var) cerr << #var << "=" << var <<... | #include "bits/stdc++.h"
#define MOD 1000000007
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define rrep(i, n) for (ll i = (n)-1; i >= 0; i--)
#define ALL(v) v.begin(), v.end()
#define rALL(v) v.rbegin(), v.rend()
#define FOR(i, j, k) for (ll i = j; i < k; i++)
#define debug_print(var) cerr << #var << "=" << var <<... | [["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13]] | 1 | 971 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define sz(x) int(x.size())
typedef long long ll;
typedef long double ld;
typedef pair<int, int> P;
constexpr int INF = 2e9;
constexpr int mod = 1e9 + 7;
int main() {
int n;
cin >> n;
vector<int> cnt(1001, 0);
for (i... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define sz(x) int(x.size())
typedef long long ll;
typedef long double ld;
typedef pair<int, int> P;
constexpr int INF = 2e9;
constexpr int mod = 1e9 + 7;
int main() {
int n;
cin >> n;
vector<int> cnt(10001, 0);
for (... | [["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13]] | 1 | 192 |
#include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
#define sync \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define input(arr, n) ... | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
#define sync \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define input(arr, n) ... | [["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 212 |
# coding: utf-8
def main():
N = int(input())
fs = [0] * N
for x in range(1, 100):
for y in range(1, 100):
for z in range(1, 100):
i = (x**2) + (y**2) + (z**2) + (x+y) + (y+z) + (z+x)
if i <= N:
fs[i-1] += 1
for i in range(N):
... | # coding: utf-8
def main():
N = int(input())
fs = [0] * N
for x in range(1, 100):
for y in range(1, 100):
for z in range(1, 100):
i = (x**2) + (y**2) + (z**2) + (x*y) + (y*z) + (z*x)
if i <= N:
fs[i-1] += 1
for i in range(N):
... | [["-", 31, 657, 31, 657, 12, 23, 0, 657, 17, 72], ["+", 31, 657, 31, 657, 12, 23, 0, 657, 17, 48], ["-", 12, 657, 31, 657, 12, 23, 0, 657, 17, 72], ["+", 12, 657, 31, 657, 12, 23, 0, 657, 17, 48], ["-", 0, 662, 12, 657, 12, 23, 0, 657, 17, 72], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 48]] | 5 | 120 |
#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#define ll long long
#define eps 1e-7
#define all(x) ((x).begin()), ((x).end())
#define usecppio \
ios::sync_with_stdio(0); ... | #include <bits/stdc++.h>
#pragma GCC optimize("O3")
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#define ll long long
#define eps 1e-7
#define all(x) ((x).begin()), ((x).end())
#define usecppio \
ios::sync_with_stdio(0); ... | [["-", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13]] | 1 | 172 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int N;
cin >> N;
vector<int> ans(N + 1, 0);
for (int i = 0; i * i <= N; ++i) {
for (int j = 0; i * i + j * j + i * j <= N; ++j) {
for (int k = 0; i * i + j * j + k * k + i * j + j * k + k * i <= N; ++k) {
ans[i *... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int N;
cin >> N;
vector<int> ans(N + 1, 0);
for (int i = 1; i * i <= N; ++i) {
for (int j = 1; i * i + j * j + i * j <= N; ++j) {
for (int k = 1; i * i + j * j + k * k + i * j + j * k + k * i <= N; ++k) {
ans[i *... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 172 |
#include <bits/stdc++.h>
using namespace std;
long long ans[10004], n;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> n;
for (int i = 1; n >= i * i; i++) {
for (int j = 1; n >= j * j; j++) {
for (int k = 1; n >= k * k; k++) {
ans[i * i + j * j + k * k + i * j + i * k +... | #include <bits/stdc++.h>
using namespace std;
long long ans[100005], n;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> n;
for (int i = 1; n >= i * i; i++) {
for (int j = 1; n >= j * j; j++) {
for (int k = 1; n >= k * k; k++) {
ans[i * i + j * j + k * k + i * j + i * k ... | [["-", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13]] | 1 | 154 |
import math,itertools,fractions,heapq,collections,bisect,sys,queue,copy
sys.setrecursionlimit(10**7)
inf=10**20
mod=10**9+7
dd=[(-1,0),(0,1),(1,0),(0,-1)]
ddn=[(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]
def LI(): return [int(x) for x in sys.stdin.readline().split()]
# def LF(): return [float(x) for x in s... | import math,itertools,fractions,heapq,collections,bisect,sys,queue,copy
sys.setrecursionlimit(10**7)
inf=10**20
mod=10**9+7
dd=[(-1,0),(0,1),(1,0),(0,-1)]
ddn=[(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]
def LI(): return [int(x) for x in sys.stdin.readline().split()]
# def LF(): return [float(x) for x in s... | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 316 |
#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int INF = 1e9;
int main() {
int n;
const int max_n = 1e4;
cin >> n;
int ans = 0;
int res;
vector<int> f(1e5, 0);
for (int i = 1; i < 120; i++) {
for (int j = 1; j < 120; j++) {
for (int k = 1; k < 120; k++) {
... | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int INF = 1e9;
int main() {
int n;
const int max_n = 1e4;
cin >> n;
int ans = 0;
int res;
vector<int> f(1e5, 0);
for (int i = 1; i < 120; i++) {
for (int j = 1; j < 120; j++) {
for (int k = 1; k < 120; k++) {
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 164 |
#ifdef LOCAL
#define _GLIBCXX_DEBUG
#define __clock__
#else
#pragma GCC optimize("Ofast")
#endif
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using VI = vector<ll>;
using VV = vector<VI>;
using VS = vector<string>;
using PII = pair<ll, ll>;
// tourist set
template <typena... | #ifdef LOCAL
#define _GLIBCXX_DEBUG
#define __clock__
#else
#pragma GCC optimize("Ofast")
#endif
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using VI = vector<ll>;
using VV = vector<VI>;
using VS = vector<string>;
using PII = pair<ll, ll>;
// tourist set
template <typena... | [["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13]] | 1 | 1,549 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.