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 |
|---|---|---|---|---|
N=int(input())
a=[i for i in range(N+1)]
for i in range(N+1):
if i%3==0 or i%5==0:
a[i]=0
sum(a) | N=int(input())
a=[i for i in range(N+1)]
for i in range(N+1):
if i%3==0 or i%5==0:
a[i]=0
print(sum(a)) | [["+", 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 | 55 |
#include <iostream>
using namespace std;
int main() {
long long n, ans = 0;
cin >> n;
for (int i = 0; i < n; i++) {
if (i % 5 != 0 && i % 3 != 0) {
ans += i;
}
}
cout << ans << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long n, ans = 0;
cin >> n;
for (int i = 0; i <= n; i++) {
if (i % 5 != 0 && i % 3 != 0) {
ans += i;
}
}
cout << ans << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 69 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n, m = 0;
cin >> n;
for (int i = 1; i < n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
m += i;
}
}
cout << m << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long n, m = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
m += i;
}
}
cout << m << endl;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 66 |
#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define FOR(i, m, n) for (int i = (m); i < (n); ++i)
#define rrep(i, n) for (int i = (n)-1; i >= 0; --i)
#define rfor(i, m, n) for (int i = (m); i >= (n); --i)
#define sz(x) ((int)(x).size(... | #define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define FOR(i, m, n) for (int i = (m); i < (n); ++i)
#define rrep(i, n) for (int i = (n)-1; i >= 0; --i)
#define rfor(i, m, n) for (int i = (m); i >= (n); --i)
#define sz(x) ((int)(x).size(... | [["+", 0, 2, 63, 118, 28, 2, 3, 4, 0, 13], ["+", 0, 2, 63, 118, 28, 2, 3, 4, 0, 21], ["+", 63, 118, 28, 2, 3, 4, 0, 16, 17, 72], ["+", 63, 118, 28, 2, 3, 4, 0, 16, 12, 13]] | 1 | 5,615 |
N = int(input())
s = 0
for i in range(1,N):
if (i%3!=0 and i%5!=0):
s+=i
print(s) | N = int(input())
s = 0
for i in range(1,N+1):
if (i%3!=0 and i%5!=0):
s+=i
print(s) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 43 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int64_t ans = 0;
for (int i = 1; i < N; i++) {
if ((i % 3 != 0) && (i % 5 != 0)) {
ans += i;
}
}
cout << ans;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int64_t ans = 0;
for (int i = 1; i < N + 1; i++) {
if ((i % 3 != 0) && (i % 5 != 0)) {
ans += i;
}
}
cout << ans;
} | [["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 68 |
n = int(input())
A = list(range(1, n+1))
B = list()
for i in range(1, n+1):
if i % 5 == 0 or i % 3 == 0:
continue
B.append(i)
ans = list(set(A) - set(B))
print(sum(ans)) | n = int(input())
A = list(range(1, n+1))
B = list()
for i in range(1, n+1):
if i % 5 == 0 or i % 3 == 0:
B.append(i)
ans = list(set(A) - set(B))
print(sum(ans)) | [["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117]] | 5 | 79 |
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define REP(i, n) for (i = 0; i < n; i++)
#define MAX 1000000
#define MOD 1000000007
long long fac[MAX], finv[MAX], inv[MAX];
// prototype declaration
int i_in();
long long ll_in();
double d_in();
char c_in();
void s_in... | #include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define REP(i, n) for (i = 0; i < n; i++)
#define MAX 1000000
#define MOD 1000000007
long long fac[MAX], finv[MAX], inv[MAX];
// prototype declaration
int i_in();
long long ll_in();
double d_in();
char c_in();
void s_in... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 1,294 |
def main():
n = int(input())
print(sum([i for i in range(1, n) if i%3 and i%5]))
if __name__ == "__main__":
main() | def main():
n = int(input())
print(sum([i for i in range(1, n+1) if i%3 and i%5]))
if __name__ == "__main__":
main()
| [["+", 0, 659, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 659, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 49 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
int sum = 0;
cin >> N;
for (int i = 1; i <= N; i++) {
if (!(i % 3 == 0 || i % 5 == 0))
sum += i;
}
cout << sum << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int64_t N;
int64_t sum = 0;
cin >> N;
for (int i = 1; i <= N; i++) {
if (!(i % 3 == 0 || i % 5 == 0))
sum += i;
}
cout << sum << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 1 | 67 |
a=int(input())
b=[]
for i in range(a):
if i%3==0 or i%5==0:
continue
else:
b.append(i)
print(sum(b)) | a=int(input())
b=[]
for i in range(a+1):
if i%3==0 or i%5==0:
continue
else:
b.append(i)
print(sum(b)) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 49 |
n = int(input())
count = 0
for i in range(n):
if (i % 3 != 0) and (i % 5 != 0):
count += i
print(count) | n = int(input())
count = 0
for i in range(n+1):
if (i % 3 != 0) and (i % 5 != 0):
count += i
print(count) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 43 |
N = int(input())
fizzbuzz = []
for i in range(1, N):
if i % 3 == 0 or i % 5 == 0:
fizzbuzz.append('0')
else:
fizzbuzz.append(str(i))
num = [int(s) for s in fizzbuzz]
print(sum(num)) |
N = int(input())
fizzbuzz = []
for i in range(1, N+1):
if i % 3 == 0 or i % 5 == 0:
fizzbuzz.append('0')
else:
fizzbuzz.append(str(i))
num = [int(s) for s in fizzbuzz]
print(sum(num)) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 73 |
import java.math.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int[] ans = new int[n + 1];
long res = 0;
for (int i = 3; i <= n; i += 3)
ans[i] = 1;
for (int i = 5; i <= n; i += 5)
ans[... | import java.math.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int[] ans = new int[n + 1];
long res = 0L;
for (int i = 3; i <= n; i += 3)
ans[i] = 1;
for (int i = 5; i <= n; i += 5)
ans... | [["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["-", 0, 57, 64, 1, 0, 11, 12, 504, 516, 22], ["-", 0, 57, 64, 1, 0, 11, 12, 504, 0, 70], ["-", 0, 57, 64, 1, 0, 11, 12, 504, 0, 73]] | 3 | 154 |
N = int(input())
Sum = int(0)
for i in range(N):
if i%5 != 0 and i%3 != 0:
Sum = Sum + i
print(Sum) | N = int(input())
Sum = int(0)
for i in range(N+1):
if i%5 != 0 and i%3 != 0:
Sum = Sum + i
print(Sum) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 44 |
#-*- coding: utf-8 -*-
n = int(input())
sum = 0
for i in range(1,n):
if i % 3 != 0 and i % 5 != 0 and i % 15 != 0:
sum += i
print(sum) | #-*- coding: utf-8 -*-
n = int(input())
sum = 0
for i in range(1,n + 1):
if i % 3 != 0 and i % 5 != 0 and i % 15 != 0:
sum += i
print(sum) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 48 |
import numpy
a = np.array([i for i in range(1, int(input())+1)])
print(a[np.where((a % 3 != 0) & (a % 5 !=0))].sum()) | import numpy as np
a = np.array([i for i in range(1, int(input())+1)])
print(a[np.where((a % 3 != 0) & (a % 5 !=0))].sum()) | [["+", 36, 36, 0, 656, 0, 596, 141, 704, 0, 272], ["+", 36, 36, 0, 656, 0, 596, 141, 704, 705, 22]] | 5 | 58 |
N = int(input())
Sum = (1+N)*N/2
Fizz = ((1+N//3)*N//3)/2*3
Buzz = ((1+N//5)*N//5)/2*5
FizzBuzz = ((1+N//15)*N//15)/2*15
print (int(Sum-Fizz-Buzz+FizzBuzz)) | N = int(input())
Sum = (1+N)*N/2
Fizz = ((1+N//3)*(N//3))/2*3
Buzz = ((1+N//5)*(N//5))/2*5
FizzBuzz = ((1+N//15)*(N//15))/2*15
print (int(Sum-Fizz-Buzz+FizzBuzz)) | [["+", 31, 657, 31, 23, 0, 657, 12, 23, 0, 24], ["+", 0, 662, 12, 657, 31, 657, 31, 23, 0, 25], ["+", 31, 657, 31, 23, 0, 657, 12, 23, 0, 25]] | 5 | 89 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long ans = 0;
for (int i = 1; i <= n; ++i) {
ans += (i % 3 == 0 && i % 5 == 0 ? 0 : i);
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long ans = 0;
for (int i = 1; i <= n; ++i) {
ans += (i % 3 != 0 && i % 5 != 0 ? i : 0);
}
cout << ans << endl;
}
| [["-", 12, 23, 0, 41, 15, 16, 31, 16, 17, 60], ["+", 12, 23, 0, 41, 15, 16, 31, 16, 17, 79], ["-", 12, 23, 0, 41, 15, 16, 12, 16, 17, 60], ["+", 12, 23, 0, 41, 15, 16, 12, 16, 17, 79], ["-", 0, 1, 0, 11, 12, 23, 0, 41, 64, 13], ["-", 0, 1, 0, 11, 12, 23, 0, 41, 0, 102], ["+", 0, 1, 0, 11, 12, 23, 0, 41, 0, 102], ["+", ... | 1 | 68 |
n = int(input())
ans = 0
for x in range(n):
if x % 3 == 0 or x % 5 == 0:
pass
else:
ans += x
print(ans) | n = int(input())
ans = 0
for x in range(n + 1):
if x % 3 == 0 or x % 5 == 0:
pass
else:
ans += x
print(ans) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 42 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int64_t a = 0;
for (int i = 0; i < n; i++) {
// if (i % 3 == 0 && i % 5 == 0) continue;
if (i % 3 == 0)
continue;
if (i % 5 == 0)
continue;
a += i;
}
cout << a << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int64_t a = 0;
for (int i = 1; i <= n; i++) {
// if (i % 3 == 0 && i % 5 == 0) continue;
if (i % 3 == 0)
continue;
if (i % 5 == 0)
continue;
a += i;
}
cout << a << endl;
}
| [["-", 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 | 71 |
#include <iostream>
using namespace std;
using ll = long long;
int main() {
int n;
cin >> n;
ll s{0};
for (auto i = 0; i != n; ++i) {
if (i % 3 && i % 5)
s += i;
}
cout << s << endl;
return 0;
}
| #include <iostream>
using namespace std;
using ll = long long;
int main() {
int n;
cin >> n;
ll s{0};
for (auto i = 1; i <= n; ++i) {
if (i % 3 && i % 5)
s += i;
}
cout << s << endl;
return 0;
}
| [["-", 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, 79], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 70 |
n=int(input())
s=0
for i in range(1,n+1):
if i%3==0 and i%5==0:
s+=i
print(s) | n=int(input())
s=0
for i in range(1,n+1):
if i%3!=0 and i%5!=0:
s+=i
print(s) | [["-", 8, 196, 0, 57, 15, 679, 31, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 667, 79], ["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 79]] | 5 | 43 |
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main(void) {
int n;
cin >> n;
ll ans = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 || i % 5 != 0) {
ans += i;
}
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main(void) {
int n;
cin >> n;
ll ans = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
ans += i;
}
}
cout << ans << endl;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 73 |
#include <stdio.h>
int main() {
long long int n;
scanf("%lld", &n);
long long int ans = 0;
for (int i = 0; i < n; ++i) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
printf("%lld\n", ans);
} | #include <stdio.h>
int main() {
long long int n;
scanf("%lld", &n);
long long int ans = 0;
for (int i = 1; i <= n; ++i) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
printf("%lld\n", ans);
} | [["-", 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]] | 0 | 74 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int n;
cin >> n;
long long total = 0;
for (int i = 0; i < n; i++) {
if (i % 3 != 0 && i % 5 != 0)
total += i;
}
cout << total << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int n;
cin >> n;
long long total = 0;
for (int i = 0; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0)
total += i;
}
cout << total << endl;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 66 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, ans = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
ans += i;
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
long long ans = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
ans += i;
}
cout << ans << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 67 |
N=int(input())
ans=0
for i in range(N):
if i%3!=0 and i%5!=0:
ans+=i
print(str(ans)) | N=int(input())
ans=0
for i in range(N+1):
if i%3!=0 and i%5!=0:
ans+=i
print(str(ans)) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 42 |
#include <bits/stdc++.h>
using namespace std;
#define watch(x) cout << (#x) << " is " << (x) << '\n'
#define rep(i, a, n) for (int i = a; i < n; i++)
#define per(i, a, n) for (int i = n - 1; i >= a; i--)
#define pb push_bacm
#define mp mame_pair
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#... | #include <bits/stdc++.h>
using namespace std;
#define watch(x) cout << (#x) << " is " << (x) << '\n'
#define rep(i, a, n) for (int i = a; i < n; i++)
#define per(i, a, n) for (int i = n - 1; i >= a; i--)
#define pb push_bacm
#define mp mame_pair
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 216 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long N;
scanf("%ld", N);
long ans = 0;
for (long i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
printf("%ld", ans);
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long N;
scanf("%ld", &N);
long ans = 0;
for (long i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
printf("%ld", ans);
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 1 | 72 |
import java.io.*;
import java.lang.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int ans = 0;
for (int i = 1; i <= n; i++) {
if ((i % 3) != 0 && (i % 5) != 0) {
ans += i;
}
}
... | import java.io.*;
import java.lang.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long ans = 0;
for (int i = 1; i <= n; i++) {
if ((i % 3) != 0 && (i % 5) != 0) {
ans += i;
}
}
... | [["-", 0, 195, 8, 196, 0, 503, 39, 506, 0, 507], ["+", 0, 195, 8, 196, 0, 503, 39, 506, 0, 96]] | 3 | 112 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ALL(c) (c).begin(), (c).end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
const int INF = 1e9 + 10;
int N;
int res = 0;
int main() {
cin >> N... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ALL(c) (c).begin(), (c).end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
const int INF = 1e9 + 10;
int N;
ll res = 0;
int main() {
cin >> N;... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 79], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60... | 1 | 120 |
a=0
(1..gets.to_i).each{|i|a+=i if i%3==0||i%5==0}
p a
| a=0
(1..gets.to_i).each{|i|a+=i if i%3!=0&&i%5!=0}
p a
| [["-", 8, 734, 0, 751, 15, 738, 31, 738, 17, 60], ["+", 8, 734, 0, 751, 15, 738, 31, 738, 17, 79], ["-", 196, 196, 8, 734, 0, 751, 15, 738, 17, 106], ["+", 196, 196, 8, 734, 0, 751, 15, 738, 17, 98], ["-", 8, 734, 0, 751, 15, 738, 12, 738, 17, 60], ["+", 8, 734, 0, 751, 15, 738, 12, 738, 17, 79]] | 4 | 34 |
n=int(input())
a=[0]*n
for i in range(n):
if i%3==0 or i%5==0:
a[i]=0
else:
a[i]=i
print(sum(a)) | n=int(input())
a=[0]*(n+1)
for i in range(n+1):
if i%3==0 or i%5==0:
a[i]=0
else:
a[i]=i
print(sum(a)) | [["+", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["+", 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], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 57 |
import sys
def input(): return sys.stdin.readline().rstrip()
N = int(input())
ans = 0
for i in range(N):
if i % 3 != 0 and i % 5 != 0:
ans += i
print(ans) | import sys
def input(): return sys.stdin.readline().rstrip()
N = int(input())
ans = 0
for i in range(N+1):
if i % 3 != 0 and i % 5 != 0:
ans += i
print(ans) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 58 |
#include <stdio.h>
int main() {
int a, t;
long long int sum = 0;
scanf("%d", &a);
for (int i = 0; i <= a; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
printf("%d", sum);
return 0;
} | #include <stdio.h>
int main() {
int a, t;
long long int sum = 0;
scanf("%d", &a);
for (int i = 0; i <= a; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
printf("%lld", sum);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 78 |
#include <stdio.h>
int main() {
int N;
long long int sum = 0;
scanf("%d", &N);
for (int i = 1; i < N; i++) {
if (!(i % 3 == 0 || i % 5 == 0)) {
sum += i;
}
}
printf("%lld", sum);
return 0;
} | #include <stdio.h>
int main() {
int N;
int i;
long long int sum = 0;
scanf("%d", &N);
for (int i = 1; i <= N; i++) {
if (!(i % 3 == 0 || i % 5 == 0)) {
sum += i;
}
}
printf("%lld", sum);
return 0;
} | [["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 79 |
#include <stdio.h>
#include <string.h>
int main() {
int input = 0;
long long int output = 0;
scanf("%d", &input);
for (int i = 0; i < input; i++) {
if (i % 3 != 0 && i % 5 != 0) {
output += i;
}
}
printf("%lld", output);
} | #include <stdio.h>
#include <string.h>
int main() {
long long int input = 0;
long long int output = 0;
scanf("%lld", &input);
for (int i = 0; i <= input; i++) {
if (i % 3 != 0 && i % 5 != 0) {
output += i;
}
}
printf("%lld", output);
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 77 |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
long long int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
} else {
sum += i;
}
}
printf("%d\n", sum);
return 0;
} | #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
long long int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
} else {
sum += i;
}
}
printf("%lld", sum);
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 82 |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int i;
int sum = 0;
for (i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
printf("%d\n", sum);
return 0;
} | #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int i;
long long int sum = 0;
for (i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
printf("%lld\n", sum);
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 77 |
#include <stdio.h>
int main() {
long long int N;
int sum = 0;
scanf("%lld", &N);
for (int i = 0; i <= N; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
} else {
sum += i;
}
}
printf("%lld", sum);
return 0;
} | #include <stdio.h>
int main() {
long long int N;
long long int sum = 0;
scanf("%lld", &N);
for (int i = 0; i <= N; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
} else {
sum += i;
}
}
printf("%lld", sum);
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 81 |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
long long int sum = 0;
for (int i = 1; i < n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
printf("%lld\n", sum);
return 0;
} | #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
long long int total = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
total += i;
}
}
printf("%lld", total);
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 8, 9, 0, 1, 0, 2, 3, ... | 1 | 77 |
#include <stdio.h>
int main() {
long long int n;
scanf("%d", &n);
int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
printf("%d\n", sum);
return 0;
} | #include <stdio.h>
int main() {
long long int n;
scanf("%lld", &n);
long long int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
printf("%lld\n", sum);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 77 |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int ans = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
ans += i;
}
printf("%d\n", ans);
return 0;
} | #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
long long int ans = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
ans += i;
}
printf("%lld\n", ans);
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 77 |
#include <stdio.h>
int main() {
long long int n, sum = 0;
scanf("%lld", &n);
for (int i = 0; i < n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
} else {
sum += i;
}
}
printf("%lld", sum);
return 0;
} | #include <stdio.h>
int main() {
long long int N, sum = 0;
scanf("%lld", &N);
for (int i = 0; i <= N; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
} else {
sum += i;
}
}
printf("%lld", sum);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, ... | 1 | 80 |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
sum += 0;
} else if (i % 3 == 0) {
sum += 0;
} else if (i % 5 == 0) {
sum += 0;
} else {
sum += i;
}
}
printf("%d\n", sum);
r... | #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
long long int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
sum += 0;
} else if (i % 3 == 0) {
sum += 0;
} else if (i % 5 == 0) {
sum += 0;
} else {
sum += i;
}
}
printf("%lld\n... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 112 |
#include <stdio.h>
int main() {
int N;
long long int sum = 0;
scanf("%d", &N);
for (int i = 1; i <= 15; i++) {
if (i % 3 == 0 || i % 5 == 0) {
} else {
sum += i;
}
}
printf("%lld", sum);
return 0;
}
| #include <stdio.h>
int main() {
int N;
long long int sum = 0;
scanf("%d", &N);
for (int i = 1; i <= N; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
} else {
sum += i;
}
}
printf("%lld", sum);
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 35]] | 0 | 79 |
#include <stdio.h>
int main() {
long long int max, sum = 0;
scanf("%lld", &max);
for (int i = 0; i < max; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum = sum + i;
}
}
printf("%lld", sum);
return 0;
} | #include <stdio.h>
int main() {
long long int max, sum = 0;
scanf("%lld", &max);
for (int i = 0; i <= max; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum = sum + i;
}
}
printf("%lld", sum);
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 77 |
#include <stdio.h>
int main() {
long long int N;
long long int total;
scanf("%lld", &N);
int i;
for (i = 1; i < N; i++) {
if (i % 3 != 0 && i % 5 != 0) {
total = total + i;
}
}
printf("%lld\n", total);
return 0;
} | #include <stdio.h>
int main() {
long long int N;
long long int total = 0;
scanf("%lld", &N);
int i;
for (i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0) {
total = total + i;
}
}
printf("%lld\n", total);
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 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 | 81 |
#include <stdio.h>
int main() {
int N;
int X = 0;
scanf("%d", &N);
for (int i = 1; i <= N; i++) {
if (i % 3 == 0 && i % 5 == 0) {
} else if (i % 3 == 0) {
} else if (i % 5 == 0) {
} else {
X = X + i;
}
}
printf("%d", X);
}
| #include <stdio.h>
int main() {
int N;
long long int X = 0;
scanf("%d", &N);
for (int i = 1; i <= N; i++) {
if (i % 3 == 0 && i % 5 == 0) {
} else if (i % 3 == 0) {
} else if (i % 5 == 0) {
} else {
X = X + i;
}
}
printf("%lld", X);
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 98 |
#include <stdio.h>
int main() {
long int n;
scanf("%d", &n);
int sum = 0;
for (long int i = 1; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
continue;
} else if (i % 3 == 0) {
continue;
} else if (i % 5 == 0) {
continue;
} else {
sum += i;
}
}
printf("%d\n", sum... | #include <stdio.h>
int main() {
long long int n;
scanf("%lld", &n);
long long int sum = 0;
for (long long int i = 1; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
continue;
} else if (i % 3 == 0) {
continue;
} else if (i % 5 == 0) {
continue;
} else {
sum += i;
}
... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96]] | 1 | 108 |
#include <stdio.h>
int main() {
int n;
scanf("%lld", &n);
int total = 0;
for (int i = 0; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
continue;
} else if (i % 3 == 0) {
continue;
} else if (i % 5 == 0) {
continue;
} else {
total += i;
}
}
printf("%lld", total)... | #include <stdio.h>
int main() {
long long int n;
scanf("%lld", &n);
long long int total = 0;
for (int i = 0; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
continue;
} else if (i % 3 == 0) {
continue;
} else if (i % 5 == 0) {
continue;
} else {
total += i;
}
}
p... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 105 |
#include <stdio.h>
int main() {
long long int input, sum = 0;
scanf("%lld", &input);
for (long long int i = 1; i <= input; i++) {
if (i % 3 == 0 || i % 5 == 0) {
}
// else if (i%3==0 || i%5==0){
//}
else {
sum += i;
}
}
printf("%d\n", sum);
return 0;
} | #include <stdio.h>
int main() {
long long int n, sum = 0;
scanf("%lld", &n);
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
} else {
sum += i;
}
}
printf("%lld\n", sum);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["-", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5,... | 1 | 83 |
#include <stdio.h>
int main() {
long long int n, sum = 0;
scanf("%lld", &n);
for (int i = 0; i < n; i++) {
if (i % 5 != 0) {
if (i % 3 != 0) {
sum += i;
}
}
}
printf("%lld\n", sum);
} | #include <stdio.h>
int main() {
long long int n, sum = 0;
scanf("%lld", &n);
for (int i = 1; i <= n; i++) {
if (i % 5 != 0) {
if (i % 3 != 0) {
sum += i;
}
}
}
printf("%lld\n", sum);
return 0;
} | [["-", 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], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 1 | 77 |
N = int(input())
ans = 0
for i in range(1,N+1):
if i % 3 == 0 or i % 5 == 0:
ans += i
print(ans)
| N = int(input())
ans = 0
for i in range(1,N+1):
if i % 3 == 0 or i % 5 == 0:
ans += 0
else:
ans += i
print(ans)
| [["+", 0, 57, 64, 196, 0, 1, 0, 677, 12, 612], ["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 107]] | 5 | 43 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n, sum = 0;
cin >> n;
vector<int> v;
for (int i = 1; i <= n; i++) {
v.push_back(i);
if (i % 3 == 0 || i % 5 == 0)
v.pop_back();
}
for (int i = 0; i < v.size(); i++) {
sum += v[i];
}
cout << sum;
return 0;
} | #include <iostream>
#include <vector>
using namespace std;
int main() {
long int n, sum = 0;
cin >> n;
vector<int> v;
for (long int i = 1; i <= n; i++) {
v.push_back(i);
if (i % 3 == 0 || i % 5 == 0)
v.pop_back();
}
for (long int i = 0; i < v.size(); i++) {
sum += v[i];
}
cout << sum... | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96]] | 1 | 108 |
#include <stdio.h>
int main()
{
long long a, i, sum = 0;
scanf("%lld", &a);
for (i = 0; i <= a; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum = sum + i;
}
}
printf("%d", sum);
return 0;
}
| #include <stdio.h>
int main() {
long long int a, i, sum = 0;
scanf("%lld", &a);
for (i = 1; i <= a; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum = sum + i;
}
}
printf("%lld", sum);
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40], ["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 1... | 0 | 77 |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int result = 0;
for (int i = 0; i < n; i++) {
int check = 0;
if (i % 3 == 0 || i % 5 == 0) {
check = 1;
} else if (check == 0) {
result += i;
}
}
printf("%d\n", result);
return 0;
} | #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
long long int result = 0;
for (int i = 0; i <= n; i++) {
int check = 0;
if (i % 3 == 0 || i % 5 == 0) {
check = 1;
} else if (check == 0) {
result += i;
}
}
printf("%lld\n", result);
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 93 |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
long long int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
} else if (i % 5 == 0) {
} else if (i % 3 == 0 && i % 5 == 0) {
} else {
sum = sum + i;
}
}
printf("%I64d", sum);
}
| #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
long long int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
} else if (i % 5 == 0) {
} else if (i % 3 == 0 && i % 5 == 0) {
} else {
sum = sum + i;
}
}
printf("%lld\n", sum);
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 100 |
#include <stdio.h>
int main() {
long long int n;
long long int total = 0;
scanf("%d", &n);
for (int i = 0; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
continue;
} else {
total = total + i;
}
}
printf("%lld", total);
return 0;
} | #include <stdio.h>
int main() {
long long int n;
long long int total = 0;
scanf("%lld", &n);
for (int i = 0; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
} else {
total = total + i;
}
}
printf("%lld", total);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 60], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 23, 0,... | 0 | 85 |
#include <stdio.h>
int main() {
int N, i, sum;
sum = 0;
scanf("%d", &N);
for (i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0)
sum = sum + i;
}
printf("%d\n", sum);
return 0;
} | #include <stdio.h>
int main() {
long long int N, i, sum;
sum = 0;
scanf("%lld", &N);
for (i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0)
sum = sum + i;
}
printf("%lld\n", sum);
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 77 |
#include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
long long s = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 || i % 5 != 0) {
s += i;
}
}
printf("%lld\n", s);
return 0;
} | #include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
long long s = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
s += i;
}
}
printf("%lld\n", s);
return 0;
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]] | 0 | 77 |
#include <stdio.h>
int main(void) {
int FizzBuzz;
scanf("%d", &FizzBuzz);
unsigned long sum = 0;
unsigned long i;
for (i = 1; i <= FizzBuzz; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
sum = sum + i;
}
printf("%d", sum);
return 0;
} | #include <stdio.h>
int main(void) {
int FizzBuzz;
scanf("%d", &FizzBuzz);
unsigned long sum = 0;
unsigned long i;
for (i = 1; i <= FizzBuzz; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
sum = sum + i;
}
printf("%ld", sum);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 83 |
print(sum([i for i in range(int(input())) if (i % 3 != 0 and i % 5 != 0)])) | print(sum([i for i in range(int(input()) + 1) if (i % 3 != 0 and i % 5 != 0)]))
| [["+", 0, 659, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 659, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 35 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
long long total = 0;
for (int i = 1; i <= N; i++) {
if (N % 3 != 0 && N % 5 != 0) {
total += i;
}
}
std::cout << tota... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
long long N;
cin >> N;
long long total = 0;
for (long long i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0) {
total += i;
}
}
std::... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96], ["-", 15, 339, 51, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 31, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["+", 1... | 1 | 86 |
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
long long ans = 0;
for (int i = 1; i < n; i++) {
if (i % 3 && i % 5)
ans += i;
}
cout << ans << endl;
} | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
long long ans = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 && i % 5)
ans += i;
}
cout << ans << endl;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 61 |
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
/*--------switch header--------*/
#define ALGORITHM 1
#define CASSERT 0
#define CMATH 0
#define DEQUE 0
#define FUNCTIONAL 1
#define IOMANIP 1
#define IOSTREAM 1
#define LIST 0
#define MAP 0
#define QUEUE 0
#define SET 0
#define STRING 1
#define UTILITY 1... | #pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
/*--------switch header--------*/
#define ALGORITHM 1
#define CASSERT 0
#define CMATH 0
#define DEQUE 0
#define FUNCTIONAL 1
#define IOMANIP 1
#define IOSTREAM 1
#define LIST 0
#define MAP 0
#define QUEUE 0
#define SET 0
#define STRING 1
#define UTILITY 1... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 455 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
int n;
cin >> n;
ll sum = 0;
for (int i = 1; i < n; i++) {
if (i % 3 != 0 && i % 5 != 0)
sum += i;
}
cout << sum;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
int n;
cin >> n;
ll sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0)
sum += i;
}
cout << sum;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 75 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
int n;
cin >> n;
ll sum = 0;
for (int i = 1; i < n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
} else if (i % 3 == 0) {
} else if (i % 5 == 0) {
} else {
sum... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
int n;
cin >> n;
ll sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
} else if (i % 3 == 0) {
} else if (i % 5 == 0) {
} else {
su... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 102 |
def resolve():
n = int(input())
ans = 0
for i in range(n):
if i%3!=0 and i%5!=0:
ans += i
print(ans)
resolve() | def resolve():
n = int(input())
ans = 0
for i in range(1,n+1):
if i%3!=0 and i%5!=0:
ans += i
print(ans)
resolve() | [["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 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 | 47 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int res = 0;
for (int i = 0; i < n; i++) {
int a = i + 1;
if (a % 3 == 0 || a % 5 == 0)
continue;
else
res += a;
}
cout << res << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
long long res = 0;
for (int i = 0; i < n; i++) {
int a = i + 1;
if (a % 3 == 0 || a % 5 == 0)
continue;
else
res += a;
}
cout << res << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 74 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; ++i)
#define FOR(i, a, b) for (int i = a; i < (int)b; ++i)
#define rrep(i, n) for (int i = ((int)n - 1); i >= 0; --i)
using ll = long long;
using ld = long double;
const ll INF = 1e18;
const int Inf = 1e9;
const double EPS =... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; ++i)
#define FOR(i, a, b) for (int i = a; i < (int)b; ++i)
#define rrep(i, n) for (int i = ((int)n - 1); i >= 0; --i)
using ll = long long;
using ld = long double;
const ll INF = 1e18;
const int Inf = 1e9;
const double EPS =... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 144 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, sum = 0;
cin >> N;
for (int i = 0; i < N; i++) {
if ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {
sum += i + 1;
}
}
cout << sum << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
long long sum = 0;
cin >> N;
for (int i = 0; i < N; i++) {
if ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {
sum += i + 1;
}
}
cout << sum << endl;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 75 |
#include <iostream>
using namespace std;
int main() {
int N, i;
cin >> N;
long long sum = 0;
for (i = 0; i < N; i++) {
if (i % 3 == 0 || i % 5 == 0)
continue;
sum += i;
}
cout << sum << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int N, i;
cin >> N;
long long sum = 0;
for (i = 1; i <= N; i++) {
if (i % 3 == 0 || i % 5 == 0)
continue;
sum += i;
}
cout << sum << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 71 |
#include <iostream>
using namespace std;
int main() {
int N, i;
cin >> N;
long long sum = 0;
for (i = 0; i < N; i++) {
if (i % 3 != 0 && i % 5 != 0)
sum += i;
}
cout << sum << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int N, i;
cin >> N;
long long sum = 0;
for (i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0)
sum += i;
}
cout << sum << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 69 |
#include <iostream>
using namespace std;
int main(void) {
int N, sum = 0;
cin >> N;
for (int i = 1; i <= N; ++i) {
if (i % 3 != 0 && i % 5 != 0)
sum += i;
}
cout << sum << "\n";
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int N;
long long sum = 0;
cin >> N;
for (int i = 1; i <= N; ++i) {
if (i % 3 != 0 && i % 5 != 0)
sum += i;
}
cout << sum << "\n";
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 69 |
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#define debug(var) cerr << (#var) << " = " << (var) << endl;
#else
#define debug(var)
#endif
void init() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
}
void solve() {
int n;
scanf("%d", &n);
long long ans = 0;
for (int i = 1; i <= n... | #include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#define debug(var) cerr << (#var) << " = " << (var) << endl;
#else
#define debug(var)
#endif
void init() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
}
void solve() {
int n;
scanf("%d", &n);
long long ans = 0;
for (int i = 1; i <= n... | [["-", 15, 339, 51, 16, 31, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 31, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]] | 1 | 148 |
n = int(input())
count = 0
for i in range(n):
if(i % 3 != 0 and i % 5 != 0):
count += i
print(count) | n = int(input())
count = 0
for i in range(1,n+1):
if(i % 3 != 0 and i % 5 != 0):
count += i
print(count) | [["+", 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 | 41 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const long long INF = 1LL << 60;
int main() {
ll N;
cin >> N;
ll ans = 0;
rep(i, N) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 1; i <= (int)(n); i++)
const long long INF = 1LL << 60;
int main() {
ll N;
cin >> N;
ll ans = 0;
rep(i, N) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
cout << ans << endl;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59]] | 1 | 78 |
N = input()
n = int(N)
a = 0
for i in range(n):
if not i%3 ==0:
if not i%5 ==0:
a += i
A = int(a)
print(A) | N = input()
n = int(N)
a = 0
for i in range(1,n+1):
if not i%3 ==0:
if not i%5 ==0:
a += i
A = int(a)
print(A)
| [["+", 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 | 51 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long N = n;
long m = 0;
for (long i = 0; i < N; i++) {
if ((i % 3) == 0) {
} else if ((i % 5) == 0) {
} else {
m = m + i;
}
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long N = n;
long m = 0;
for (long i = 1; i < N + 1; i++) {
if ((i % 3) == 0) {
} else if ((i % 5) == 0) {
} else {
m = m + i;
... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 196, 0, 7, 15, 16, 12, 16, 12, 499]] | 3 | 113 |
#include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
#define IOS ios::sync_with_stdio(false), cin.tie(nullptr... | #include <bits/stdc++.h>
using namespace std;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return 1;
}
return 0;
}
#define IOS ios::sync_with_stdio(false), cin.tie(nullptr... | [["+", 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]] | 1 | 273 |
#include <iostream>
#include <string>
#include <vector>
#define ll long long
using namespace std;
int main() {
ll int n;
cin >> n;
ll int sum = 0;
for (ll int i = 1; i < n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
sum += i;
}
cout << sum << endl;
} | #include <iostream>
#include <string>
#include <vector>
#define ll long long
using namespace std;
int main() {
ll int n;
cin >> n;
ll int sum = 0;
for (ll int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0)
continue;
sum += i;
}
cout << sum << endl;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int i = 0, j = 0, ans = 0;
int n;
cin >> n;
for (i; i < n; i++) {
if ((i % 3) && (i % 5)) {
ans += i;
}
}
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int i = 0, j = 0, ans = 0;
int n;
cin >> n;
for (i = 1; i <= n; i++) {
if ((i % 3) && (i % 5)) {
ans += i;
}
}
cout << ans << endl;
return 0;
} | [["+", 0, 14, 8, 9, 0, 7, 10, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 77 |
#include <bits/stdc++.h>
#include <deque>
#include <iostream>
using namespace std;
#define ll long long int
/* run this program using the console pauser or add your own getch,
* system("pause") or input loop */
int main() {
ll i;
ll sum = 0;
cin >> i;
for (ll n = 0; n < i; n++) {
if (n % 5 != 0 && n % 3 !... | #include <bits/stdc++.h>
#include <deque>
#include <iostream>
using namespace std;
#define ll long long int
/* run this program using the console pauser or add your own getch,
* system("pause") or input loop */
int main() {
ll i;
ll sum = 0;
cin >> i;
for (ll n = 0; n <= i; n++) {
if (n % 5 != 0 && n % 3 ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 73 |
N=int(input())
sum=N*(N+1)/2
for i in range(N):
if i%3==0 or i%5==0:
sum-=i
print(sum) | N=int(input())
sum=N*(N+1)/2
for i in range(N+1):
if i%3==0 or i%5==0:
sum-=i
print(int(sum)) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 47 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, i;
int sum = 0;
cin >> N;
for (i = 0; i < N; i++) {
if ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {
sum += i + 1;
}
}
cout << sum << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int N, i;
long long int sum = 0;
cin >> N;
for (i = 0; i < N; i++) {
if ((i + 1) % 3 != 0 && (i + 1) % 5 != 0) {
sum += i + 1;
}
}
cout << sum << endl;
}
| [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 77 |
N = int,input()
sum = 0
#文字になるときpass
for i in range(N):
if i % 3 == 0:
pass
elif i % 5 == 0:
pass
elif i % 15 == 0 :
pass
else:
sum += i
print(sum)
| N = int(input())
sum = 0
#文字になるときpass
for i in range(N+1):
if i % 3 == 0:
pass
elif i % 5 == 0:
pass
elif i % 15 == 0 :
pass
else:
sum += i
print(sum)
| [["-", 0, 656, 0, 1, 0, 662, 12, 432, 0, 21], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 52 |
n = input()
a = 0
for i in range(int(n)):
if i%3 != 0:
if i%5 !=0:
a = a+i
print(a)
| n = input()
a = 0
for i in range(int(n)+1):
if i%3 != 0:
if i%5 !=0:
a = a+i
print(a)
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 42 |
#include <math.h>
#include <stdint.h>
#include <stdio.h>
int main(void) {
int64_t N;
int64_t sum = 0;
scanf("%ld", &N);
for (int64_t i = 1; i < N; i++) {
if (i % 3 != 0 || i % 5 != 0) {
sum += i;
}
}
printf("%ld\n", sum);
return 0;
} | #include <math.h>
#include <stdint.h>
#include <stdio.h>
int main(void) {
int64_t N;
int64_t sum = 0;
scanf("%ld", &N);
for (int64_t i = 1; i <= N; i++) {
if (!(i % 3 == 0 || i % 5 == 0)) {
sum += i;
}
}
printf("%ld\n", sum);
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 7, 8, 9, 0, 57, 15, 23, 0, 24], ["+", 8, 9, 0, 57, 15, 23, 0, 91, 17, 111], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 79], ["+", 0, 91, 28, 23, 0, 16, 31, 16, 17, 60], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 79], ["+", 0, 91, 28... | 0 | 80 |
#include <iostream>
using namespace std;
int main() {
int sum = 0, n;
cin >> n;
for (int i = 1; i <= n; i++)
if (!(i % 3 == 0 || i % 5 == 0 || i % 15 == 0))
sum += i;
cout << sum << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
long long int sum = 0, n;
cin >> n;
for (int i = 1; i <= n; i++)
if (!(i % 3 == 0 || i % 5 == 0 || i % 15 == 0))
sum += i;
cout << sum << endl;
return 0;
} | [["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 73 |
#include <bits/stdc++.h>
using namespace std;
#define forn(i, n) for (int i = 0; i < (int)n; i++)
#define forin(i, a, b) for (int i = a; i < (int)b; i++)
#define rofin(i, a, b) for (int i = a; i > b; i--)
#define v vector
#define crap \
ios::sync_with_... | #include <bits/stdc++.h>
using namespace std;
#define forn(i, n) for (int i = 0; i < (int)n; i++)
#define forin(i, a, b) for (int i = a; i < (int)b; i++)
#define rofin(i, a, b) for (int i = a; i > b; i--)
#define v vector
#define crap \
ios::sync_with_... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 64, 9, 0, 1, 0, 11, 12, 74, 0, 24], ["+", 0, 1, 0, 11, 12, 74, 39, 77, 39, 78], ["+", 64, 9, 0, 1, 0, 11, 12, 74, 0, 25]] | 1 | 130 |
#include <bits/stdc++.h>
using namespace std;
#define sswap(x, y) \
{ \
x += y; \
y = x - y; ... | #include <bits/stdc++.h>
using namespace std;
#define sswap(x, y) \
{ \
x += y; \
y = x - y; ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 155 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, sum = 0;
cin >> a;
for (int i = 1; i <= a; i++)
if (i % 3 != 0 && i % 5 != 0)
sum += i;
cout << sum;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
long long a, sum = 0;
cin >> a;
for (long long i = 1; i <= a; i++)
if (i % 3 != 0 && i % 5 != 0)
sum += i;
cout << sum;
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 8, 9, 0, 7, 10, 43, 39, 86, 0, 96]] | 1 | 62 |
#include <bits/stdc++.h>
#define f first
#define s second
#define pl pair<long long, long long>
#define ll long long
using namespace std;
const long long MOD = 2e19;
const long long BIG = 1e7 + 9;
int main() {
ll n, sum = 0;
cin >> n;
for (int i = 1; i <= n; i++)
if (i % 3 == 0 || i % 5 == 0) {
sum ... | #include <bits/stdc++.h>
#define f first
#define s second
#define pl pair<long long, long long>
#define ll long long
using namespace std;
const long long MOD = 2e19;
const long long BIG = 1e7 + 9;
int main() {
ll n, sum = 0;
cin >> n;
for (ll i = 1; i <= n; i++)
if (!(i % 3 == 0 || i % 5 == 0)) {
sum... | [["-", 0, 14, 8, 9, 0, 7, 10, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 7, 10, 43, 39, 78], ["+", 0, 7, 8, 57, 15, 339, 51, 91, 17, 111], ["+", 8, 57, 15, 339, 51, 91, 28, 23, 0, 24], ["+", 8, 57, 15, 339, 51, 91, 28, 23, 0, 25]] | 1 | 92 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
int ans = 0;
for (int i = 0; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
ans = ans + i;
}
}
cout << ans;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
long long ans = 0;
for (int i = 0; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
ans = ans + i;
}
}
cout << ans;
}
| [["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 67 |
#include <stdio.h>
int FizzBuzz(int N) {
if (N % 3 == 0 || N % 5 == 0)
return 0;
return N;
}
int main() {
int N;
scanf("%d", &N);
long long int Result = 0;
for (int n = 0; n < N; n++)
Result += FizzBuzz(n);
printf("%lld", Result);
return 0;
}
|
#include <stdio.h>
int FizzBuzz(int N) {
if (N % 3 == 0 || N % 5 == 0)
return 0;
return N;
}
int main() {
int N;
scanf("%d", &N);
long long int Result = 0;
for (int n = 1; n <= N; n++)
Result += FizzBuzz(n);
printf("%lld", Result);
return 0;
}
| [["-", 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]] | 0 | 89 |
function Main(input) {
let N = Number(input);
let sum = 0;
for (let i = 0; i < N; i++) {
if ((i % 3 !== 0) && (i % 5 !== 0)) {
sum += i;
}
}
console.log(FizzBuzzSum);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | function Main(input) {
let N = Number(input);
let sum = 0;
for (let i = 1; i < (N + 1); i++) {
if ((i % 3 !== 0) && (i % 5 !== 0)) {
sum += i;
}
}
console.log(sum);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | [["-", 8, 556, 0, 7, 10, 570, 0, 200, 51, 555], ["+", 8, 556, 0, 7, 10, 570, 0, 200, 51, 555], ["+", 0, 7, 15, 1, 0, 16, 12, 23, 0, 24], ["+", 15, 1, 0, 16, 12, 23, 0, 16, 17, 72], ["+", 15, 1, 0, 16, 12, 23, 0, 16, 12, 555], ["+", 0, 7, 15, 1, 0, 16, 12, 23, 0, 25], ["-", 8, 556, 0, 1, 0, 2, 3, 3, 0, 22], ["+", 8, 556... | 2 | 88 |
import numpy as np
def main():
n = int(input())
arr = np.arange(n + 1)
arr[3::3] = 0
arr[5::5] = 0
print(arr)
print(arr.sum())
if __name__ =='__main__':
main() | import numpy as np
def main():
n = int(input())
arr = np.arange(n + 1)
arr[3::3] = 0
arr[5::5] = 0
print(arr.sum())
if __name__ =='__main__':
main() | [["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 0, 14, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 63, 319, 500, 22]] | 5 | 67 |
/*
我的心脏怦怦跳,监管者就在附近
name:
Algorithm:
writer:Lxs(cdx)
place:
nothing is impossible
*/
#pragma GCC optimize(3, "Ofast", "inline")
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <unistd.h>
#defin... | /*
我的心脏怦怦跳,监管者就在附近
name:
Algorithm:
writer:Lxs(cdx)
place:
nothing is impossible
*/
#pragma GCC optimize(3, "Ofast", "inline")
#include <bits/stdc++.h>
#include <cmath>
#include <cstring>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <unistd.h>
#defin... | [["-", 0, 57, 64, 9, 0, 1, 0, 27, 17, 29], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22]] | 1 | 157 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.