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;
int main() {
int a, b, c, n, d;
cin >> n;
int ans[10005] = {0};
for (a = 1; a < 101; a++) {
for (b = 1; b < 101; b++) {
for (c = 1; c < 101; c++) {
d = a * a + b * b + c * c + a * b + b * c + c * a;
if (d >= n)
continue;
a... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, n, d;
cin >> n;
int ans[10005] = {0};
for (a = 1; a < 101; a++) {
for (b = 1; b < 101; b++) {
for (c = 1; c < 101; c++) {
d = a * a + b * b + c * c + a * b + b * c + c * a;
if (d > n)
continue;
an... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 150 |
# -*- coding: utf-8 -*-
#解説を読んで考えている。
#まず、探索範囲は ceil(√N)程度で良いとされた。
# これはxyzが1以上のため、
# x=最大,yz=1のケースでは、 x*x + 2x + 2 = N となるため。
import io
import sys
import math
def format_multi_line_answer(lst):
ans = ""
for y in lst:
ans += f"{y}\n"
return ans
#この演算fは、n+1に至るまで都度同じ計算をする。
def f(n):
v_lst = [0... | # -*- coding: utf-8 -*-
#解説を読んで考えている。
#まず、探索範囲は ceil(√N)程度で良いとされた。
# これはxyzが1以上のため、
# x=最大,yz=1のケースでは、 x*x + 2x + 2 = N となるため。
import io
import sys
import math
def format_multi_line_answer(lst):
ans = ""
for y in lst:
ans += f"{y}\n"
return ans
#この演算fは、n+1に至るまで都度同じ計算をする。
def f(n):
v_lst = [0... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 332 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> pi;
typedef pair<ll, ll> pll;
#define fi first
#define se second
#define pb push_back
#define ppb pop_back
int main() {
ll ans[10010] = {};
for (ll i = 1; i <= 100; ++i) {
for (ll j = 1; j <= 100; ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> pi;
typedef pair<ll, ll> pll;
#define fi first
#define se second
#define pb push_back
#define ppb pop_back
int main() {
ll ans[10010] = {};
for (ll i = 1; i <= 100; ++i) {
for (ll j = 1; j <= 100; ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 0, 27, 28, 69, 341, 342, 0, 16, 17, 85], ["+", 0, 27, 28, 69, 341, 342, 0, 16, 12, 13]] | 1 | 195 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
const double pi = acos(-1.0);
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int max(int a, int b) {
if (a > b) {
return a;
}
return b;
}
int min(int a, int b) {
if (a < b) {
return a;
}
return b;
}
int main(void) {
int n;
ci... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
const double pi = acos(-1.0);
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int max(int a, int b) {
if (a > b) {
return a;
}
return b;
}
int min(int a, int b) {
if (a < b) {
return a;
}
return b;
}
int main(void) {
int n;
ci... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 213 |
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, o, n) for (long long i = o; i < n; i++)
#define oneforall \
ios::sync_with_stdio(false); \
cin.tie(0);
#define all(v) (v).begin(), (v).end()
#defi... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, o, n) for (long long i = o; i < n; i++)
#define oneforall \
ios::sync_with_stdio(false); \
cin.tie(0);
#define all(v) (v).begin(), (v).end()
#defi... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 366 |
#include <iostream>
#include <vector>
const int Q = 10005;
using namespace std;
int main() {
int N;
int sum;
cin >> N;
int x, y, z;
x = y = z = 1;
vector<int> cnt(Q);
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
for (int k = 1; k <= 100; k++) {
// cout << x << " "... | #include <iostream>
#include <vector>
const int Q = 10005;
using namespace std;
int main() {
int N;
int sum;
cin >> N;
int x, y, z;
x = y = z = 1;
vector<int> cnt(Q);
for (int i = 1; i <= 105; i++) {
for (int j = 1; j <= 105; j++) {
for (int k = 1; k <= 105; k++) {
// cout << x << " "... | [["-", 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], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 193 |
n=int(input())
A=[0]*(n+1)
a=round(n**0.5)+1
for x in range(1,a):
for y in range(1,a):
for z in range(1,a):
b=x*x+y*y+z*z+x*y+y*z+z*x
if b<n:
A[b]+=1
for i in range(1,n+1):
print(A[i]) | n=int(input())
A=[0]*(n+1)
a=round(n**0.5)+1
for x in range(1,a):
for y in range(1,a):
for z in range(1,a):
b=x*x+y*y+z*z+x*y+y*z+z*x
if b<n+1:
A[b]+=1
for i in range(1,n+1):
print(A[i]) | [["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 72], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 114 |
n = int(input())
ret = [0 for _ in range(1,21)]
def f(x,y,z):
return x*x + y*y + z*z + x*y + y*z + x*z
for x in range(1,n+1):
for y in range(1,n+1):
for z in range(1,n+1):
if f(x,y,z) > n:
z = 1
break
ret[f(x,y,z)-1] += 1
if f(x,y,z) > n:
y = 1
break
if f(x,y,z) > n:
x = 1
break
for i i... | n = int(input())
ret = [0 for _ in range(1,n+1)]
def f(x,y,z):
return x*x + y*y + z*z + x*y + y*z + x*z
for x in range(1,n+1):
for y in range(1,n+1):
for z in range(1,n+1):
if f(x,y,z) > n:
z = 1
break
ret[f(x,y,z)-1] += 1
if f(x,y,z) > n:
y = 1
break
if f(x,y,z) > n:
x = 1
break
for i ... | [["-", 12, 658, 0, 659, 12, 652, 3, 4, 0, 612], ["+", 0, 659, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 659, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 659, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 164 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int64;
typedef vector<int> vec;
typedef vector<int64> vec64;
#define db(x) cout << "> " << #x << ": " << x << "\n";
#define ss cout << " ";
#define ct(x) cout << x;
#define nn cout << "\n";
#define cts(x) cout << x << " ";
#define ctn(x) cout << x << "\n";... | #include <bits/stdc++.h>
using namespace std;
typedef long long int64;
typedef vector<int> vec;
typedef vector<int64> vec64;
#define db(x) cout << "> " << #x << ": " << x << "\n";
#define ss cout << " ";
#define ct(x) cout << x;
#define nn cout << "\n";
#define cts(x) cout << x << " ";
#define ctn(x) cout << x << "\n";... | [["-", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13]] | 1 | 314 |
N = int(input())
num = [0]*N
for i in range(1,10**2 + 1):
for j in range(1,10**2 + 1):
for k in range(1,10**2 + 1):
ans = i**2 + j**2 + k**2 + i*j + j*k + k*i
if ans <= N:
num[ans] += 1
for i in range(N):
print(num[i])
| N = int(input())
num = [0]*N
for i in range(1,10**2 + 1):
for j in range(1,10**2 + 1):
for k in range(1,10**2 + 1):
ans = i**2 + j**2 + k**2 + i*j + j*k + k*i
if ans <= N:
num[ans - 1] += 1
for i in range(N):
print(num[i])
| [["+", 0, 1, 0, 677, 31, 206, 206, 657, 17, 33], ["+", 0, 1, 0, 677, 31, 206, 206, 657, 12, 612]] | 5 | 108 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
vector<int> v(21, 0);
for (int i = 1; i * i <= n; i++) {
for (int j = 1; j * j <= n; j++) {
for (int l = 1; l * l <= n; l++) {
long long... | #include <iostream>
#include <vector>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
cin >> n;
vector<int> v(n + 1, 0);
for (int i = 1; i * i <= n; i++) {
for (int j = 1; j * j <= n; j++) {
for (int l = 1; l * l <= n; l++) {
long l... | [["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 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]] | 1 | 177 |
package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
)
const (
BUFSIZE = 10000000
MOD = 1000000007
INF_INT = math.MaxInt32
INF_INT64 = math.MaxInt64
)
var rdr *bufio.Reader
func main() {
rdr = bufio.NewReaderSize(os.Stdin, BUFSIZE)
solve()
}
func solve() {
N := readint()
ans ... | package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
)
const (
BUFSIZE = 10000000
MOD = 1000000007
INF_INT = math.MaxInt32
INF_INT64 = math.MaxInt64
)
var rdr *bufio.Reader
func main() {
rdr = bufio.NewReaderSize(os.Stdin, BUFSIZE)
solve()
}
func solve() {
N := readint()
ans ... | [["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 19]] | 7 | 1,170 |
package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
)
const (
BUFSIZE = 10000000
MOD = 1000000007
INF_INT = math.MaxInt32
INF_INT64 = math.MaxInt64
)
var rdr *bufio.Reader
func main() {
rdr = bufio.NewReaderSize(os.Stdin, BUFSIZE)
solve()
}
var N int
func solve() {
N = readi... | package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
)
const (
BUFSIZE = 10000000
MOD = 1000000007
INF_INT = math.MaxInt32
INF_INT64 = math.MaxInt64
)
var rdr *bufio.Reader
func main() {
rdr = bufio.NewReaderSize(os.Stdin, BUFSIZE)
solve()
}
var N int
func solve() {
N = readi... | [["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 21]] | 7 | 1,240 |
import math
n=int(input())
ans=[0]*(10**5)
for x in range(int(math.sqrt(n))+1):
for y in range(int(math.sqrt(n))+1):
for z in range(int(math.sqrt(n))+1):
ans[((x+y)**2+(y+z)**2+(z+x)**2)//2-1]+=1
for i in range(n):
print(ans[i]) | import math
n=int(input())
ans=[0]*(10**5)
for x in range(1,int(math.sqrt(n))+1):
for y in range(1,int(math.sqrt(n))+1):
for z in range(1,int(math.sqrt(n))+1):
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, 21], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 124 |
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10 ** 8)
from itertools import accumulate
from itertools import permutations
from itertools import combinations
from collections import defaultdict
from collections import Counter
import fractions
import math
from collections import deque
from bisect import bise... | import sys
input=sys.stdin.readline
sys.setrecursionlimit(10 ** 8)
from itertools import accumulate
from itertools import permutations
from itertools import combinations
from collections import defaultdict
from collections import Counter
import fractions
import math
from collections import deque
from bisect import bise... | [["-", 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], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 200 |
import itertools
n=int(input())
mylist=[0]*n
a=1
while(6*(a**2)<n):
a+=1
l=list(range(1,3*a-1))
for c in itertools.product(l,repeat=3):
sum_num=sum(c)**2-(c[0]*c[1]+c[1]*c[2]+c[2]*c[0])
if sum_num<n:
mylist[sum_num-1]+=1
for i in mylist:
print(i) | import itertools
n=int(input())
mylist=[0]*n
a=1
while(6*(a**2)<n):
a+=1
l=list(range(1,3*a-1))
for c in itertools.product(l,repeat=3):
sum_num=sum(c)**2-(c[0]*c[1]+c[1]*c[2]+c[2]*c[0])
if sum_num<=n:
mylist[sum_num-1]+=1
for i in mylist:
print(i) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 127 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, int> P;
struct edge {
int to;
ll cost;
};
int dx[] = {-1, 1, 0, 0};
int dy[] = {0, 0, 1, -1};
int main() {
int n;
cin >> n;
vector<int> ans(n + 1, 0);
for (int i = 1; i * i <= n; i++) {
for (int j = 1; j * j <= n; j... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, int> P;
struct edge {
int to;
ll cost;
};
int dx[] = {-1, 1, 0, 0};
int dy[] = {0, 0, 1, -1};
int main() {
int n;
cin >> n;
vector<int> ans(n + 1, 0);
for (int i = 1; i * i <= n; i++) {
for (int j = 1; j * j <= n; j... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 210 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define N 1666666
int a[N];
map<int, int> mp;
signed main() {
for (int x = 1; x <= 200; x++)
for (int y = x; y <= 200; y++)
for (int z = y; z <= 200; z++) {
set<int> s;
s.insert(x);
s.insert(y);
s.insert(z);... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define N 1666666
int a[N];
map<int, int> mp;
signed main() {
for (int x = 1; x <= 200; x++)
for (int y = x; y <= 200; y++)
for (int z = y; z <= 200; z++) {
set<int> s;
s.insert(x);
s.insert(y);
s.insert(z);... | [["-", 0, 57, 75, 76, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 75, 76, 0, 1, 0, 11, 12, 13]] | 1 | 246 |
import sys
si = sys.stdin.readline
def main():
n = int(si())
ans = [0 for _ in range(n+1)]
for x in range(1, 100):
for y in range(1, 100):
for z in range(1, 100):
v = ((x+y+z)**2+x**2+y**2+z**2)//2
if v > 10000:
break
... | import sys
si = sys.stdin.readline
def main():
n = int(si())
ans = [0 for _ in range(10000+1)]
for x in range(1, 100):
for y in range(1, 100):
for z in range(1, 100):
v = ((x+y+z)**2+x**2+y**2+z**2)//2
if v > 10000:
break
... | [["-", 0, 659, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 659, 12, 652, 3, 4, 0, 657, 31, 612]] | 5 | 132 |
import java.util.Scanner;
public class Main {
public static final int MOD = 1000000007;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
var sb = new StringBuilder();
for (int l = 1; l <= n; l++) {
int cnt = 0;
for (int... | import java.util.Scanner;
public class Main {
public static final int MOD = 1000000007;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
var sb = new StringBuilder();
for (int l = 1; l <= n; l++) {
int cnt = 0;
for (int... | [["+", 8, 196, 0, 7, 15, 16, 31, 16, 17, 48], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 12, 22], ["-", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 0, 7, 8, 196, 0, 7, 15, 16, 12, 22], ["+", 8, 196, 0, 7, 15, 16, 31, 16, 31, 22]] | 3 | 230 |
#include <bits/stdc++.h>
using namespace std;
using namespace __detail;
typedef long long ll;
#define ar array
#define vi vector<int>
#define vvi vector<vector<int>>
#define vll vector<long long>
#define all(x) (x).begin(), (x).end()
#define en '\n'
#define FILL(x, v) memset(x, v, sizeof(x))
#define pb push_back
#defi... | #include <bits/stdc++.h>
using namespace std;
using namespace __detail;
typedef long long ll;
#define ar array
#define vi vector<int>
#define vvi vector<vector<int>>
#define vll vector<long long>
#define all(x) (x).begin(), (x).end()
#define en '\n'
#define FILL(x, v) memset(x, v, sizeof(x))
#define pb push_back
#defi... | [["-", 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 | 362 |
n = int(input())
r = range(1,101)
l = [0]*n
for x in r:
for y in r:
for z in r:
t = x*x+y*y+z*z+y*z+z*x+x*y
if t == n:
l[t-1] +=1
for i in l:
print(i)
| n = int(input())
r = range(1,101)
l = [0]*n
for x in r:
for y in r:
for z in r:
t = x*x+y*y+z*z+y*z+z*x+x*y
if t <= n:
l[t-1] +=1
for i in l:
print(i) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 85 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] results = new int[n + 1];
for (int i = 1; i <= 105; i++) {
for (int j = 1; j <= 105; j++) {
for (int k = 1; k <= 105; k++) {
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] results = new int[n + 1];
for (int i = 1; i <= 105; i++) {
for (int j = 1; j <= 105; j++) {
for (int k = 1; k <= 105; k++) {
... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 172 |
n=int(input())
ans = [0 for _ in range(10001)]
for i in range(101):
for j in range(101):
for k in range(101):
v = i*i + j*j + k*k + i*j + j*k + k*i
if v < 10001:
ans[v] += 1
for i in range(n):
print(ans[i+1]) | n=int(input())
ans = [0 for _ in range(10001)]
for i in range(1, 101):
for j in range(1, 101):
for k in range(1, 101):
v = i*i + j*j + k*k + i*j + j*k + k*i
if v < 10001:
ans[v] += 1
for i in range(n):
print(ans[i+1]) | [["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 97 |
from collections import defaultdict
n = int(input())
res = defaultdict(int)
for i in range(1, 105):
for j in range(1, 105):
for k in range(1, 105):
v = i*i + j*j + k*k + i*j + j*k + k*i
res[v] += 1
for i in range(n):
print(res.get(i, 0))
| from collections import defaultdict
n = int(input())
res = defaultdict(int)
for i in range(1, 105):
for j in range(1, 105):
for k in range(1, 105):
v = i*i + j*j + k*k + i*j + j*k + k*i
res[v] += 1
for i in range(1, n + 1):
print(res.get(i, 0))
| [["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 98 |
from itertools import (
accumulate, # 累積和のイテレータ
groupby, # 値をkey,同じ値の集まりをgroup
permutations, # 順列
combinations, # 組み合わせ
product, # 重複あり順列(直積, 深いネストにも使える)
combinations_with_replacement, # 重複あり組み合わせ
)
N = int(input())
ans = [0] * (10**9)
for i, j, k in product(list(range(1, 101)), repeat=... | from itertools import (
accumulate, # 累積和のイテレータ
groupby, # 値をkey,同じ値の集まりをgroup
permutations, # 順列
combinations, # 組み合わせ
product, # 重複あり順列(直積, 深いネストにも使える)
combinations_with_replacement, # 重複あり組み合わせ
)
N = int(input())
ans = [0] * (10**5)
for i, j, k in product(list(range(1, 101)), repeat=... | [["-", 0, 662, 12, 657, 12, 23, 0, 657, 12, 612], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 12, 612]] | 5 | 116 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<long> mem(N + 1, 0);
for (int i = 1; i < 110; i++) {
for (int j = 1; j < 110; j++) {
for (int k = 1; k < 110; k++) {
long v = i * i + j * j + k * k + i * j + j * k + k * i;
if (v <= N)
mem[... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<long> mem(N + 1, 0);
for (int i = 1; i < 110; i++) {
for (int j = 1; j < 110; j++) {
for (int k = 1; k < 110; k++) {
long v = i * i + j * j + k * k + i * j + j * k + k * i;
if (v <= N)
mem[... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 144 |
num = gets.to_i
# (x,y,z) = (99,1,1)
loop_count = 99
ans = Array.new(num, 0)
for x in 1..loop_count do
for y in 1..loop_count do
for z in 1..loop_count do
result = (x*x) + (y*y) + (z*z) + (x*y) + (y*z) + (z*x)
if result <= num
ans[result] += 1
end
end
end
end
ans.each do |a|
p... | num = gets.to_i
loop_count = 99 # (x,y,z) = (99,1,1)
ans = Array.new(num, 0)
for x in 1..loop_count do
for y in 1..loop_count do
for z in 1..loop_count do
result = (x*x) + (y*y) + (z*z) + (x*y) + (y*z) + (z*x)
if result <= num
ans[result-1] += 1
end
end
end
end
ans.each do |a|
... | [["+", 64, 749, 0, 755, 31, 742, 0, 738, 17, 33], ["+", 64, 749, 0, 755, 31, 742, 0, 738, 12, 612]] | 4 | 101 |
#include <math.h>
#include <stdio.h>
int main(void) {
int N, i, v, n;
int x, y, z;
int ans[10000];
scanf("%d", &N);
n = sqrt(N);
for (i = 0; i < N; i++) {
ans[i] = 0;
}
for (x = 1; x <= n; x++) {
for (y = 1; y <= n; y++) {
for (z = 1; z <= n; z++) {
v = (x * x) + (y * y) + (z * ... | #include <math.h>
#include <stdio.h>
int main(void) {
int N, i, v, n;
int x, y, z;
int ans[10000];
scanf("%d", &N);
n = sqrt(N);
for (i = 0; i <= N; i++) {
ans[i] = 0;
}
for (x = 1; x <= n; x++) {
for (y = 1; y <= n; y++) {
for (z = 1; z <= n; z++) {
v = (x * x) + (y * y) + (z *... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 206 |
n = int(input())
l = [0] * n
#for i in range(n):
for x in range(1,101):
for y in range(1,101):
for z in range(1,101):
a = x*x+y*y+z*z+x*y+y*z+z*x
if a < n:
l[a-1] += 1
for i in range(n):
print(l[i])
| n = int(input())
l = [0] * n
#for i in range(n):
for x in range(1,101):
for y in range(1,101):
for z in range(1,101):
a = x*x+y*y+z*z+x*y+y*z+z*x
if a <= n:
l[a-1] += 1
for i in range(n):
print(l[i])
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 99 |
#include "bits/stdc++.h"
using namespace std;
#define LOCAL
#define all(a) begin(a), end(a)
#define MOD 1000000007
#define PII pair<int, int>
#define REP(x, l, u) for (ll x = l; x < u; x++)
#define RED(x, l, u) for (ll x = l; x >= u; x--)
#define complete_unique(a) a.erase(unique(begin(a), end(a)), end(a))
#define ms... | #include "bits/stdc++.h"
using namespace std;
#define LOCAL
#define all(a) begin(a), end(a)
#define MOD 1000000007
#define PII pair<int, int>
#define REP(x, l, u) for (ll x = l; x < u; x++)
#define RED(x, l, u) for (ll x = l; x >= u; x--)
#define complete_unique(a) a.erase(unique(begin(a), end(a)), end(a))
#define ms... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 460 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, rN, x, y, z, s, i;
int *ct;
cin >> N;
ct = new int[N + 1];
for (i = 0; i <= N; i++)
ct[i] = 0;
rN = sqrt(N);
for (x = 1; x <= rN; x++)
for (y = 1; y <= rN; y++)
for (z = 1; z <= rN; z++) {
s = x * x + y * y + z * z + ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, rN, x, y, z, s, i;
int *ct;
cin >> N;
ct = new int[N + 1];
for (i = 0; i <= N; i++)
ct[i] = 0;
rN = sqrt(N);
for (x = 1; x <= rN; x++)
for (y = 1; y <= rN; y++)
for (z = 1; z <= rN; z++) {
s = x * x + y * y + z * z + ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 176 |
import numpy as np
n = int(input())
ans = [0 for _ in range(n+1)]
tmp = int(np.sqrt(n)+1)
for i in range(1, tmp):
for j in range(1, tmp):
for k in range(1, tmp):
v = i**2+j**2+k**2+i*j+i*k+j*k
if v < n:
ans[v]+=1
for a in ans[1:]:
print(a)
| import numpy as np
n = int(input())
ans = [0 for _ in range(n+1)]
tmp = int(np.sqrt(n)+1)
for i in range(1, tmp):
for j in range(1, tmp):
for k in range(1, tmp):
v = i**2+j**2+k**2+i*j+i*k+j*k
if v <= n:
ans[v]+=1
for a in ans[1:]:
print(a)
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 118 |
def calc(x, y, z):
return (x + y + z) ** 2 - x * y - y * z - z * x
def comb(x):
fact = 1
while x > 1:
fact *= x
x -= 1
return fact
N = int(input())
res = [0] * (N + 1)
for i in range(1, 100):
for j in range(i, 100):
for k in range(j, 100):
tmp = calc(i, j, k)
... | def calc(x, y, z):
return (x + y + z) ** 2 - x * y - y * z - z * x
def comb(x):
fact = 1
while x > 1:
fact *= x
x -= 1
return fact
N = int(input())
res = [0] * (N + 1)
for i in range(1, 100):
for j in range(i, 100):
for k in range(j, 100):
tmp = calc(i, j, k)
... | [["+", 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 | 158 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
long n, x;
long f[1000];
cin >> n;
for (int i = 0; i < n; i++) {
f[i] = 0;
}
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j++) {
for (int k = 1; x <= n; k++) {
x = i * i + j * j + k * k + i * j + j * k + k * i;
... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
long n, x;
long f[100000];
cin >> n;
for (int i = 0; i < n; i++) {
f[i] = 0;
}
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
for (int k = 1; x <= n; k++) {
x = i * i + j * j + k * k + i * j + j * k + k ... | [["-", 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, 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], ["-", 8, 9, 0, 7, 8, 9, 0, 9, 0, 45], ["-", 8, 9, 0, 7, 8, 9, 0, 9,... | 1 | 168 |
#include <bits/stdc++.h>
using namespace std;
#define el "\n"
vector<int> v(10050, 0);
void solution() {
for (int x = 1; x <= 60; ++x) {
for (int y = 1; y <= 60; ++y) {
for (int z = 1; z <= 60; ++z) {
int sol = x * x + y * y + z * z + z * x + x * y + x * z;
if (sol < 10050)
v[sol]... | #include <bits/stdc++.h>
using namespace std;
#define el "\n"
vector<int> v(10050, 0);
void solution() {
for (int x = 1; x <= 101; ++x) {
for (int y = 1; y <= 101; ++y) {
for (int z = 1; z <= 101; ++z) {
int sol = x * x + y * y + z * z + z * x + x * y + y * z;
if (sol < 10050)
v[s... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 43, 49, 50, 51, 16, 12, 16, 31, 22], ["+", 0, 43, 49, 50, 51, 16, 12, 16, 31, 22]] | 1 | 158 |
#include <stdio.h>
int f(int x, int y, int z) {
return x * x + y * y + z * z + x * y + y * z + z * x;
}
int check(int n) {
int A[100][3], m = 0;
int x = 1, y = 1, z = 1;
while (n >= f(x, y, z)) {
while (n >= f(x, y, z)) {
while (n >= f(x, y, z)) {
if (n == f(x, y, z)) {
A[m][0] = x... | #include <stdio.h>
int f(int x, int y, int z) {
return x * x + y * y + z * z + x * y + y * z + z * x;
}
int check(int n) {
int A[100][3], m = 0;
int x = 1, y = 1, z = 1;
while (n >= f(x, y, z)) {
while (n >= f(x, y, z)) {
while (n >= f(x, y, z)) {
if (n == f(x, y, z)) {
A[m][0] = x... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 367 |
N = int(input())
list = [0]*1001
for i in range(1,100):
for j in range(1,100):
a = i*i + j*j + i*j
for k in range(1,100):
a = i*i + j*j + k*k + i*j +j*k + i*k
if a <= N:
list[a] += 1
for i in range(1,N+1):
print(list[i]) | N = int(input())
list = [0]*(N+1)
for i in range(1,100):
for j in range(1,100):
a = i*i + j*j + i*j
for k in range(1,100):
a = i*i + j*j + k*k + i*j +j*k + i*k
if a <= N:
list[a] += 1
for i in range(1,N+1):
print(list[i]) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 31, 22], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 17, 72], ["+", 0, 662, 12, 657, 12, 23, 0, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]] | 5 | 113 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> a(N);
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
for (int k = 1; k <= 100; k++) {
int b = i * i + j * j + k * k + i * j + j * k + k * i;
if (b <= N) {
a.at(b)++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int> a(N + 1);
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
for (int k = 1; k <= 100; k++) {
int b = i * i + j * j + k * k + i * j + j * k + k * i;
if (b <= N) {
a.at(b)+... | [["+", 0, 43, 49, 50, 51, 4, 0, 16, 17, 72], ["+", 0, 43, 49, 50, 51, 4, 0, 16, 12, 13]] | 1 | 146 |
n = int(input())
ans = [0] * (n+1)
f = int(math.sqrt(n)) + 1
for x in range(1, f):
for y in range(1, f):
for z in range(1, f):
v = (x ** 2) + (y ** 2) + (z ** 2) + (x * y) + (y * z) + (z * x)
if v < n + 1:
ans[v] += 1
for i in range(n):
print(ans[i+1... | import math
n = int(input())
ans = [0] * (n+1)
f = int(math.sqrt(n)) + 1
for x in range(1, f):
for y in range(1, f):
for z in range(1, f):
v = (x ** 2) + (y ** 2) + (z ** 2) + (x * y) + (y * z) + (z * x)
if v < n + 1:
ans[v] += 1
for i in range(n):
... | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 129 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// input
int n = sc.nextInt();
// output
int[] array = new int[n];
for (int x = 1; x * x <= n; x++) {
for (int y = 1; y * y <= n; y++) {
for (int z = 1; ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// input
int n = sc.nextInt();
// output
int[] array = new int[n];
for (int x = 1; x * x <= n; x++) {
for (int y = 1; y * y <= n; y++) {
for (int z = 1; ... | [["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 33], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 12, 499], ["+", 0, 1, 0, 27, 0, 504, 71, 16, 17, 33], ["+", 0, 1, 0, 27, 0, 504, 71, 16, 12, 499]] | 3 | 196 |
def main_v2():
N = int(input())
f_lst = [0 for _ in range(N)]
for x in range(1, 101):
for y in range(1, 101):
for z in range(1, 101):
ans = x*x + y*y + z*z + x*y + y*z + z*x
if ans < N:
f_lst[ans - 1] += 1
for i in range(N):
... | def main_v2():
N = int(input())
f_list = [0 for _ in range(N)]
for x in range(1, 101):
for y in range(1, 101):
for z in range(1, 101):
ans = x*x + y*y + z*z + x*y + y*z + z*x
if ans <= N:
f_list[ans - 1] += 1
for i in range(N):
... | [["-", 0, 14, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 14, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["-", 64, 196, 0, 1, 0, 677, 31, 206, 51, 22], ["+", 64, 196, 0, 1, 0, 677, 31, 206, 51, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 206, 51, 22], ["... | 5 | 118 |
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ans[10001] = {0};
for (int i = 1; i < 105; i++) {
for (int j = 1; j < 105; j++) {
for (int k = 1; k < 105; k++) {
int h = i * i + j * j + k * k + i * j + j * k + k * i;
if (h <= 10000)
ans[h]++;
... | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ans[10001] = {0};
for (int i = 1; i < 105; i++) {
for (int j = 1; j < 105; j++) {
for (int k = 1; k < 105; k++) {
int h = i * i + j * j + k * k + i * j + j * k + k * i;
if (h <= 10000)
ans[h]++;
... | [["+", 31, 16, 12, 69, 341, 342, 0, 16, 17, 72], ["+", 31, 16, 12, 69, 341, 342, 0, 16, 12, 13]] | 1 | 144 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int N;
cin >> N;
int f[1001]{};
for (int x = 1; x <= 100; x++) {
for (int y = 1; y <= 100; y++) {
for (int z = 1; z <= 100; z++) {
int t = x * x + y * y + z * z + x * y + y * z + z * x;
if (t > 1000)
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int N;
cin >> N;
int f[10001]{};
for (int x = 1; x <= 100; x++) {
for (int y = 1; y <= 100; y++) {
for (int z = 1; z <= 100; z++) {
int t = x * x + y * y + z * z + x * y + y * z + z * x;
if (t > 10001)
... | [["-", 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], ["-", 0, 7, 8, 9, 0, 57, 64, 116, 0, 117], ["+", 0, 7, 8, 9, 0, 57, 64, 93, 0, 94]] | 1 | 151 |
n = int(input())
ans = [0 for i in range(10001)]
for i in range(105):
for j in range(105):
for m in range(105):
v = i**2+j**2+m**2+i*j+j*m+m*i
#print(v)
if v<10001:
ans[v]+=1
#print(count)
for i in range(n):
print(ans[i+1]) | n = int(input())
ans = [0 for i in range(10001)]
for i in range(1,105):
for j in range(1,105):
for m in range(1,105):
v = i**2+j**2+m**2+i*j+j*m+m*i
#print(v)
if v<10001:
ans[v]+=1
#print(count)
for i in range(n):
print(ans[i+1])
| [["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 99 |
#include <bits/stdc++.h>
using namespace std;
#define FAST() \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)
int Check(i... | #include <bits/stdc++.h>
using namespace std;
#define FAST() \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)
int Check(i... | [["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13]] | 1 | 180 |
#include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define printfloat(x) cout << fixed << setprecision(7) << (x) << endl... | #include <algorithm>
#include <bitset>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define printfloat(x) cout << fixed << setprecision(7) << (x) << endl... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 31, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 31, 13]] | 1 | 295 |
import math
n = int(input())
highest = int(math.sqrt(n))
l = [0]*n
cal = 0
for x in range(1, highest+1):
for y in range(1, highest+1):
for z in range(1, highest+1):
cal = x**2 + y**2 + z**2 + x*y + y*z + z*x
if cal > n+1:
continue
else:
l[cal-1] += 1
for i in range(len... | import math
n = int(input())
highest = int(math.sqrt(n))
l = [0]*n
cal = 0
for x in range(1, highest+1):
for y in range(1, highest+1):
for z in range(1, highest+1):
cal = x**2 + y**2 + z**2 + x*y + y*z + z*x
if cal > n:
continue
else:
l[cal-1] += 1
for i in range(len(l... | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 72], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 128 |
#include "bits/stdc++.h"
using namespace std;
#define ll long long
#define pb push_back
#define all(_obj) _obj.begin(), _obj.end()
#define F first
#define S second
#define INF 1e18
#define pll pair<ll, ll>
#define vll vector<ll>
#define deb(x) cerr << #x << ' ' << '=' << ' ' << x << '\n'
ll n, m, a, b, c, k, temp, x, y... | #include "bits/stdc++.h"
using namespace std;
#define ll long long
#define pb push_back
#define all(_obj) _obj.begin(), _obj.end()
#define F first
#define S second
#define INF 1e18
#define pll pair<ll, ll>
#define vll vector<ll>
#define deb(x) cerr << #x << ' ' << '=' << ' ' << x << '\n'
ll n, m, a, b, c, k, temp, x, y... | [["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 15, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["-", 15, 16, 31, 16, 31, 16, 12, 16, 17, 48], ["-", 8, 9, 0, 7, 15, 16, 31, 16, 17, 72], ["-", 0, 7, 15, 16, 31, 16, 12, 16, 31, 22]] | 1 | 477 |
def main():
n = int(input())
f = [0 for i in range(n+1)]
Max = n**0.5
Max = int(Max//1)
for x in range(1,Max):
for y in range(1,Max):
for z in range(1,Max):
tmp = x**2+y**2+z**2+x*y+y*z+x*z
if tmp<n:
f[tmp] += 1
for i in ra... | def main():
n = int(input())
f = [0 for i in range(n+1)]
Max = n**0.5
Max = int(Max//1)
for x in range(1,Max):
for y in range(1,Max):
for z in range(1,Max):
tmp = x**2+y**2+z**2+x*y+y*z+x*z
if tmp<=n:
f[tmp] += 1
for i in r... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 128 |
def input_int():
return map(int, input().split())
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
N=one_int()
def solve(n):
ret = {i:[] for i in range(n+1)}
X=int(n**(1/2) +0.5)+1
Y=int(n**(1/2) +0.5)+1
Z=int(n... | def input_int():
return map(int, input().split())
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
N=one_int()
def solve(n):
ret = {i:[] for i in range(n+1)}
X=int(n**(1/2) +0.5)+1
Y=int(n**(1/2) +0.5)+1
Z=int(n... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18]] | 5 | 257 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mod 1000000007
#define YES \
cout << "YES" \
<< "\n";
#define NO ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define mod 1000000007
#define YES \
cout << "YES" \
<< "\n";
#define NO ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 197 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
vector<int> v(n + 1);
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 +... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
vector<int> v(n + 1);
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 +... | [["-", 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 | 178 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
void Digvijay() {
int n;
cin >> n;
vector<int> a(1000000, 0);
for (int i = 1; i < 201; i++) {
for (int j = 1; j < 201; j++) {
for (int k = 1; k < 201; k++) {
int val = i * i + j * j + k * k + i * j + j * k + k * i;
a[v... | #include <bits/stdc++.h>
using namespace std;
#define int long long
void Digvijay() {
int n;
cin >> n;
vector<int> a(1000000, 0);
for (int i = 1; i < 201; i++) {
for (int j = 1; j < 201; j++) {
for (int k = 1; k < 201; k++) {
int val = i * i + j * j + k * k + i * j + j * k + k * i;
a[v... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 194 |
#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define pb push_back
#define f first
#define s second
signed main() {
int n;
cin >> n;
int arr[n + 1] = {0};
int r = sqrt(n);
for (int i = 1; i <= r; i++) {
for (int j = i; j <= r; j++) {
for (int k = j; k <= r; k++) {
... | #include <bits/stdc++.h>
using namespace std;
#define int long long int
#define pb push_back
#define f first
#define s second
signed main() {
int n;
cin >> n;
int arr[n + 1] = {0};
int r = sqrt(n);
for (int i = 1; i <= r; i++) {
for (int j = i; j <= r; j++) {
for (int k = j; k <= r; k++) {
... | [["-", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 107], ["-", 75, 76, 0, 57, 64, 1, 0, 11, 17, 32], ["+", 75, 76, 0, 57, 64, 1, 0, 11, 17, 107], ["-", 0, 57, 75, 76, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 75, 76, 0, 1, 0, 11, 17, 107]] | 1 | 227 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define f(i, x, n) for (int i = x; i < n; i++)
#define all(c) c.begin(), c.end()
const int MOD = 1e9 + 7, N = 5e5 + 10;
const int LINF = LLONG_MAX;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
f(i, 1, n ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define f(i, x, n) for (int i = x; i < n; i++)
#define all(c) c.begin(), c.end()
const int MOD = 1e9 + 7, N = 5e5 + 10;
const int LINF = LLONG_MAX;
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin >> n;
f(i, 1, n ... | [["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 220 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
int N, b;
cin >> N;
b = pow(N, 1.0 / 3.0) / 1 + 1;
vector<int> vec(N * 10000);
for (int i = 1; i < b + 1; i++) {
for (int j = 1; j < b + 1; j++) {
for (int k = 1; k < b + 1; k++) {
vec.at(i * i + j * j + k * k + i ... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
int N, b;
cin >> N;
b = pow(N, 1.0 / 2.0) / 1 + 1;
vector<int> vec(N * 10000);
for (int i = 1; i < b + 1; i++) {
for (int j = 1; j < b + 1; j++) {
for (int k = 1; k < b + 1; k++) {
vec.at(i * i + j * j + k * k + i ... | [["-", 31, 16, 31, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 16, 31, 2, 3, 4, 0, 16, 12, 13]] | 1 | 185 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int f(int x, int y, int z) {
return pow(x, 2) + pow(y, 2) + pow(z, 2) + (x * y) + (y * z) + (z * x);
}
int main() {
int N;
cin >> N;
int mx = sqrt(N / 6.0) + 2;
map<int, int> freq;
rep... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int f(int x, int y, int z) {
return pow(x, 2) + pow(y, 2) + pow(z, 2) + (x * y) + (y * z) + (z * x);
}
int main() {
int N;
cin >> N;
int mx = sqrt(N / 6.0) + 60;
map<int, int> freq;
re... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 179 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
cin >> N;
int f[10010] = {0};
int x, y, z;
for (int i = 0; i < N; i++) {
for (x = 1; x * x < i; x++) {
for (y = 1; x * x + y * y + x * y < i; y++) {
for (z = 1; x * x + y * y + z * z + x * y + y * z + z * x <= i; z++) {... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int N;
cin >> N;
int f[10010] = {0};
int x, y, z;
for (int i = 1; i <= N; i++) {
for (x = 1; x * x < i; x++) {
for (y = 1; x * x + y * y + x * y < i; y++) {
for (z = 1; x * x + y * y + z * z + x * y + y * z + z * x <= i; z++) ... | [["-", 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 | 194 |
#include <math.h>
#include <stdio.h>
int main(void) {
int N;
int i, x, y, z, f[1001] = {}, lhs;
scanf("%d", &N);
for (x = 1; x < sqrt(N); x++) {
for (y = 1; y < sqrt(N); y++) {
for (z = 1; z < sqrt(N); z++) {
lhs = x * x + y * y + z * z + x * y + y * z + z * x;
if (lhs <= N)
... | #include <math.h>
#include <stdio.h>
int main(void) {
int N;
int i, x, y, z, f[10001] = {}, lhs;
scanf("%d", &N);
for (x = 1; x < sqrt(N); x++) {
for (y = 1; y < sqrt(N); y++) {
for (z = 1; z < sqrt(N); z++) {
lhs = x * x + y * y + z * z + x * y + y * z + z * x;
if (lhs <= N)
... | [["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13]] | 0 | 166 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef long long ll;
int asc(const void *a, const void *b) { return *(int *)a - *(int *)b; }
int main() {
ll n, count[10001] = {};
scanf("%lld", &n);
ll s = pow(n, 0.5);
for (int i = 1; i <= s; i++) {
for (int j = 1; j <= s; j++... | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef long long ll;
int asc(const void *a, const void *b) { return *(int *)a - *(int *)b; }
int main() {
ll n, count[1000001] = {};
scanf("%lld", &n);
ll s = pow(n, 0.5);
for (int i = 1; i <= s; i++) {
for (int j = 1; j <= s; j... | [["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13]] | 0 | 186 |
n = int(input())
xyz = [[[0 for i in range(101)] for j in range(101)] for k in range(101)]
ans = [0 for i in range(n+1)]
def gen_n(x, y, z):
return x*2 + y*2 + z*2 + x*y + y*z + z*x
for i in range(1, 101):
for j in range(1, 101):
for k in range(1, 101):
num = gen_n(i, j, k)
if n... | n = int(input())
xyz = [[[0 for i in range(101)] for j in range(101)] for k in range(101)]
ans = [0 for i in range(n+1)]
def gen_n(x, y, z):
return x**2 + y**2 + z**2 + x*y + y*z + z*x
for i in range(1, 101):
for j in range(1, 101):
for k in range(1, 101):
num = gen_n(i, j, k)
i... | [["-", 31, 657, 31, 657, 31, 657, 31, 657, 17, 48], ["+", 31, 657, 31, 657, 31, 657, 31, 657, 17, 578], ["-", 31, 657, 31, 657, 31, 657, 12, 657, 17, 48], ["+", 31, 657, 31, 657, 31, 657, 12, 657, 17, 578]] | 5 | 156 |
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <cstring>
#include <deque> // deque
#include <fl... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cmath>
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <cstring>
#include <deque> // deque
#include <fl... | [["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 839 |
def f(xyz)
xyz[0]*xyz[0] + xyz[1]*xyz[1] + xyz[2]*xyz[2] + xyz[0]*xyz[1] + xyz[1]*xyz[2] + xyz[2]*xyz[0]
end
def countCombination(xyz)
c = xyz.uniq.size
if c == 1 then
return 1
elsif c == 2 then
return 3
else
return 6
end
end
n = gets.chomp.to_i
MAX = 1000000
ans = Arra... | def f(xyz)
xyz[0]*xyz[0] + xyz[1]*xyz[1] + xyz[2]*xyz[2] + xyz[0]*xyz[1] + xyz[1]*xyz[2] + xyz[2]*xyz[0]
end
def countCombination(xyz)
c = xyz.uniq.size
if c == 1 then
return 1
elsif c == 2 then
return 3
else
return 6
end
end
n = gets.chomp.to_i
MAX = 1000000
ans = Ar... | [["-", 0, 652, 486, 516, 0, 741, 0, 475, 444, 612], ["+", 0, 652, 486, 516, 0, 741, 0, 475, 444, 612]] | 4 | 161 |
from collections import Counter
n=int(input())
cnt=0
ans=[]
for i in range(2,int((2*n)**0.5)+1):
for j in range(2,int((2*n)**0.5)+1):
for k in range(2,int((2*n)**0.5)+1):
if (i*i + j*j + k*k)%2==0 and (i*i + j*j + k*k)<=2*n and (i+j-k>1) and (i+k-j>1) and (k+j-i>1):
ans.append((i... | from collections import Counter
n=int(input())
cnt=0
ans=[]
for i in range(2,int((2*n)**0.5)+1):
for j in range(2,int((2*n)**0.5)+1):
for k in range(2,int((2*n)**0.5)+1):
if (i*i + j*j + k*k)%2==0 and (i*i + j*j + k*k)<=2*n and (i+j-k>1) and (i+k-j>1) and (k+j-i>1):
ans.append((i... | [["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 195 |
import sys
input = lambda: sys.stdin.readline().rstrip()
from collections import deque
N = int(input())
ans = [0] * (N+5)
queue = deque()
queue.append((1,1,1))
total = 0
seen = set()
seen.add((1,1,1))
while queue:
x,y,z = queue.popleft()
total = x ** 2 + y ** 2 + z ** 2 + x*y + y*z + z*x
if total - 1 <=... | import sys
input = lambda: sys.stdin.readline().rstrip()
from collections import deque
N = int(input())
ans = [0] * (N+5)
queue = deque()
queue.append((1,1,1))
total = 0
seen = set()
seen.add((1,1,1))
while queue:
x,y,z = queue.popleft()
total = x ** 2 + y ** 2 + z ** 2 + x*y + y*z + z*x
if total - 1 <=... | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 33], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 57, 15, 666, 0, 657, 31, 657, 31, 612], ["+", 0, 57, 15, 666, 0, 657, 31, 657, 17, 48], ["+", 8, 196, 0, 57, 15, 666, 0, ... | 5 | 280 |
import numpy as np
N = int(input())
output = np.zeros(N)
for x in range(1,int(np.sqrt(N-2))+1):
for y in range(1,x+1):
if x**2 + y**2 + x*y > N:
break
for z in range(1,y+1):
index = x**2 + y**2 + z**2 + x*y + y*z + z*x
if index > N:
... | import numpy as np
N = int(input())
output = np.zeros(N)
for x in range(1,int(np.sqrt(N))+1):
for y in range(1,x+1):
if x**2 + y**2 + x*y > N:
break
for z in range(1,y+1):
index = x**2 + y**2 + z**2 + x*y + y*z + z*x
if index > N:
... | [["-", 3, 4, 0, 652, 3, 4, 0, 657, 17, 33], ["-", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 185 |
import math
n = int(input())
nlist = [0]*n
for x in range(1,math.ceil(math.sqrt(n-1)-1)):
for y in range(1,math.ceil(math.sqrt(n-1)-1)):
for z in range(math.ceil(math.sqrt(n-1)-1)):
temp = x**2 + y**2 + z**2 + x*y + y*z + z*x
if temp > n:
break
else:
... | import math
n = int(input())
nlist = [0]*n
for x in range(1,math.ceil(math.sqrt(n-1)-1)):
for y in range(1,math.ceil(math.sqrt(n-1)-1)):
for z in range(1,math.ceil(math.sqrt(n-1)-1)):
temp = x**2 + y**2 + z**2 + x*y + y*z + z*x
if temp > n:
break
else:
... | [["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 137 |
import math
from itertools import combinations_with_replacement
def calc(t):
return t[0]*t[0] + t[1]*t[1] + t[2]*t[2] + t[0]*t[1] + t[1]*t[2] + t[2]*t[0]
n = int(input())
ans = [0]*n
n_root = math.floor(math.sqrt(n))
for pattern in combinations_with_replacement(range(1, n_root + 1), 3):
pattern = list(patte... | import math
from itertools import combinations_with_replacement
def calc(t):
return t[0]*t[0] + t[1]*t[1] + t[2]*t[2] + t[0]*t[1] + t[1]*t[2] + t[2]*t[0]
n = int(input())
ans = [0]*n
n_root = math.floor(math.sqrt(n))+1
for pattern in combinations_with_replacement(range(1, n_root + 1), 3):
pattern = list(pat... | [["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 217 |
a = [0] * 100000
for i in range(1, 10):
for j in range(i, 10):
for k in range(j, 10):
tmp = 0
if i != j and j != k:
tmp = 6
elif i == j and j != k:
tmp = 3
elif i != j and j == k:
tmp = 3
elif i == k... | a = [0] * 100000
for i in range(1, 101):
for j in range(i, 101):
for k in range(j, 101):
tmp = 0
if i != j and j != k:
tmp = 6
elif i == j and j != k:
tmp = 3
elif i != j and j == k:
tmp = 3
elif 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 | 151 |
n = int(input())
l = []
ls = [0]*(n+1)
def cul(x,y,z):
return x**2+y**2+z**2+x*y+y*z+z*x
for i in range(1,int(n**0.5)):
for j in range(1,int(n**0.5)):
for k in range(1,int(n**0.5)):
a = cul(i,j,k)
if a < n:
ls[a] += 1
for i in ls[1::]:
print(i) | n = int(input())
l = []
ls = [0]*(n+1)
def cul(x,y,z):
return x**2+y**2+z**2+x*y+y*z+z*x
for i in range(1,int(n**0.5)):
for j in range(1,int(n**0.5)):
for k in range(1,int(n**0.5)):
a = cul(i,j,k)
if a <= n:
ls[a] += 1
for i in ls[1::]:
print(i) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 137 |
from itertools import combinations, combinations_with_replacement
from math import sqrt
n = int(input())
ans = [0] * (n + 1)
for x, y, z in combinations_with_replacement(range(1, int(sqrt(n))), 3):
i = x ** 2 + y ** 2 + z ** 2 + x * y + y * z + z * x
if i <= n:
if x == y == z:
ans[i] += 1
... | from itertools import combinations, combinations_with_replacement
from math import sqrt
n = int(input())
ans = [0] * (n + 1)
for x, y, z in combinations_with_replacement(range(1, int(sqrt(n))), 3):
i = x ** 2 + y ** 2 + z ** 2 + x * y + y * z + z * x
if i <= n:
if x == y == z:
ans[i] += 1
... | [["-", 15, 652, 3, 4, 0, 658, 8, 681, 0, 372]] | 5 | 160 |
import math
def func(x,y,z):
ans = x**2 + y**2 + z**2+ x*y + y*z + z*x
return ans
N = int(input())
array_N = [0]*N
root_n = round(math.sqrt(n+1))
for x in range(1,root_n):
for y in range(1,root_n):
for z in range(1,root_n):
if func(x,y,z) <= N:
array_N[func(x,y,z)-1] =... |
import math
def func(x,y,z):
ans = x**2 + y**2 + z**2+ x*y + y*z + z*x
return ans
N = int(input())
array_N = [0]*N
root_n = round(math.sqrt(N+1))
for x in range(1,root_n):
for y in range(1,root_n):
for z in range(1,root_n):
if func(x,y,z) <= N:
array_N[func(x,y,z)-1] =... | [["-", 3, 4, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 31, 22]] | 5 | 153 |
n = int(input())
num = [0]*(10**5+1)
for i in range(1,51):
for j in range(1,51):
for k in range(1,51):
num[(i**2 + j**2 + k**2 + i*j + j*k + k*i)] += 1
for i in range(1,n+1):
print(num[i]) | n = int(input())
num = [0]*(10**5+1)
for i in range(1,101):
for j in range(1,101):
for k in range(1,101):
num[(i**2 + j**2 + k**2 + i*j + j*k + k*i)] += 1
for i in range(1,n+1):
print(num[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 | 100 |
N = int(input())
Xlist = [0]*(10**4)
for i in range(100):
for j in range (60):
for k in range(60):
A = (i + j + 2)**2 + (k + j + 2)**2 + (i + k + 2)**2
if ((A % 2) == 0)and(A <= 20000):
Xlist[(A//2 -1)] += 1
for a in range (N):
print(Xlist[a]) | N = int(input())
Xlist = [0]*(10**4)
for i in range(100):
for j in range (100):
for k in range(100):
A = (i + j + 2)**2 + (k + j + 2)**2 + (i + k + 2)**2
if ((A % 2) == 0)and(A <= 20000):
Xlist[(A//2 -1)] += 1
for a in range (N):
print(Xlist[a])
| [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 118 |
<?php
$n = trim(fgets(STDIN));
$array = [];
for ($x = 1;$x < 99;++$x) {
for ($y = 1;$y < 99;++$y) {
for ($z = 1;$z < 99;++$z) {
$ans = $x ** 2 + $y ** 2 + $z ** 2 + $x * $y + $x * $z + $y * $z;
if ($ans <= 10000) {
@++$array[$ans];
}
}
}
}
for... | <?php
$n = trim(fgets(STDIN));
$array = [];
for ($x = 1;$x < 99;++$x) {
for ($y = 1;$y < 99;++$y) {
for ($z = 1;$z < 99;++$z) {
$ans = $x ** 2 + $y ** 2 + $z ** 2 + $x * $y + $x * $z + $y * $z;
if ($ans <= 10000) {
@++$array[$ans];
}
}
}
}
for... | [["-", 36, 36, 0, 493, 0, 7, 0, 16, 17, 18], ["+", 36, 36, 0, 493, 0, 7, 0, 16, 17, 19]] | 6 | 179 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
long n;
cin >> n;
for (long l = 0; l <= n; l++) {
long cnt = 0;
for (long i = 1; i <= 100; i++) {
long ii = i * i;
for (long j = 1; j <= ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
long n;
cin >> n;
for (long l = 1; l <= n; l++) {
long cnt = 0;
for (long i = 1; i <= 100; i++) {
long ii = i * i;
for (long j = 1; j <= ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 210 |
n = int(input())
#print(n)
ptn = [0 for _ in range(20000)]
for x in range(1, 125):
for y in range(1, 125):
for z in range(1, 125):
if x+y+z <= 101:
ptn[x**2 + y**2 + z**2 + x*y + y*z + x*z] += 1
for i in range(1, n+1):
print(ptn[i]) | n = int(input())
#print(n)
ptn = [0 for _ in range(20000)]
for x in range(1, 125):
for y in range(1, 125):
for z in range(1, 125):
if x+y+z <= 125:
ptn[x**2 + y**2 + z**2 + x*y + y*z + x*z] += 1
for i in range(1, n+1):
print(ptn[i])
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 107 |
N = int(input())
list=[0]*N
for x in range(1,N+1):
if x * x+2*x+3 > N:
break
for y in range(1,N+1):
if x * x + y * y + x * y+x+y+1 > N:
break
for z in range(1, N + 1):
val=x * x + y * y + z * z + x * y + y * z + z * x
if val >= N:
brea... | N = int(input())
list=[0]*N
for x in range(1,N+1):
if x * x+2*x+3 > N:
break
for y in range(1,N+1):
if x * x + y * y + x * y+x+y+1 > N:
break
for z in range(1, N + 1):
val=x * x + y * y + z * z + x * y + y * z + z * x
if val > N:
break... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47]] | 5 | 148 |
import math
n = int(input())
ans = [0]*n
max = int(math.sqrt(max(n,1)))+1
for x in range(1,max):
for y in range(1,max):
for z in range(1,max):
ns = x**2 + y**2 + z**2 + x*y + y*z + z*x
if ns < n:
ans[ns-1] += 1
for a in range(n):
print(ans[a])
| import math
n = int(input())
ans = [0]*n
max = int(math.sqrt(max(n,1)))+1
for x in range(1,max):
for y in range(1,max):
for z in range(1,max):
ns = x**2 + y**2 + z**2 + x*y + y*z + z*x
if ns <= n:
ans[ns-1] += 1
for a in range(n):
print(ans[a])
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 118 |
#include <bits/stdc++.h>
using namespace std;
int arr[100005];
int sum[100005];
int main() {
int num;
int count = 0;
int n, i, j, l;
scanf("%d", &n);
int m = sqrt(2 * n / 3) + 1;
memset(arr, 0, sizeof(arr));
for (i = 1; i <= m; i++) {
for (j = 1; j <= m; j++) {
for (l = 1; l <= m; l++) {
... | #include <bits/stdc++.h>
using namespace std;
int arr[100005];
int sum[100005];
int main() {
int num;
int count = 0;
int n, i, j, l;
scanf("%d", &n);
int m = sqrt(n);
memset(arr, 0, sizeof(arr));
for (i = 1; i <= m; i++) {
for (j = 1; j <= m; j++) {
for (l = 1; l <= m; l++) {
num = i * i... | [["-", 31, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["-", 31, 2, 3, 4, 0, 16, 31, 16, 17, 48], ["-", 51, 16, 31, 2, 3, 4, 0, 16, 17, 85], ["-", 51, 16, 31, 2, 3, 4, 0, 16, 12, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 182 |
#include <bits/stdc++.h> //stayCalmNeverSettle
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define endl "\n"
#define pb push_back
#define x first
#define y second
using namespace std;
typedef long long ll;
const ll M = 1e9 + 7;
const int N = 110;
int arr[N];
int main() {
ios::sync_with_stdio(0);
cin.tie(0... | #include <bits/stdc++.h> //stayCalmNeverSettle
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define endl "\n"
#define pb push_back
#define x first
#define y second
using namespace std;
typedef long long ll;
const ll M = 1e9 + 7;
const int N = 110;
int arr[N];
int main() {
ios::sync_with_stdio(0);
cin.tie(0... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 213 |
#include <algorithm>
#include <bits/stdc++.h>
#include <functional>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define DEBUG
#define PI 3.141592653589793238462643383279
#define _GLIBCXX_DEBUG
#ifdef DEBUG
#define s(...) show(__VA_ARGS__);
#define sl(...) ... | #include <algorithm>
#include <bits/stdc++.h>
#include <functional>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define DEBUG
#define PI 3.141592653589793238462643383279
#define _GLIBCXX_DEBUG
#ifdef DEBUG
#define s(...) show(__VA_ARGS__);
#define sl(...) ... | [["-", 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 | 585 |
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n;
cin >> n;
vector<ll> v(n + 1, 0);
for (ll x = 1; x <= sqrt(n - 2) - 1; x++) {
for (ll y = 1; y <= sqrt(n - 2) - 1; y++) {
for (ll z = 1; z <= sqrt(n - 2) - 1; z++) {
if (x * x + y * y + z * z + x * y ... | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
ll n;
cin >> n;
vector<ll> v(n + 1, 0);
for (ll x = 1; x <= sqrt(n - 2) - 1; x++) {
for (ll y = 1; y <= sqrt(n - 2) - 1; y++) {
for (ll z = 1; z <= sqrt(n - 2) - 1; z++) {
if (x * x + y * y + z * z + x * y ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 191 |
#include <bits/stdc++.h>
#include <bitset>
#include <sstream>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int MX = 100005;
int main() {
int N;
cin >> N;
vector<int> a(10000, 0);
int atai = 0;
for (int i = 1; i < 100; i++) {
... | #include <bits/stdc++.h>
#include <bitset>
#include <sstream>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int MX = 100005;
int main() {
int N;
cin >> N;
vector<int> a(10000, 0);
int atai = 0;
for (int i = 1; i < 100; i++) {
... | [["-", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 199 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 100000000;
const ll half_inf = 0x3f3f3f3f;
const ll inf = 0x7fffffff;
const ll mod = 998244353;
const ll maxn = 2000005;
int m[50005] = {0};
int main() {
int n;
scanf("%d", &n);
for (int j1 = 1; j1 < 100; j1++) {
for (int j2 = ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 100000000;
const ll half_inf = 0x3f3f3f3f;
const ll inf = 0x7fffffff;
const ll mod = 998244353;
const ll maxn = 2000005;
int m[50005] = {0};
int main() {
int n;
scanf("%d", &n);
for (int j1 = 2; j1 < 145; j1++) {
for (int j2 = ... | [["-", 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, 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 | 244 |
#include <bits/stdc++.h>
using namespace std;
int pro(int x, int y, int z) {
return x * x + y * y + z * z + x * y + y * z + z * x;
}
int main() {
int N;
cin >> N;
for (int i = 0; i < N; i++) {
int c = 0;
for (int m = 1; pro(m, 1, 1) <= i; m++) {
for (int j = 1; pro(m, j, 1) <= i; j++) {
fo... | #include <bits/stdc++.h>
using namespace std;
int pro(int x, int y, int z) {
return x * x + y * y + z * z + x * y + y * z + z * x;
}
int main() {
int N;
cin >> N;
for (int i = 1; i <= N; i++) {
int c = 0;
for (int m = 1; pro(m, 1, 1) <= i; m++) {
for (int j = 1; pro(m, j, 1) <= i; j++) {
f... | [["-", 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 | 172 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int INF = 1 << 30;
const long long LINF = 1LL << 60;
const long long MOD = (long long)1e9 + 7;
int main() {
int n, ans = 0;
cin >> n;
for (int i = 1; i < n; i++) {
int sum = 0;
ans = 0;
for (int j = 1; j * j <= i; j++) {
... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int INF = 1 << 30;
const long long LINF = 1LL << 60;
const long long MOD = (long long)1e9 + 7;
int main() {
int n, ans = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
int sum = 0;
ans = 0;
for (int j = 1; j * j <= i; j++) {... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 221 |
#include <bits/stdc++.h>
#define ll long long
#define MODV 1000000007
#define INFLL LLONG_MAX // 9223372036854775807
#define EPS 1e-9
#define rep(i, n) for (ll i = 0, i##_len = (ll)(n); i < i##_len; i++)
#define repf(i, n) for (ll i = 1, i##_len = (ll)(n + 1); i < i##_len; i++)
#define all(v) v.begin(), v.end()
#define... | #include <bits/stdc++.h>
#define ll long long
#define MODV 1000000007
#define INFLL LLONG_MAX // 9223372036854775807
#define EPS 1e-9
#define rep(i, n) for (ll i = 0, i##_len = (ll)(n); i < i##_len; i++)
#define repf(i, n) for (ll i = 1, i##_len = (ll)(n + 1); i < i##_len; i++)
#define all(v) v.begin(), v.end()
#define... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 22], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 17, 33], ["-", 0, 7, 15, 16, 12, 16, 31, 16, 12, 22]] | 1 | 294 |
/** In the Name of ALLAH */
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<int, int> pii;
typedef pair<double, double> pdd;
typedef pair<ll, ll> pll;
typedef vector<pii> vii;
typedef vecto... |
/** In the Name of ALLAH */
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<int, int> pii;
typedef pair<double, double> pdd;
typedef pair<ll, ll> pll;
typedef vector<pii> vii;
typedef vecto... | [["-", 0, 30, 0, 43, 49, 50, 51, 16, 31, 13], ["+", 0, 30, 0, 43, 49, 50, 51, 16, 31, 13]] | 1 | 564 |
#include <bits/stdc++.h>
using namespace std;
#define sz(a) int((a).size())
#define all(c) c.begin(), c.end()
#define ll long long
#define pb push_back
#define zoom \
ios_base::sync_with_stdio(false); \
cin... | #include <bits/stdc++.h>
using namespace std;
#define sz(a) int((a).size())
#define all(c) c.begin(), c.end()
#define ll long long
#define pb push_back
#define zoom \
ios_base::sync_with_stdio(false); \
cin... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 397 |
n=int(input())
l=[0]*(10**4+1)
for x in range(1,100):
for y in range(x,100):
for z in range(y,100):
t=x*x+y*y+z*z+x*y+y*z+z*x
if t<=10**4:
if (x!=y) and y!=z:
l[t]+=6
elif x==y and y==z:
l[t]+=1
e... | n=int(input())
l=[0]*(10**4+1)
for x in range(1,100):
for y in range(x,100):
for z in range(y,100):
t=x*x+y*y+z*z+x*y+y*z+z*x
if t<=10**4:
if (x!=y) and y!=z:
l[t]+=6
elif x==y and y==z:
l[t]+=1
e... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 140 |
#include "bits/stdc++.h"
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
using ll = long long;
using vll = std::vector<ll>;
using vvll = std::vector<vll>;
using vvvll = std::vector<vvll>;
using ld = long double;
using vld = std::vector<ld>;
using vvld = std::vector<vld>;
using vvvld = std::vector<vvl... | #include "bits/stdc++.h"
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
using ll = long long;
using vll = std::vector<ll>;
using vvll = std::vector<vll>;
using vvvll = std::vector<vvll>;
using ld = long double;
using vld = std::vector<ld>;
using vvld = std::vector<vld>;
using vvvld = std::vector<vvl... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 2,588 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
/* clang-format off */
#define MOD 1000000007
#define INF 1000000000
#define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(a) (a).begin(), (a).end()
#define __DEBUG__
#ifdef __DEBUG__
#define CH_P(a) cout <<"check_point("<<#a<<"... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
/* clang-format off */
#define MOD 1000000007
#define INF 1000000000
#define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(a) (a).begin(), (a).end()
#define __DEBUG__
#ifdef __DEBUG__
#define CH_P(a) cout <<"check_point("<<#a<<"... | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 51, 16, 12, 16, 31, 16, 12, 16, 12, 22], ["+", 51, 16, 12, 16, 31, 16, 12, 16, 12, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 1... | 1 | 350 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--)
#define ALL(x) (x).begin(), (x).end() ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0; i < (ll)(n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--)
#define ALL(x) (x).begin(), (x).end() ... | [["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 250 |
#include <algorithm>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define ALL(v) v.begin(), v.end()
using namespace std;
using ll = long long... | #include <algorithm>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define ALL(v) v.begin(), v.end()
using namespace std;
using ll = long long... | [["+", 8, 9, 0, 7, 15, 16, 12, 16, 31, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 48]] | 1 | 301 |
n = int(input())
a = [0]*(10**4)
for x in range(1,10**2):
for y in range(1,10**2):
for z in range(1,10**2):
s = x**2 + y**2 + z**2 + x*y + y*z + z*x
if s <= 10**2:
a[s-1] += 1
for i in range(n):
print(a[i]) | n = int(input())
a = [0]*(10**4)
for x in range(1,10**2):
for y in range(1,10**2):
for z in range(1,10**2):
s = x**2 + y**2 + z**2 + x*y + y*z + z*x
if s <= 10**4:
a[s-1] += 1
for i in range(n):
print(a[i]) | [["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]] | 5 | 110 |
n=int(input())
A=[0]*n
for i in range(3,int(n**0.5+2)):
for j in range(1,i-1):
for k in range(1,i-j):
if (x:=i*i-j*k-k*(l:=i-j-k)-l*j)<=n:
A[x-1]+=1
for a in A:
print(a) | n=int(input())
A=[0]*n
for i in range(3,int(n**0.5+150)):
for j in range(1,i-1):
for k in range(1,i-j):
if (x:=i*i-j*k-k*(l:=i-j-k)-l*j)<=n:
A[x-1]+=1
for a in A:
print(a) | [["-", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 104 |
import itertools
N = int(input())
n = int(N ** (1/2))
C = itertools.combinations_with_replacement(range(1, n + 1), 3)
ans = [0 for i in range(N)]
x, y, z = 1, 1, 1
def check(c):
x, y, z = c
global N
t = x * x + y * y + z * z + x * y + y * z + z * x
if t > N:
return
if x == y and y == z:
ans[t - 1]... | import itertools
N = int(input())
n = int(N ** (1/2))
C = itertools.combinations_with_replacement(range(1, n + 1), 3)
ans = [0 for i in range(N)]
x, y, z = 1, 1, 1
def check(c):
x, y, z = c
global N
t = x * x + y * y + z * z + x * y + y * z + z * x
if t > N:
return
if x == y and y == z:
ans[t - 1]... | [["+", 36, 36, 36, 36, 0, 656, 0, 7, 0, 88], ["+", 36, 36, 36, 36, 0, 656, 0, 7, 31, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 7, 0, 267], ["+", 36, 36, 36, 36, 0, 656, 0, 7, 12, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 7, 0, 102], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 184 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
int main() {
int n;
cin >> n;
vi f(n + 1, 0);
for (int x = 1; x <= 1000; x++) {
for (int y = 1; y <= 1000; y++) {
for (int z = 1; z ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
int main() {
int n;
cin >> n;
vi f(n + 1, 0);
for (int x = 1; x <= 1000; x++) {
for (int y = 1; y <= 1000; y++) {
for (int z = 1; z ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 188 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.