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;
using ll = long long;
using p = pair<int, int>;
#define INF 1000000000
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repX(i, n, x) for (int i = x; i < (int)(n); i++)
#define repM(i, n) for (int i = n; i > 0; i--)
int main() {
int N;
cin >> N;
ll sum = ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using p = pair<int, int>;
#define INF 1000000000
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repX(i, n, x) for (int i = x; i < (int)(n); i++)
#define repM(i, n) for (int i = n; i > 0; i--)
int main() {
int N;
cin >> N;
ll sum = ... | [["-", 0, 14, 8, 9, 0, 14, 49, 53, 49, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]] | 1 | 106 |
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;
import java.io.PrintWriter;
import java.util.*;
public class Main {
public static final int MOD = 1000000007;
public static void main(String[] args) {
int i, j;
Scanner sc =... | import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;
import java.io.PrintWriter;
import java.util.*;
public class Main {
public static final int MOD = 1000000007;
public static void main(String[] args) {
int i, j;
Scanner sc =... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 158 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define pb push_back
//#define pop pop_back
#define all(x) (x).begin(), (x).end()
#define mp make_pair
#define ve vector
#define vii vector<int>
#define vll vector<ll>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vpl vector<pll>
#def... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ll;
#define pb push_back
//#define pop pop_back
#define all(x) (x).begin(), (x).end()
#define mp make_pair
#define ve vector
#define vii vector<int>
#define vll vector<ll>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vpl vector<... | [["+", 36, 36, 0, 30, 0, 134, 39, 86, 0, 87], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 175 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
long long n = 0;
cin >> t;
for (int i = 1; i <= t; i++) {
if (t % 3 == 0 || t % 5 == 0)
continue;
n += (long long)t;
}
cout << n << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
long long n = 0;
cin >> t;
for (int i = 1; i <= t; i++) {
if (i % 3 == 0 || i % 5 == 0)
continue;
n += (long long)i;
}
cout << n << endl;
}
| [["-", 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], ["-", 8, 9, 0, 1, 0, 11, 12, 74, 51, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 74, 51, 22]] | 1 | 71 |
#include <stdio.h>
#define MIN(x, y) (((x) > (y)) ? (y) : (x))
#define ABS(x) ((x) >= 0 ? (x) : (-(x)))
int main() {
int n;
scanf("%d", &n);
long long sum = 0;
for (int i = 0; i < n; i++) {
if (i % 5 != 0 && i % 3 != 0) {
sum += i;
}
}
printf("%lld", sum);
return 0;
} | #include <stdio.h>
#define MIN(x, y) (((x) > (y)) ? (y) : (x))
#define ABS(x) ((x) >= 0 ? (x) : (-(x)))
int main() {
int n;
scanf("%d", &n);
long long sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 5 != 0 && i % 3 != 0) {
sum += i;
}
}
printf("%lld", 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 | 89 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
cout << sum << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long n;
cin >> n;
long long sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum += i;
}
}
cout << sum << endl;
return 0;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96]] | 1 | 69 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int n;
cin >> n;
// vector <ll> v(n);
ll s = 0;
for (int i = 0; i < n; i++) {
if (i % 3 == 0 || i % 5 == 0)
continue;
s += i;
}
cout << s << "\n";
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int n;
cin >> n;
// vector <ll> v(n);
ll s = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0)
continue;
s += i;
}
cout << s << "\n";
}
| [["-", 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 | 72 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, k = 0;
cin >> n;
long long sum = 0;
while (k < n) {
if (k % 3 != 0 && k % 5 != 0) {
sum += k;
}
k++;
}
cout << sum << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k = 1;
cin >> n;
long long sum = 0;
while (k <= n) {
if (k % 3 != 0 && k % 5 != 0) {
sum += k;
}
k++;
}
cout << sum << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 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 | 66 |
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
)
func main() {
solve(os.Stdin, os.Stdout)
}
func solve(in io.Reader, out io.Writer) {
bs := NewBufScanner(in)
bw := NewBufWriter(out)
defer bw.w.Flush()
n := bs.IntScan()
var sum int64
for i := 1; i < n; i++ {
if !(i%3 == 0 || i%5 == 0) {
sum ... | package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
)
func main() {
solve(os.Stdin, os.Stdout)
}
func solve(in io.Reader, out io.Writer) {
bs := NewBufScanner(in)
bw := NewBufWriter(out)
defer bw.w.Flush()
n := bs.IntScan()
var sum int64
for i := 1; i <= n; i++ {
if !(i%3 == 0 || i%5 == 0) {
sum... | [["-", 8, 196, 0, 7, 0, 430, 15, 16, 17, 18], ["+", 8, 196, 0, 7, 0, 430, 15, 16, 17, 19]] | 7 | 372 |
anser=0
counter=gets.chomp.to_i
1.upto counter do |c|
if c%3 != 0 && c%5 != 0
answer = anser+c
end
end
puts answer | answer=0
counter=gets.chomp.to_i
1.upto counter do |c|
if c%3 != 0 && c%5 != 0
answer = answer+c
end
end
puts answer | [["-", 36, 36, 36, 36, 0, 493, 0, 662, 31, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 662, 31, 22], ["-", 0, 121, 64, 749, 0, 662, 12, 738, 31, 22], ["+", 0, 121, 64, 749, 0, 662, 12, 738, 31, 22]] | 4 | 39 |
print(len([i for i in range(1, int(input())+1) if i%3 and i%5])) | print(sum([i for i in range(1, int(input())+1) if i%3 and i%5])) | [["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22]] | 5 | 33 |
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
using namespace std;
typedef int64_t i64;
#define SortAsc(c) std::sort(c.begin(), c.end())
#define SortDesc(c) std::sort(c.rbegin(), c.rend())
int main() {
i64 N;
cin >> N;
i64 S;
for (i64 i = 1; i <= N; i++) {
if (i % 5 == 0 && i % 3 == 0) {
co... | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
using namespace std;
typedef int64_t i64;
#define SortAsc(c) std::sort(c.begin(), c.end())
#define SortDesc(c) std::sort(c.rbegin(), c.rend())
int main() {
i64 N;
cin >> N;
i64 S = 0;
for (i64 i = 1; i <= N; i++) {
if (i % 5 == 0 && i % 3 == 0) {
... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 104 |
n = int(input())
ans = 0
for i in range(n):
if i % 3 == 0:
continue
if i % 5 == 0:
continue
ans += i
print(ans)
| n = int(input())
ans = 0
for i in range(1,n+1):
if i % 3 == 0:
continue
if i % 5 == 0:
continue
ans += i
print(ans) | [["+", 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 | 42 |
N=int(input())
ans=0
for i in range(N):
if i%3==0 or i%5==0:
continue
else:
ans +=i
print(ans) | N=int(input())
ans=0
for i in range(N+1):
if i%3==0 or i%5==0:
continue
else:
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 | 42 |
/**
* Dont raise your voice, improve your argument.
* --Desmond Tutu
*/
#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
typedef long long ll;
#define int ll
#define fori(n) for (int i = 0; i < int(n); i++)
#define cins(s) \
... | /**
* Dont raise your voice, improve your argument.
* --Desmond Tutu
*/
#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
typedef long long ll;
#define int ll
#define fori(n) for (int i = 0; i < int(n); i++)
#define cins(s) \
... | [["-", 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 | 220 |
#include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef pair<int, int> pii;
typedef map<int, int> mi;
#define rep(i, a, b) for (int i = a; i < b; i++)
int main() {
int n;
cin >> n;
long long res = 0;
rep(i, 0, n) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
} else {
... | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef pair<int, int> pii;
typedef map<int, int> mi;
#define rep(i, a, b) for (int i = a; i < b; i++)
int main() {
int n;
cin >> n;
long long res = 0;
rep(i, 1, n + 1) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
} else {
... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 103 |
#!/usr/bin/env python3
n = int(input())
ans = []
for i in range(n):
if i % 3 == 0 and 1 % 5 == 0:
fizzbuzz = 0
elif i % 3 == 0:
fizzbuzz = 0
elif i % 5 == 0:
fizzbuzz = 0
else:
ans.append(i)
print(sum(ans))
| #!/usr/bin/env python3
n = int(input())
ans = [0]
for i in range(1, n + 1):
if i % 3 == 0 and 1 % 5 == 0:
fizzbuzz = 0
elif i % 3 == 0:
fizzbuzz = 0
elif i % 5 == 0:
fizzbuzz = 0
else:
ans.append(i)
print(sum(ans))
| [["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 612], ["+", 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 | 72 |
#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() {
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
int ans = 0;
rep(i, n) { ans += ((i + 1) * ((i % 3 != 0) && (i % 5 != 0))); }
cout << an... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 1; i <= (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n;
cin >> n;
ll ans = 0;
rep(i, n) { ans += ((i) * ((i % 3 != 0) && (i % 5 != 0))); }
cout << ans;
}... | [["-", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 12, 13]] | 1 | 102 |
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int N;
cin >> N;
int64_t ans = 0;
for (int i = 0; i < N; ++i) {
if (i % 5 != 0 && i % 3 != 0) {
ans += i;
}
}
cout << ans << endl;
return 0;
} | #include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int N;
cin >> N;
int64_t ans = 0;
for (int i = 1; i <= N; ++i) {
if (i % 5 != 0 && i % 3 != 0) {
ans += i;
}
}
cout << ans << 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, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 79 |
n = int(input())
ans = []
for i in range(n):
if (i%3!=0) and (i%5!=0):
ans.append(i)
print(sum(ans))
| n = int(input())
ans = []
for i in range(1,n+1):
if (i%3!=0) and (i%5!=0):
ans.append(i)
print(sum(ans)) | [["+", 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 | 50 |
//(・ω・)
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iomanip> //setprecis... | //(・ω・)
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <deque> // deque
#include <iomanip> //setprecis... | [["-", 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 | 125 |
def main():
n = int(input())
result = 0
for i in range(n):
if i % 3 == 0 and i % 5 == 0:
continue
elif i % 3 == 0:
continue
elif i % 5 == 0:
continue
else:
result += i
print(result)
if __name__ == "__main__":
main()
| def main():
n = int(input())
result = 0
for i in range(1, n + 1):
if i % 3 == 0 and i % 5 == 0:
continue
elif i % 3 == 0:
continue
elif i % 5 == 0:
continue
else:
result += i
print(result)
if __name__ == "__main__":
ma... | [["+", 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 | 73 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i, n) for (ll i = 0; i < n; i++)
#define INF 9223372036854775807
#define all(x) (x).begin(), (x).end()
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll n;
cin >> n;
ll ans = 0;
REP(i, n) {
if (i % 3 == 0 || i % ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i, n) for (ll i = 1; i <= n; i++)
#define INF 9223372036854775807
#define all(x) (x).begin(), (x).end()
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll n;
cin >> n;
ll ans = 0;
REP(i, n) {
if (i % 3 == 0 || i ... | [["-", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59]] | 1 | 98 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int N;
cin >> N;
int ans = 0;
for (int i = 0; i < N; i++) {
if (i % 3 == 0)
continue;
if (i % 5 == 0)
continue;
ans += i;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int N;
cin >> N;
int ans = 0;
for (int i = 1; i <= N; i++) {
if (i % 3 == 0)
continue;
if (i % 5 == 0)
continue;
ans += i;
}
cout << ans << 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 | 73 |
import sys
import math
from collections import defaultdict
from collections import deque
def load(vtype=int):
return vtype(input().strip())
def load_list(seplator=" ", vtype=int):
return [vtype(v) for v in input().strip().split(seplator)]
def exit():
import sys
sys.exit(0)
def perm_sub(li, used):
i... | import sys
import math
from collections import defaultdict
from collections import deque
def load(vtype=int):
return vtype(input().strip())
def load_list(seplator=" ", vtype=int):
return [vtype(v) for v in input().strip().split(seplator)]
def exit():
import sys
sys.exit(0)
def perm_sub(li, used):
... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 658 |
#include <algorithm>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll N;
cin >> N;
ll ans = 0;
for (int i = 1; i < N; i++) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
c... | #include <algorithm>
#include <cmath>
#include <deque>
#include <iostream>
#include <map>
#include <set>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll N;
cin >> N;
ll ans = 0;
for (int i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 83 |
a= int(input())
count=0
for i in range(a) :
if i+1%3!=0 and i+1%5!=0 :
count+=i+1
print(count) | a = int(input())
count = 0
for i in range(a):
if (i + 1) % 3 != 0 and (i + 1) % 5 != 0:
count += i + 1
print(count) | [["+", 15, 679, 31, 666, 0, 657, 31, 23, 0, 24], ["+", 15, 679, 31, 666, 0, 657, 31, 23, 0, 25], ["+", 15, 679, 12, 666, 0, 657, 31, 23, 0, 24], ["+", 15, 679, 12, 666, 0, 657, 31, 23, 0, 25]] | 5 | 45 |
N = int(input())
ans = 0
for n in range(N):
if (not n % 3 == 0) and (not n % 5 == 0):
ans += n
print(ans) | N = int(input())
ans = 0
for n in range(N+1):
if (not n % 3 == 0) and (not n % 5 == 0):
ans += n
print(ans)
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 45 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
long long ans = 0;
for (int i = 0; i < N; ++i) {
if (i % 3 == 0 or i % 5 == 0) {
continue;
} else {
ans += i;
}
}
cout << ans << endl;
... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
long long ans = 0;
for (int i = 1; i <= N; ++i) {
if (i % 3 == 0 or i % 5 == 0) {
continue;
} else {
ans += i;
}
}
cout << ans << 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 | 83 |
#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 % 3 != 0 && i % 5 != 0) {
sum = sum + i;
}
}
cout << sum << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
long long sum = 0;
cin >> n;
for (int i = 1; i < n + 1; i++) {
if (i % 3 != 0 && i % 5 != 0) {
sum = sum + i;
}
}
cout << sum << endl;
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 72 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int n;
cin >> n;
ll ans = 0;
for (int i = 0; i < n; i++) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
cout << ans;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
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;
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]] | 1 | 70 |
N = int(input())
sum = 0
for i in N + 1:
if i % 3 == 0 or i % 5 == 0:
continue
else:
sum += i
print(sum) | N = int(input())
sum = 0
for i in range(N + 1):
if i % 3 == 0 or i % 5 == 0:
continue
else:
sum += i
print(sum) | [["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 25]] | 5 | 41 |
#include <bits/stdc++.h>
using i64 = int64_t;
using u64 = uint64_t;
using f32 = float;
using f64 = double;
using f80 = __float80;
template <typename C> i64 Size(const C &c) {
return static_cast<i64>(c.size());
}
template <typename C> void Sort(C &c) { std::sort(c.begin(), c.end()); }
template <typename C> void So... | #include <bits/stdc++.h>
using i64 = int64_t;
using u64 = uint64_t;
using f32 = float;
using f64 = double;
using f80 = __float80;
template <typename C> i64 Size(const C &c) {
return static_cast<i64>(c.size());
}
template <typename C> void Sort(C &c) { std::sort(c.begin(), c.end()); }
template <typename C> void So... | [["-", 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 | 388 |
#include <bits/stdc++.h>
#include <fstream>
#include <iostream>
#include <iterator>
#include <stdlib.h>
#include <string>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
inline constexpr ll gcd(ll a, ll b) {
if (!a || !b)
return 0;
while (b) {
ll c = b;
b ... | #include <bits/stdc++.h>
#include <fstream>
#include <iostream>
#include <iterator>
#include <stdlib.h>
#include <string>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
inline constexpr ll gcd(ll a, ll b) {
if (!a || !b)
return 0;
while (b) {
ll c = b;
b ... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]] | 1 | 258 |
#include <algorithm> //辞書順=next_permutation
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <locale>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stdio.h>
#include <string.h>
#include <string> //char 小文字のほうが32大きい
#include <time.h>
#... | #include <algorithm> //辞書順=next_permutation
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <locale>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stdio.h>
#include <string.h>
#include <string> //char 小文字のほうが32大きい
#include <time.h>
#... | [["-", 8, 9, 0, 57, 64, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 107], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 12, 22]] | 1 | 641 |
a=int(input())
counter=0
for i in range(a+1):
if i%15==0 or i%3==0 or i%5==0:
continue
else:
counter+=1
print(counter) | a=int(input())
counter=0
for i in range(a+1):
if i%15==0 or i%3==0 or i%5==0:
continue
else:
counter+=i
print(counter) | [["-", 75, 76, 8, 196, 0, 1, 0, 677, 12, 612], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 12, 22]] | 5 | 50 |
import java.io.*;
import java.util.*;
public class Main {
static InputStream is;
static PrintWriter out;
static String INPUT = "";
static final long mod = (long)1e9 + 7;
static final int dx[] = {-1, 0, 1, 0}, dy[] = {0, -1, 0, 1};
static final int[] dx8 = {-1, -1, -1, 0, 0, 1, 1, 1},
... | import java.io.*;
import java.util.*;
public class Main {
static InputStream is;
static PrintWriter out;
static String INPUT = "";
static final long mod = (long)1e9 + 7;
static final int dx[] = {-1, 0, 1, 0}, dy[] = {0, -1, 0, 1};
static final int[] dx8 = {-1, -1, -1, 0, 0, 1, 1, 1},
... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 2,089 |
#include <algorithm>
#include <bitset>
#include <chrono>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <stack>
#include <unordered_map>
#include <vector>
using namespace std;
using ll = long long;
const long long INF = (long long)1e18... | #include <algorithm>
#include <bitset>
#include <chrono>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <stack>
#include <unordered_map>
#include <vector>
using namespace std;
using ll = long long;
const long long INF = (long long)1e18... | [["-", 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 | 203 |
N=int(input())
count=0
for i in range(N):
if (i%3!=0) and (i%5!=0):
count=count+i
else:
continue
print(count) | N=int(input())
count=0
for i in range(N+1):
if (i%3!=0) and (i%5!=0):
count=count+i
else:
continue
print(count) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 48 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
long long sum = 0;
for (int i = 1; i <= N; i++) {
if (i % 3 || i % 5)
sum += i;
}
cout << sum << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
long long sum = 0;
for (int i = 1; i <= N; i++) {
if (i % 3 && i % 5)
sum += i;
}
cout << sum << endl;
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 64 |
#include <bits/stdc++.h>
#define eps 1e-6
#define ll long long
#define IOS \
cin.sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);... | #include <bits/stdc++.h>
#define eps 1e-6
#define ll long long
#define IOS \
cin.sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 438 |
#include <bits/stdc++.h>
#define rep(begin, end) for (i = begin; i < end; i++)
#define init(arr, val) \
for (i = 0; i < end; i++) \
arr[i] = val;
#define printint(i0, i1) printf("%d %d\n", i0, i1)
using nam... | #include <bits/stdc++.h>
#define rep(begin, end) for (i = begin; i < end; i++)
#define init(arr, val) \
for (i = 0; i < end; i++) \
arr[i] = val;
#define printint(i0, i1) printf("%d %d\n", i0, i1)
using nam... | [["+", 36, 36, 0, 30, 0, 43, 49, 50, 0, 32], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 115 |
li=[]
n=int(input())
for i in range(n):
if i%3!=0 and i%5!=0:
li.append(i)
print(sum(li)) | li=[]
n=int(input())
for i in range(1,n+1):
if i%3!=0 and i%5!=0:
li.append(i)
print(sum(li))
| [["+", 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 | 46 |
def Main(N):
ans = 0
for i in range(N):
if i%15 == 0 or i%5 == 0 or i%3 == 0:
continue
else:
ans += i
return ans
def main():
N = int(input())
print(Main(N))
if __name__ == '__main__':
main() | def Main(N):
ans = 0
for i in range(1,N+1):
if i%15 == 0 or i%5 == 0 or i%3 == 0:
continue
else:
ans += i
return ans
def main():
N = int(input())
print(Main(N))
if __name__ == '__main__':
main() | [["+", 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 | 74 |
//
// header_useful.h
// c++_acm
//
// Created by 李弘辰 on 2019/7/23.
// Copyright © 2019 李弘辰. All rights reserved.
//
#include <algorithm> // sort
#include <bitset>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <st... | //
// header_useful.h
// c++_acm
//
// Created by 李弘辰 on 2019/7/23.
// Copyright © 2019 李弘辰. All rights reserved.
//
#include <algorithm> // sort
#include <bitset>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <st... | [["-", 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 | 229 |
N = int(input())
p = []
for i in range(N):
if i % 3 != 0 and i % 5 != 0:
p.append(i)
q = 0
for i in range(len(p)):
q = q+p[i]
print(q) | N = int(input())
p = []
for i in range(1,N+1):
if i % 3 != 0 and i % 5 != 0:
p.append(i)
q = 0
for i in range(len(p)):
q = q+p[i]
print(q) | [["+", 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 | 65 |
package main
import "fmt"
func main() {
var n int64
fmt.Scan(&n)
var sum int64
for i := int64(0); i < n; i++ {
if i%3 != 0 && i%5 != 0 {
sum += i
}
}
fmt.Println(sum)
}
| package main
import "fmt"
func main() {
var n int64
fmt.Scan(&n)
var sum int64
for i := int64(1); i <= n; i++ {
if i%3 != 0 && i%5 != 0 {
sum += i
}
}
fmt.Println(sum)
}
| [["-", 10, 431, 12, 432, 0, 2, 3, 4, 0, 433], ["+", 10, 431, 12, 432, 0, 2, 3, 4, 0, 433], ["-", 8, 196, 0, 7, 0, 430, 15, 16, 17, 18], ["+", 8, 196, 0, 7, 0, 430, 15, 16, 17, 19]] | 7 | 74 |
N = int (input ())
S = 0
for i in range (1 , N+1):
if (i % 3 != 0) and (i % 5 != 0):
S += i | N = int (input ())
S = 0
for i in range (1 , N+1):
if (i % 3 != 0) and (i % 5 != 0):
S += i
print(S) | [["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 43 |
#include <bits/stdc++.h>
using namespace std;
// ofstream cout("output.out");
#define fast() \
{ \
ios_base::sync_with_stdio(0); ... | #include <bits/stdc++.h>
using namespace std;
// ofstream cout("output.out");
#define fast() \
{ \
ios_base::sync_with_stdio(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]] | 1 | 109 |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned uint;
typedef long long INT;
typedef unsigned long long UINT;
const int INF = 1001001001;
const INT INFLL = 1001001001001001001LL;
int in() {
int x;
scanf("%d", &x);
return x;
}
double fin() {
double x;
scanf("%lf", &x);
return x;
}
INT lin() ... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned uint;
typedef long long INT;
typedef unsigned long long UINT;
const int INF = 1001001001;
const INT INFLL = 1001001001001001001LL;
int in() {
int x;
scanf("%d", &x);
return x;
}
double fin() {
double x;
scanf("%lf", &x);
return x;
}
INT lin() ... | [["-", 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 | 195 |
a = gets.chomp.to_i
sum = 0
(1...a).each do |i|
unless (i%3==0 || i%5==0)
sum += i
end
end
puts sum | a = gets.chomp.to_i
sum = 0
(1..a).each do |i|
unless (i%3==0 || i%5==0)
sum += i
end
end
puts sum | [["-", 0, 493, 0, 652, 486, 739, 0, 475, 17, 389], ["+", 0, 493, 0, 652, 486, 739, 0, 475, 17, 757]] | 4 | 42 |
n = int(input())
for i in range(1, n+1):
if i%3==0 or i%5==0:
sum += i
print(sum) | n = int(input())
sum = 0
for i in range(1, n+1):
if not(i%3==0 or i%5==0):
sum += i
print(sum) | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 681, 0, 372], ["+", 8, 196, 0, 57, 15, 681, 28, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 681, 28, 23, 0, 25]] | 5 | 40 |
#include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
using namespace std;
int main() {
ll n;
cin >> n;
ll ans = 0;
for (ll i = 0; i < n; ++i) {
if (i % 3 != 0 and i % 5 != 0) {
ans += i;
}
}
cout << ans << endl;
} | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
using namespace std;
int main() {
ll n;
cin >> n;
ll ans = 0;
for (ll i = 1; i <= n; ++i) {
if (i % 3 != 0 and i % 5 != 0) {
ans += i;
}
}
cout << ans << 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 | 77 |
N = int(input())
cnt += 0
for i in range(N):
if i%5!=0 and i%3!=0:
cnt += i
print(cnt) | N = int(input())
cnt = 0
for i in range(N+1):
if i%5!=0 and i%3!=0:
cnt += i
print(cnt) | [["-", 36, 36, 0, 656, 0, 1, 0, 677, 17, 107], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 39 |
#include <bits/stdc++.h>
using namespace std;
#define REP1(i, n) for (int i = 1, i##_len = (n); i < i##_len; ++i)
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define pow(x) x *x
#define ll long long
static const ll MAX = 1000000;
static const ll INFTY = 1e12;
static const ll MOD = 1000000007;
... | #include <bits/stdc++.h>
using namespace std;
#define REP1(i, n) for (int i = 1, i##_len = (n); i < i##_len; ++i)
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define pow(x) x *x
#define ll long long
static const ll MAX = 1000000;
static const ll INFTY = 1e12;
static const ll MOD = 1000000007;
... | [["+", 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 | 280 |
n=input()
cnt=0
for i in range(1,n+1):
if i%3==0 or i%5==0:
cnt+=0
else:
cnt+=i
print(cnt)
| n=int(input())
cnt=0
for i in range(1,n+1):
if i%3==0 or i%5==0:
cnt+=0
else:
cnt+=i
print(cnt)
| [["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 45 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
long long 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 namespace std;
int main() {
int n;
cin >> n;
long long ans = 0;
for (int i = 1; i <= n; ++i) {
if (i % 3 != 0 && i % 5 != 0)
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 | 65 |
n = int(input())
cnt = 0
for i in range(n):
if i%15==0 :
continue
elif i%5==0 and i%3!=0:
continue
elif i%3==0 and i%5!=0:
continue
else :
cnt += i
print(cnt) | n = int(input())
cnt = 0
for i in range(1, n+1):
if i%15==0 :
continue
elif i%5==0 and i%3!=0:
continue
elif i%3==0 and i%5!=0:
continue
else :
cnt += i
print(cnt) | [["+", 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 | 64 |
#include <bits/stdc++.h>
#define sz(a) (int)a.size()
#define re return
#define fi first
#define se second
#define pb push_back
#define all(a) a.begin(), a.end()
#define gr greater<int>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse... | #include <bits/stdc++.h>
#define sz(a) (int)a.size()
#define re return
#define fi first
#define se second
#define pb push_back
#define all(a) a.begin(), a.end()
#define gr greater<int>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 190 |
#include <iostream>
#include <vector>
// #include <algorithm>
// #include <set>
// #include <cmath>
// #include <string>
using namespace std;
typedef unsigned long long ull;
int main(int argc, char const *argv[]) {
int N;
cin >> N;
ull ans = 0;
for (int i = 0; i < N; i++) {
if (i % 3 != 0 && i % 5 != 0) ... | #include <iostream>
#include <vector>
// #include <algorithm>
// #include <set>
// #include <cmath>
// #include <string>
using namespace std;
typedef unsigned long long ull;
int main(int argc, char const *argv[]) {
int N;
cin >> N;
ull ans = 0;
for (int i = 1; i <= N; i++) {
if (i % 3 != 0 && i % 5 != 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]] | 1 | 90 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define ll long long
#define all(x) (x).begin(), (x).end()
int main() {
int n;
cin >> n;
int sum = 0;
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;
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define ll long long
#define all(x) (x).begin(), (x).end()
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 << endl;
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 81 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll a;
cin >> a;
ll ans = 0;
for (int i = 0; i < a; ++i) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll a;
cin >> a;
ll ans = 0;
for (int i = 0; i <= a; ++i) {
if (i % 3 != 0 && i % 5 != 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 | 70 |
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(v) begin(v), end(v)
#define fi first
#define se second
template <typename A, typename B> inline bool chmax(A &a, B b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(v) begin(v), end(v)
#define fi first
#define se second
template <typename A, typename B> inline bool chmax(A &a, B b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 230 |
// Last Change: 04/12/2020 21:04:47.
#include <algorithm>
#include <array>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <set>
#include <s... | // Last Change: 04/12/2020 21:16:18.
#include <algorithm>
#include <array>
#include <bitset>
#include <cmath>
#include <complex>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <set>
#include <s... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 110 |
#include <iostream>
using namespace std;
int main() {
int n;
long long int ans = 0;
cin >> n;
for (int i = 0; i < n; i++) {
if (i % 3 == 0 || i % 5 == 0)
continue;
ans += i;
}
cout << ans << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int n;
long long int ans = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0)
continue;
ans += i;
}
cout << ans << 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, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 71 |
import java.util.*;
import java.util.Map.Entry;
class Main {
static int mod = (int)(Math.pow(10, 9) + 7);
static List<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>();
static int a_dist[];
// static int mod = 998244353;
public static void main(String[] args) {
Scanner sc = new Scanner(Syst... | import java.util.*;
import java.util.Map.Entry;
class Main {
static int mod = (int)(Math.pow(10, 9) + 7);
static List<ArrayList<Integer>> list = new ArrayList<ArrayList<Integer>>();
static int a_dist[];
// static int mod = 998244353;
public static void main(String[] args) {
Scanner sc = new Scanner(Syst... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 152 |
#MLE注意!
def main():
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
#from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby
#from itertools import product
from bisect import bise... | #MLE注意!
def main():
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)
from collections import Counter, deque
#from collections import defaultdict
from itertools import combinations, permutations, accumulate, groupby
#from itertools import product
from bisect import bise... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 114 |
import java.io.*;
import java.math.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
long ans = 0;
for (int i = 0; i < n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
... | import java.io.*;
import java.math.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
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) {
continue;
... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 112 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
long sum = 0;
for (int i = 0; i < n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
sum += (long)i;
}
System.ou... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
long sum = 0;
for (long i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
sum += i;
}
System.out.pr... | [["-", 8, 196, 0, 7, 502, 503, 39, 506, 0, 507], ["+", 8, 196, 0, 7, 502, 503, 39, 506, 0, 96], ["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19], ["-", 8, 196, 0, 1, 0, 11, 12, 74, 0... | 3 | 99 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define int long long
#define INF 1e9 + 7
#define cae cout << ans << endl;
#define cye cout << "Yes" << e... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 1; i <= (n); i++)
#define int long long
#define INF 1e9 + 7
#define cae cout << ans << endl;
#define cye cout << "Yes" << ... | [["-", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59]] | 1 | 111 |
N = int(input())
ans = 0
for i in range(1, N):
if i % 3 == 0:
continue
if i % 5 == 0:
continue
ans += i
print(ans)
| N = int(input())
ans = 0
for i in range(N + 1):
if i % 3 == 0:
continue
if i % 5 == 0:
continue
ans += i
print(ans)
| [["-", 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 | 44 |
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
ll GCD(ll a, ll b) { return a ? GCD(b % a, a) : b; }
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 << endl;
} | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
ll GCD(ll a, ll b) { return a ? GCD(b % a, a) : b; }
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 << 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, 15, 339, 0, 24], ["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 25], ["+", 15, 339, 51, 16, 12, 16, 31, 23, 0, 24], ["+", 15, 339, 51, 16, 12, 16, 31, 23, 0, 25]] | 1 | 95 |
#include <bits/stdc++.h>
#define inf 100000000000
#define int long long int
#define hell (int)(1e9 + 7)
using namespace std;
void solve() {
int n;
cin >> n;
int ans = 0;
for (int i = 0; i < n; i++) {
int x = i;
if (x % 3 != 0 && x % 5 != 0)
ans += x;
}
cout << ans;
}
signed main() {
ios_b... | #include <bits/stdc++.h>
#define inf 100000000000
#define int long long int
#define hell (int)(1e9 + 7)
using namespace std;
void solve() {
int n;
cin >> n;
int ans = 0;
for (int i = 0; i <= n; i++) {
int x = i;
if (x % 3 != 0 && x % 5 != 0)
ans += x;
}
cout << ans;
}
signed main() {
ios_... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 125 |
n=int(input())
s=0
for i in range(n):
if(i%3!=0 and i%5!=0):
s+=i
print(s) | n=int(input())
s=0
for i in range(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 | 41 |
#include <bits/stdc++.h>
using namespace std;
int main() {
#ifdef LOCAL
freopen("in.txt", "r", stdin);
freopen("out.txt", "w", stdout);
#endif
int n;
cin >> n;
int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 or i % 5 == 0)
continue;
sum += i;
}
cout << sum;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
#ifdef LOCAL
freopen("in.txt", "r", stdin);
freopen("out.txt", "w", stdout);
#endif
int n;
cin >> n;
long long sum = 0;
for (long long i = 1; i <= n; i++) {
if (i % 3 == 0 or i % 5 == 0)
continue;
sum += i;
}
cout << sum;
} | [["-", 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 | 93 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
template <typename T> bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <typename T> bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
#define rep(i, n) for (int i ... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
template <typename T> bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <typename T> bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
#define rep(i, n) for (int i ... | [["+", 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 | 205 |
#include <bits/stdc++.h>
using namespace std;
#define DEBUG
#ifdef DEBUG
#define dump(x) cout << "[*] " #x ": " << x << endl
#define debug(x) x
#else
#define dump(x)
#define debug(x)
#endif
//#define int long long
typedef long long ll;
// constexpr int INF = 1e9;
// constexpr int MOD = 1000000007;
decltype(1) main(... | #include <bits/stdc++.h>
using namespace std;
#define DEBUG
#ifdef DEBUG
#define dump(x) cout << "[*] " #x ": " << x << endl
#define debug(x) x
#else
#define dump(x)
#define debug(x)
#endif
//#define int long long
typedef long long ll;
// constexpr int INF = 1e9;
// constexpr int MOD = 1000000007;
decltype(1) main(... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 119 |
from sys import stdin
import sys
# A, B, C = [int(x) for x in stdin.readline().rstrip().split()]
# A,B = [int(x) for x in stdin.readline().rstrip().split()]
# U = input().split()
# A, B = [str(x) for x in stdin.readline().rstrip().split()]
N = int(input())
ans = 0
for i in range(N):
if i % 3 != 0 and i % 5 != 0:
... | from sys import stdin
import sys
# A, B, C = [int(x) for x in stdin.readline().rstrip().split()]
# A,B = [int(x) for x in stdin.readline().rstrip().split()]
# U = input().split()
# A, B = [str(x) for x in stdin.readline().rstrip().split()]
N = int(input())
ans = 0
for i in range(N+1):
if i % 3 != 0 and i % 5 != 0... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 49 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#define pb push_back
#define pii pair<long long, long long>
#define endl '\n'
void solve() {
int n;
cin >> n;
int sum = 0;
for (int i = 0; i < n; i++) {
if (i % 3 == 0... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#define pb push_back
#define pii pair<long long, long long>
#define endl '\n'
void solve() {
int n;
cin >> n;
int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == ... | [["-", 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 | 136 |
N = int(input())
print(sum([i if i % 3 > 0 and i % 5 > 0 else 0 for i in range(N)])) | N = int(input())
print(sum([i if i % 3 > 0 and i % 5 > 0 else 0 for i in range(N + 1)])) | [["+", 0, 659, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 659, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 38 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pint = pair<int, int>;
using pll = pair<ll, ll>;
using Edge = pair<int, ll>;
using Graph = vector<vector<int>>;
using WeightedGraph = vector<vector<Edge>>;
const ll INF64 = 1LL << 60;
const int INF32 = 1 << 29;
const ll MO... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pint = pair<int, int>;
using pll = pair<ll, ll>;
using Edge = pair<int, ll>;
using Graph = vector<vector<int>>;
using WeightedGraph = vector<vector<Edge>>;
const ll INF64 = 1LL << 60;
const int INF32 = 1 << 29;
const ll MO... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 256 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pl;
#define all(a) (a).begin(), (a).end()
#define overload4(_1, _2, _3, _4, name, ...) name
#define rep1(n) for (ll i = 0; i < (n); i++)
#define rep2(i, n) for (ll i = 0; i < (n); i++)
#define rep3(i, a, b) for (ll i = (a); i < (b)... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pl;
#define all(a) (a).begin(), (a).end()
#define overload4(_1, _2, _3, _4, name, ...) name
#define rep1(n) for (ll i = 0; i < (n); i++)
#define rep2(i, n) for (ll i = 0; i < (n); i++)
#define rep3(i, a, b) for (ll i = (a); i < (b)... | [["+", 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 | 384 |
#include <algorithm>
#include <cstdio>
int main() {
int n;
scanf("%d", &n);
long long ans = 0;
for (int i = 1; i < n; ++i) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
ans += (long long)i;
}
printf("%lld\n", ans);
}
| #include <algorithm>
#include <cstdio>
int main() {
int n;
scanf("%d", &n);
long long ans = 0;
for (int i = 1; i <= n; ++i) {
if (i % 3 == 0 || i % 5 == 0) {
continue;
}
ans += (long long)i;
}
printf("%lld\n", ans);
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 81 |
#include <bits/stdc++.h>
#define fi first
#define se second
#define sz(a) (int)(a).size()
#define all(a) (a).begin(), (a).end()
#define reset(a, v) memset((a), v, sizeof(a))
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<ii> vii;
... | #include <bits/stdc++.h>
#define fi first
#define se second
#define sz(a) (int)(a).size()
#define all(a) (a).begin(), (a).end()
#define reset(a, v) memset((a), v, sizeof(a))
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<ii> vii;
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 140 |
n = int(input())
a = [0]*n
for i in range(1, n+1):
if i % 3 == 0 or i % 5 == 0:
pass
else:
a[i] = i
print(sum(a))
| n = int(input())
a = [0]*n
for i in range(1, n+1):
if i % 3 == 0 or i % 5 == 0:
pass
else:
a[i-1] = i
print(sum(a))
| [["+", 0, 1, 0, 662, 31, 206, 206, 657, 17, 33], ["+", 0, 1, 0, 662, 31, 206, 206, 657, 12, 612]] | 5 | 56 |
#include <bits/stdc++.h>
#define ll long long
#define loop(n) for (ll i = 0; i < n; i++)
#define sort(a) sort(a.rbegin(), a.rend())
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n, sum = 0;
cin >> n;
loop(n) {
if ((i + 1) % 3 == 0 || (i + 1) % 5 == 0)
continue;
sum... | #include <bits/stdc++.h>
#define ll long long
#define loop(n) for (ll i = 0; i < n; i++)
#define sort(a) sort(a.rbegin(), a.rend())
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll n, sum = 0;
cin >> n;
loop(n) {
if ((i + 1) % 3 == 0 || (i + 1) % 5 == 0)
continue;
sum ... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]] | 1 | 99 |
N = int(input())
a = []
for i in range(N):
if(i%3!=0 and i%5!=0):
a.append(i)
print(sum(a)) | N = int(input())
a = []
for i in range(1,N+1):
if(i%3!=0 and i%5!=0):
a.append(i)
print(sum(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 | 48 |
// ABC162 B
#include <bits/stdc++.h>
using namespace std;
typedef long long lint;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define reps(i, s, n) for (int i = s; i < (int)(n); i++)
const lint mod = 1000000007;
lint ans = 0;
lint n;
int main() {
cin >> n;
rep(i, n) {
if (i % 3 != 0 && i % 5 != 0) ... | // ABC162 B
#include <bits/stdc++.h>
using namespace std;
typedef long long lint;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define reps(i, s, n) for (int i = s; i < (int)(n); i++)
const lint mod = 1000000007;
lint ans = 0;
lint n;
int main() {
cin >> n;
rep(i, n + 1) {
if (i % 3 != 0 && i % 5 !=... | [["+", 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 | 92 |
if __name__ == "__main__":
n = int(input())
ans = 0
for i in range(n):
if i % 3 == 0 or i % 5 == 0:
pass
else:
ans += i
print(ans)
| if __name__ == "__main__":
n = int(input())
ans = 0
for i in range(1, n+1):
if i % 3 == 0 or i % 5 == 0:
pass
else:
ans += i
print(ans)
| [["+", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 64, 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 | 49 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
int n;
cin >> n;
ll ans = 0;
rep(i, n) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
cout << ans << endl;
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 1; i <= n; i++)
typedef long long ll;
using namespace std;
int main() {
int n;
cin >> n;
ll ans = 0;
rep(i, n) {
if (i % 3 != 0 && i % 5 != 0)
ans += i;
}
cout << ans << endl;
return 0;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59]] | 1 | 72 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int n, ans = 0;
cin >> n;
rep(i, n) if ((i + 1) % 3 != 0 and (i + 1) % 5 != 0) ans += i + 1;
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int n;
long long ans = 0;
cin >> n;
rep(i, n) if ((i + 1) % 3 != 0 and (i + 1) % 5 != 0) ans += i + 1;
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 | 72 |
n = int(input())
ans = 0
for i in range(n):
if not(i%3==0 or i%5==0):
ans += i
print(ans) | n = int(input())
ans = 0
for i in range(n+1):
if not(i%3==0 or 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 | 42 |
#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
#define in(s) cin... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
#define in(s) cin... | [["-", 0, 14, 8, 9, 0, 14, 49, 53, 49, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 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 | 129 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) \
; \
for (long long i = 0; i < (n); i++)
using ll = long long;
using vl = vector<long long>;
using P = pair<long lo... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) \
; \
for (long long i = 0; i < (n); i++)
using ll = long long;
using vl = vector<long long>;
using P = pair<long lo... | [["-", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13], ["+", 12, 16, 31, 16, 31, 23, 0, 16, 12, 13]] | 1 | 102 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#incl... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#incl... | [["+", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 116 |
#include <bits/stdc++.h>
using namespace std;
void solve() {
int n;
cin >> n;
long long ans = 0;
for (int i = 1; i < n; i++) {
if (i % 3 == 0 || i % 5 == 0)
continue;
ans += i;
}
cout << ans;
}
int main() {
ios::sync_with_stdio(NULL), cin.tie(0), cout.tie(0);
cout.setf(ios::fixed), cout... | #include <bits/stdc++.h>
using namespace std;
void solve() {
int n;
cin >> n;
long long ans = 0;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 5 == 0)
continue;
ans += i;
}
cout << ans;
}
int main() {
ios::sync_with_stdio(NULL), cin.tie(0), cout.tie(0);
cout.setf(ios::fixed), cou... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 112 |
from collections import deque
from heapq import heapify,heappop,heappush,heappushpop
from copy import copy,deepcopy
from itertools import permutations,combinations
from collections import Counter
from pprint import pprint
def myinput():
return map(int,input().split())
def mycol(data,col):
return [ row[col] fo... | from collections import deque
from heapq import heapify,heappop,heappush,heappushpop
from copy import copy,deepcopy
from itertools import permutations,combinations
from collections import Counter
from pprint import pprint
def myinput():
return map(int,input().split())
def mycol(data,col):
return [ row[col] fo... | [["+", 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 | 232 |
from math import *
n = int(input())
ans = 0
for i in range(n):
if i % 3 == 0 or i % 5 == 0:
pass
else:
ans += i
print(ans)
| from math import *
n = int(input())
ans = 0
for i in range(1, n + 1):
if i % 3 == 0 or i % 5 == 0:
pass
else:
ans += i
print(ans)
| [["+", 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 | 46 |
import sys
sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline
n = int(input())
ans = 0
for i in range(n):
if i%5 != 0 and i%3!=0:
ans += i
print(ans) | import sys
sys.setrecursionlimit(10 ** 7)
input = sys.stdin.readline
n = int(input())
ans = 0
for i in range(1,n+1):
if i%5!= 0 and i%3!=0:
ans += i
print(ans) | [["+", 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 | 56 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<string> vs;
typedef pair<ll, ll> pair_t;
using Graph = vector<vector<ll>>;
#define FOR(i, a, b) for (ll i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
/***** define constant start *******/
const ll MOD = 1... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<string> vs;
typedef pair<ll, ll> pair_t;
using Graph = vector<vector<ll>>;
#define FOR(i, a, b) for (ll i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
/***** define constant start *******/
const ll MOD = 1... | [["+", 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 | 187 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.