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 |
|---|---|---|---|---|
// file creato da gio il 2020-06-24 21:46:28.896077
#include <bits/stdc++.h>
#define FAST
#ifdef FAST
#pragma GCC optimize("Ofast")
#pragma GCC target( \
"fma,sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native")
#pragma GCC optimize("unroll-loop... | // file creato da gio il 2020-06-24 21:46:28.896077
#include <bits/stdc++.h>
#define FAST
#ifdef FAST
#pragma GCC optimize("Ofast")
#pragma GCC target( \
"fma,sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native")
#pragma GCC optimize("unroll-loop... | [["-", 64, 9, 0, 1, 0, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 23, 0, 25]] | 1 | 138 |
#include <algorithm>
#include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)
#define ll lon... | #include <algorithm>
#include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL)
#define ll lon... | [["+", 0, 16, 31, 16, 12, 16, 12, 2, 63, 22], ["+", 31, 16, 12, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 12, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 12, 16, 12, 2, 3, 4, 0, 21], ["+", 31, 16, 12, 16, 12, 2, 3, 4, 0, 25]] | 1 | 148 |
#include <bits/stdc++.h>
#define llong long long
#define mkpr make_pair
#define x first
#define y second
#define iter iterator
#define riter reversed_iterator
#define y1 Lorem_ipsum_
#define tm dolor_sit_amet_
using namespace std;
inline int read() {
int x = 0, f = 1;
char ch = getchar();
for (; !isdigit(ch); ch... | #include <bits/stdc++.h>
#define llong long long
#define mkpr make_pair
#define x first
#define y second
#define iter iterator
#define riter reversed_iterator
#define y1 Lorem_ipsum_
#define tm dolor_sit_amet_
using namespace std;
inline int read() {
int x = 0, f = 1;
char ch = getchar();
for (; !isdigit(ch); ch... | [["-", 3, 4, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 3, 4, 0, 16, 12, 2, 3, 4, 0, 13]] | 1 | 173 |
#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
int r;
while (b > 0) {
r = a % b;
a = b;
b = r;
}
return a;
}
int main() {
int k;
cin >> k;
int y = gcd(360, k);
cout << 360 / y * k / y;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
int r;
while (b > 0) {
r = a % b;
a = b;
b = r;
}
return a;
}
int main() {
int k;
cin >> k;
int y = gcd(360, k);
cout << 360 / y << endl;
return 0;
}
| [["-", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48], ["-", 0, 1, 0, 16, 12, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 12, 16, 17, 85], ["-", 8, 9, 0, 1, 0, 16, 12, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 81 |
n=int(input())
print(int(360/math.gcd(n,360))) | import math
n=int(input())
print(int(360/math.gcd(n,360))) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 24 |
#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
if (a % b == 0) {
return (b);
} else {
return (gcd(b, a % b));
}
}
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
int main() {
long long n;
cin >> n;
long long kotae = 0;
if (360 % n ==... | #include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
if (a % b == 0) {
return (b);
} else {
return (gcd(b, a % b));
}
}
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
int main() {
long long n;
cin >> n;
long long kotae = 0;
if (360 % n ==... | [["+", 75, 76, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 75, 76, 0, 1, 0, 11, 12, 16, 12, 22]] | 1 | 129 |
import sys
import math
import numpy as np
import functools
import operator
import collections
import itertools
X=int(input())
ans=1
for i in range(1,100000):
if X*i==360:
print(ans)
sys.exit()
ans+=1 | import sys
import math
import numpy as np
import functools
import operator
import collections
import itertools
X=int(input())
ans=1
for i in range(1,100000):
if (X*i)%360==0:
print(ans)
sys.exit()
ans+=1 | [["+", 0, 57, 15, 666, 0, 657, 31, 23, 0, 24], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 57, 15, 666, 0, 657, 31, 23, 0, 25], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 56 |
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdint>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#de... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdint>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#de... | [["-", 12, 16, 12, 2, 3, 4, 0, 16, 31, 13], ["-", 12, 16, 12, 2, 3, 4, 0, 16, 17, 33]] | 1 | 170 |
x = int(input())
for k in range(1, 10000):
if (180-x)*k % 360 == 0:
print(k)
break
| x = int(input())
for k in range(1, 10000):
if x*k % 360 == 0:
print(k)
break
| [["-", 15, 666, 0, 657, 31, 657, 31, 23, 0, 24], ["-", 0, 657, 31, 657, 31, 23, 0, 657, 31, 612], ["-", 0, 657, 31, 657, 31, 23, 0, 657, 17, 33], ["-", 15, 666, 0, 657, 31, 657, 31, 23, 0, 25]] | 5 | 36 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int i = 1, s = 0;
while (s != 0) {
s = (i * n) % 360;
i++;
}
cout << i - 1;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int i = 1, s = 1;
while (s != 0) {
s = (i * n) % 360;
i++;
}
cout << i - 1;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 58 |
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 < 361; i++) {
if (i * n % 360 == 0) {
ans = i;
break;
}
}
System.out.println(ans);
}
} | 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 < 361; i++) {
if (i * n % 360 == 0) {
ans = i;
break;
}
}
System.out.println(ans);
}
} | [["-", 0, 493, 0, 235, 8, 498, 0, 195, 141, 22], ["+", 0, 493, 0, 235, 8, 498, 0, 195, 141, 22]] | 3 | 92 |
// In the name of GOD
#include <bits/stdc++.h>
#define ll long long
#define pp pair<int, int>
using namespace std;
const ll N = 1e5 + 15, MOD = 998244353;
void solve() {
int x;
cin >> x;
for (int i = 1; i <= 360; i++) {
if (i * x >= 360) {
cout << i << "\n";
return;
}
}
}
int main() {
i... | // In the name of GOD
#include <bits/stdc++.h>
#define ll long long
#define pp pair<int, int>
using namespace std;
const ll N = 1e5 + 15, MOD = 998244353;
void solve() {
int x;
cin >> x;
for (int i = 1; i <= 10000000; i++) {
if (i * x % 360 == 0) {
cout << i << "\n";
return;
}
}
}
int mai... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 120 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#ifdef tabr
#include "library/debug.cpp"
#else
#define debug(...)
#endif
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x;
cin >> x;
int angle = 0;
int ans = 0;
do {
angle += 180 - x;
angle %= 360;
ans++;
} while... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#ifdef tabr
#include "library/debug.cpp"
#else
#define debug(...)
#endif
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x;
cin >> x;
int angle = 0;
int ans = 0;
do {
angle += x;
angle %= 360;
ans++;
} while (angl... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33]] | 1 | 94 |
#!/usr/bin/env python3
X = int(input())
index = 1
while True:
if X * index % 180 == 0:
print(index*2)
break
index += 1
| #!/usr/bin/env python3
X = int(input())
index = 1
while True:
if X * index % 360 == 0:
print(index)
break
index += 1
| [["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 34 |
x = int(input())
k = 1
d = 180 - x
while d % 360 != 0:
k += 1
d += 180 - x
print(k) | x = int(input())
k = 1
d = x
while d % 360 != 0:
k += 1
d += x
print(k) | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 31, 612], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 33], ["-", 8, 196, 0, 1, 0, 677, 12, 657, 31, 612], ["-", 8, 196, 0, 1, 0, 677, 12, 657, 17, 33]] | 5 | 35 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
using namespace s... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
using namespace s... | [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 250 |
X = int(input())
K=1
y=X % 360
while y != 0:
K+=1
y=(y+X)% 360
#
print(k)
| X = int(input())
K=1
y=X % 360
while y != 0:
K+=1
y=(y+X)% 360
#
print(K)
| [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 38 |
x = int(input())
for i in range(1000):
if x * (i+1) == 360:
print(i+1)
exit() | x = int(input())
for i in range(1000):
if x * (i+1) % 360 == 0:
print(i+1)
exit()
| [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 36 |
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): retur... | import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): retur... | [["+", 0, 652, 3, 4, 0, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 22], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 21], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25]] | 5 | 158 |
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
for (int i = 0; i <= 360; ++i) {
if (x * i % 360 == 0) {
cout << i << endl;
return 0;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
for (int i = 1; i <= 360; ++i) {
if (x * i % 360 == 0) {
cout << i << endl;
return 0;
}
}
return 0;
}
| [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 59 |
#include <bits/stdc++.h>
#define P pair<int, int>
using namespace std;
int main() {
int x;
cin >> x;
for (int i = 1;; i++) {
if (i * (180 - x) % 360 == 0) {
cout << i << endl;
return 0;
}
}
}
| #include <bits/stdc++.h>
#define P pair<int, int>
using namespace std;
int main() {
int x;
cin >> x;
for (int i = 1;; i++) {
if ((i * x) % 360 == 0) {
cout << i << endl;
return 0;
}
}
}
| [["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 24], ["-", 51, 16, 31, 16, 31, 16, 12, 23, 0, 24], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 31, 13], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 33]] | 1 | 60 |
#include <algorithm>
#include <bits/stdc++.h>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#includ... | #include <algorithm>
#include <bits/stdc++.h>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#includ... | [["+", 12, 23, 0, 16, 31, 16, 31, 16, 31, 22], ["+", 12, 23, 0, 16, 31, 16, 31, 16, 17, 85], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 85], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 12, 22]] | 1 | 1,115 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int i = 0, count = 0;
for (;; i += x) {
count++;
if (i % 360 == 0)
break;
}
System.out.println(i / x);
}
} | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int i = x, count = 1;
for (;; i += x) {
count++;
if (i % 360 == 0)
break;
}
System.out.println(i / x);
}
}
| [["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 22], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]] | 3 | 86 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
#define endl '\n'
#define PI 3.14159265
#define ff first
#define ss second
#define tab '\t'
#define deb cout << "error" << endl
#define uset unordered_set
#define mset multiset
#define umap unordered_map
#define... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
#define endl '\n'
#define PI 3.14159265
#define ff first
#define ss second
#define tab '\t'
#define deb cout << "error" << endl
#define uset unordered_set
#define mset multiset
#define umap unordered_map
#define... | [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 22], ["-", 0, 14, 8, 9, 0, 7, 26, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 26, 11, 12, 22], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9,... | 1 | 96 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int X;
cin >> X;
int g = __gcd(360, 180 - X);
int K = 360 / g;
cout << K << "\n";
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int X;
cin >> X;
int g = __gcd(360, X);
int K = 360 / g;
cout << K << "\n";
return 0;
} | [["-", 49, 50, 51, 2, 3, 4, 0, 16, 31, 13], ["-", 49, 50, 51, 2, 3, 4, 0, 16, 17, 33]] | 1 | 51 |
#include <algorithm>
#include <bits/stdc++.h>
#define MIN(a, b) (a < b ? a : b)
#define MAX(a, b) (a > b ? a : b)
#define pi 3.14159265358979323846264338327950288419716939937510582097494459230
// BIT operation
#define SET_BIT (a, x)(a |= ((1 << x)))
#define CLEAR_BIT(a, x) (a &= (~(1 << x)))
#define IS_SET (a, x)((a >... | #include <algorithm>
#include <bits/stdc++.h>
#define MIN(a, b) (a < b ? a : b)
#define MAX(a, b) (a > b ? a : b)
#define pi 3.14159265358979323846264338327950288419716939937510582097494459230
// BIT operation
#define SET_BIT (a, x)(a |= ((1 << x)))
#define CLEAR_BIT(a, x) (a &= (~(1 << x)))
#define IS_SET (a, x)((a >... | [["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 85], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 22]] | 1 | 177 |
import math
y = int(input())
print(y*360//math.gcd(y,360)) | import math
y = int(input())
print(360//math.gcd(y,360)) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]] | 5 | 25 |
X = int(input)
ans = 0
while(1):
ans += 1
if (X * ans) % 360 == 0:
print(ans)
break | X = int(input())
ans = 0
while(1):
ans += 1
if (X * ans) % 360 == 0:
print(ans)
break | [["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 33 |
#include <bits/stdc++.h>
#include <iostream>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define ll long long
#define li long int
#define pp pair<int, int>
#define lb lower_bound
#define... | #include <bits/stdc++.h>
#include <iostream>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define ll long long
#define li long int
#define pp pair<int, int>
#define lb lower_bound
#define... | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13]] | 1 | 105 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
cout << (360 / x) << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
cout << (360 / __gcd(360, x)) << endl;
return 0;
}
| [["+", 31, 16, 12, 23, 0, 16, 12, 2, 63, 22], ["+", 12, 23, 0, 16, 12, 2, 3, 4, 0, 24], ["+", 12, 23, 0, 16, 12, 2, 3, 4, 0, 13], ["+", 12, 23, 0, 16, 12, 2, 3, 4, 0, 21], ["+", 12, 23, 0, 16, 12, 2, 3, 4, 0, 25]] | 1 | 32 |
import sys
sys.setrecursionlimit(10**9)
def mi(): return map(int,input().split())
def ii(): return int(input())
def isp(): return input().split()
def main():
X = ii()
print(360//math.gcd(X,360))
if __name__ == "__main__":
main()
| import math
import sys
sys.setrecursionlimit(10**9)
def mi(): return map(int,input().split())
def ii(): return int(input())
def isp(): return input().split()
def main():
X = ii()
print(360//math.gcd(X,360))
if __name__ == "__main__":
main()
| [["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487]] | 5 | 86 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X;
cin >> X;
for (int i = 1; i < 360; i++) {
if (X * i % 360 == 0) {
cout << i << endl;
break;
}
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X;
cin >> X;
for (int i = 1; i < 361; i++) {
if (X * i % 360 == 0) {
cout << i << endl;
break;
}
}
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 55 |
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
int i = 0;
while ((360 * i) % x != 0) {
i++;
}
cout << (360 * i) / x;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
int i = 1;
while ((360 * i) % x != 0) {
i++;
}
cout << (360 * i) / x;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 54 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll x;
cin >> x;
cout << lcm(x, 360) << endl;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll x;
cin >> x;
cout << lcm(x, 360) / x << endl;
}
| [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 36 |
X = int(input())
r = X
ans = 0
while True:
r += X
r %= 360
ans += 1
if r == 0:
break
print(ans) | X = int(input())
r = 0
ans = 0
while True:
r += X
r %= 360
ans += 1
if r == 0:
break
print(ans) | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 36 |
#include <stdio.h>
int gcd(int a, int b) {
if (a % b == 0)
return b;
return gcd(b, a % b);
}
int main() {
int X, K;
scanf("%d", &X);
K = 360 / gcd(360, 2 * X);
printf("%d", K);
return 0;
} | #include <stdio.h>
int gcd(int a, int b) {
if (a % b == 0)
return b;
return gcd(b, a % b);
}
int main() {
int X, K;
scanf("%d", &X);
K = 360 / gcd(360, X);
printf("%d", K);
return 0;
} | [["-", 12, 16, 12, 2, 3, 4, 0, 16, 31, 13], ["-", 12, 16, 12, 2, 3, 4, 0, 16, 17, 48]] | 0 | 80 |
#include <bits/stdc++.h>
#define endl '\n'
#define pb push_back
#define mp make_pair
#define LL long long
#define INF 0x3f3f3f3f
#define Inf 100000000000000000 0LL
#define F first
#define S second
using namespace std;
typedef pair<int, int> pii;
int x;
int main() {
cin >> x;
int t = __gcd(x, 360);
// if(t==x)cout... | #include <bits/stdc++.h>
#define endl '\n'
#define pb push_back
#define mp make_pair
#define LL long long
#define INF 0x3f3f3f3f
#define Inf 100000000000000000 0LL
#define F first
#define S second
using namespace std;
typedef pair<int, int> pii;
int x;
int main() {
cin >> x;
int t = __gcd(x, 360);
cout << 360 / t... | [["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 80 |
#include <bits/stdc++.h>
#define fast \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
using namespace std;
const int N = 1e... | #include <bits/stdc++.h>
#define fast \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
using namespace std;
const int N = 1e... | [["+", 0, 1, 0, 16, 12, 16, 12, 2, 63, 22], ["+", 0, 16, 12, 16, 12, 2, 3, 4, 0, 24], ["+", 0, 16, 12, 16, 12, 2, 3, 4, 0, 13], ["+", 0, 16, 12, 16, 12, 2, 3, 4, 0, 21], ["+", 0, 16, 12, 16, 12, 2, 3, 4, 0, 25]] | 1 | 47 |
n=int(input())
for i in range(360):
if (i*n+n)%360==0:
print(i)
break | n=int(input())
for i in range(360):
if (i*n+n)%360==0:
print(i+1)
break | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 34 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
int k = 0;
while ((x * k) % 360 != 0)
k++;
cout << k << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
int k = 1;
while ((x * k) % 360 != 0)
k++;
cout << k << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 48 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define ll long long
using namespace std;
// typedef vector<unsigned int>vec;
// typedef vector<ll>vec;
// typedef vector<vec> mat;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define ll long long
using namespace std;
// typedef vector<unsigned int>vec;
// typedef vector<ll>vec;
// typedef vector<vec> mat;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {... | [["-", 0, 16, 31, 16, 12, 16, 12, 2, 63, 22], ["-", 31, 16, 12, 16, 12, 2, 3, 4, 0, 24], ["-", 31, 16, 12, 16, 12, 2, 3, 4, 0, 21], ["-", 31, 16, 12, 16, 12, 2, 3, 4, 0, 13], ["-", 31, 16, 12, 16, 12, 2, 3, 4, 0, 25]] | 1 | 257 |
#ifdef LOCAL
#define _GLIBCXX_DEBUG
#define __clock__
#else
#pragma GCC optimize("Ofast")
#endif
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using VI = vector<ll>;
using VV = vector<VI>;
using VS = vector<string>;
using PII = pair<ll, ll>;
// tourist set
template <typena... | #ifdef LOCAL
#define _GLIBCXX_DEBUG
#define __clock__
#else
#pragma GCC optimize("Ofast")
#endif
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using VI = vector<ll>;
using VV = vector<VI>;
using VS = vector<string>;
using PII = pair<ll, ll>;
// tourist set
template <typena... | [["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 25], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 1,173 |
x=int(input())
for i in range(1,361):
if (i*x)%360==0:
print(i) | x=int(input())
for i in range(1,361):
if (i*x)%360==0:
print(i)
break | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 33 |
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
int gcd(int x, int y) { return y == 0 ? x : gcd(y, x % y); }
void solve(Scanner sc, PrintWriter pw) {
int x = sc.nextInt();
int g = gcd(360, x);
pw.println(x / g * (360 / g));
}
public static void main(String[] args) {
Sc... | import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
int gcd(int x, int y) { return y == 0 ? x : gcd(y, x % y); }
void solve(Scanner sc, PrintWriter pw) {
int x = sc.nextInt();
int g = gcd(360, x);
pw.println((360 / g));
}
public static void main(String[] args) {
Scanner sc... | [["-", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 492, 3, 4, 0, 16, 31, 16, 17, 85], ["-", 0, 492, 3, 4, 0, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 17, 48]] | 3 | 155 |
#include <algorithm> //sort,reverse
#include <deque> //double_ended queue
#include <iostream>
#include <map> //map
#include <queue> //queue,priority_queue
#include <string>
#include <utility> //pair
#include <vector>
using namespace std;
typedef long long LL;
typedef pair<LL, LL> P; // Pでpair<-,->を表す。
const LL MA... | #include <algorithm> //sort,reverse
#include <deque> //double_ended queue
#include <iostream>
#include <map> //map
#include <queue> //queue,priority_queue
#include <string>
#include <utility> //pair
#include <vector>
using namespace std;
typedef long long LL;
typedef pair<LL, LL> P; // Pでpair<-,->を表す。
const LL MA... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 131 |
n=int(input())
for i in range(1, n):
x=360*i%n
if x==0:
print(360*i//n)
break;
else:
continue; | n=int(input())
for i in range(1, n+1):
x=360*i%n
if x==0:
print(360*i//n)
break;
else:
continue; | [["+", 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>
#include <cmath>
using namespace std;
int gcd(int a, int b) {
if (a % b == 0) {
return (b);
} else {
return (gcd(b, a % b));
}
}
int lcm(int a, int b) { return a * b / gcd(a, b); }
int main() {
int X;
cin >> X;
if (360 % X == 0)
cout << 360 / X;
else
cout << lcm... | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
int gcd(int a, int b) {
if (a % b == 0) {
return (b);
} else {
return (gcd(b, a % b));
}
}
int lcm(int a, int b) { return a * b / gcd(a, b); }
int main() {
int X;
cin >> X;
if (360 % X == 0)
cout << 360 / X;
else
cout << lcm... | [["+", 75, 76, 0, 1, 0, 16, 12, 16, 17, 85], ["+", 75, 76, 0, 1, 0, 16, 12, 16, 12, 22]] | 1 | 109 |
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
typedef long long int ll;
ll gcd(ll a, ll b) {
if (b == 0) {
return a;
} else {
return gcd(b, a % b);
}
}
ll lcm(ll a, ll b) { return (a * b) / gcd(a, b); }
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
ll x;
cin >> x;
... | #include <bits/stdc++.h>
using namespace std;
#define endl "\n"
typedef long long int ll;
ll gcd(ll a, ll b) {
if (b == 0) {
return a;
} else {
return gcd(b, a % b);
}
}
ll lcm(ll a, ll b) { return (a * b) / gcd(a, b); }
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
ll x;
cin >> x;
... | [["-", 49, 50, 51, 16, 12, 2, 3, 4, 0, 13], ["+", 49, 50, 51, 16, 12, 2, 3, 4, 0, 13]] | 1 | 123 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rept(i, k, n) for (ll i = (k); i < (ll)(n); i++)
#define all(v) v.begin(), v.end()
#define Sort(v) sort(v.begin(), v.end())
#define Reverse(v) reverse(v.begin(), v.end())
typedef long long ll;
typedef pair<int, int... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rept(i, k, n) for (ll i = (k); i < (ll)(n); i++)
#define all(v) v.begin(), v.end()
#define Sort(v) sort(v.begin(), v.end())
#define Reverse(v) reverse(v.begin(), v.end())
typedef long long ll;
typedef pair<int, int... | [["-", 12, 16, 12, 2, 3, 4, 0, 2, 63, 22], ["-", 12, 2, 3, 4, 0, 2, 3, 4, 0, 24], ["-", 3, 4, 0, 2, 3, 4, 0, 16, 31, 13], ["-", 3, 4, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 12, 2, 3, 4, 0, 2, 3, 4, 0, 25]] | 1 | 201 |
X=int(input())
B=0
C=0
for i in range(0,360):
B=B+X
C=B%360
K=K+1
if C==0:
print(K)
break
| X=int(input())
K=0
B=0
C=0
for i in range(0,360):
B=B+X
C=B%360
K=K+1
if C==0:
print(K)
break
| [["+", 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]] | 5 | 49 |
import math
x = int(input())
def lcm(a):
return (x*360)//math.gcd(x,360)
if 360%x==0:
print(int(360/x))
else:
print(lcm(x))
| import math
x = int(input())
def lcm(a):
return (x*360)//math.gcd(x,360)
if 360%x==0:
print(int(360/x))
else:
print(int(lcm(x)/x)) | [["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 22], ["+", 3, 4, 0, 657, 31, 652, 3, 4, 0, 25], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 85]] | 5 | 56 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> ii;
#define sz(a) int((a).size())
#define pb push_back
#define all(c) (c).begin(), (c).end()
#define tr(c, i) for(typeof((c).begin() i = (c).begin(); i != (c).end(); i++)
#define pre... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> ii;
#define sz(a) int((a).size())
#define pb push_back
#define all(c) (c).begin(), (c).end()
#define tr(c, i) for(typeof((c).begin() i = (c).begin(); i != (c).end(); i++)
#define pre... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 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, 13], ["-", 49, 50, 51, 16, 31, 23, 0, 16, 17, 72], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 48], ["-", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 12, 16, 31,... | 1 | 871 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int deg = 180 - n;
int cnt = 0;
int curdeg = 0;
while (1) {
curdeg += deg;
cnt++;
if (curdeg % 360 == 0)
break;
curdeg %= 360;
}
cout << cnt;
return 0;
} | #include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
// for (n = 1; n <= 179; n++)
//{
int deg = n;
int cnt = 0;
int curdeg = 0;
while (1) {
curdeg += deg;
cnt++;
if (curdeg % 360 == 0)
break;
curdeg %= 360;
}
//}
cout << cnt;
return 0... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33]] | 1 | 72 |
a = int(input())
x = a
i = 1
while x % 180 != 0:
x += a
i += 1
print(i*2) | a = int(input())
x = a
i = 1
while x % 360 != 0:
x += a
i += 1
print(i) | [["-", 0, 656, 0, 52, 15, 666, 0, 657, 12, 612], ["+", 0, 656, 0, 52, 15, 666, 0, 657, 12, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 33 |
import math
X = int(input())
lcm = round(360 * X / math.gcd(360, X))
print(lcm)
K = round(lcm / X)
print(K) | import math
X = int(input())
lcm = round(360 * X / math.gcd(360, X))
K = round(lcm / X)
print(K) | [["-", 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 |
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
scan_init()
X := scanInt()
X = 360-X
pailist := primeFactorizate(360)
targetlist := primeFactorizate(X)
// fmt.Println(pailist,targetlist)
count := 1
// fmt.Println(pailist,targetlist)
for key,val := range pailist {
if _,ok := ta... | package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
scan_init()
X := scanInt()
pailist := primeFactorizate(360)
targetlist := primeFactorizate(X)
// fmt.Println(pailist,targetlist)
count := 1
// fmt.Println(pailist,targetlist)
for key,val := range pailist {
if _,ok := targetlist[ke... | [["-", 0, 435, 8, 196, 0, 436, 31, 432, 0, 22], ["-", 0, 434, 0, 435, 8, 196, 0, 436, 17, 32], ["-", 8, 196, 0, 436, 12, 432, 0, 16, 31, 433], ["-", 8, 196, 0, 436, 12, 432, 0, 16, 17, 33], ["-", 8, 196, 0, 436, 12, 432, 0, 16, 12, 22], ["-", 36, 36, 0, 434, 0, 435, 8, 196, 0, 165], ["-", 0, 435, 8, 196, 0, 57, 15, 16,... | 7 | 467 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define sz(x) int(x.size())
#define pb push_back
#define eb emplace_back
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 ll MOD = 1000000007, MOD2 = 998... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define sz(x) int(x.size())
#define pb push_back
#define eb emplace_back
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 ll MOD = 1000000007, MOD2 = 998... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 139 |
import math
x = int(input())
print(360//math.gcd(180 - x, 360))
| import math
x = int(input())
print(360//math.gcd(x, 360))
| [["-", 0, 657, 12, 652, 3, 4, 0, 657, 31, 612], ["-", 0, 657, 12, 652, 3, 4, 0, 657, 17, 33]] | 5 | 25 |
from math import gcd
X=int(input())
g=gcd(X,360)
print((360*X)//(g**2))
| from math import gcd
X=int(input())
g=gcd(X,360)
print((360)//(g)) | [["-", 3, 4, 0, 657, 31, 23, 0, 657, 17, 48], ["-", 3, 4, 0, 657, 31, 23, 0, 657, 12, 22], ["-", 3, 4, 0, 657, 12, 23, 0, 657, 17, 578], ["-", 3, 4, 0, 657, 12, 23, 0, 657, 12, 612]] | 5 | 34 |
x = int(input())
n = 0
while (x*n)%360!=0:
n+=1
print(n) | x = int(input())
n = 1
while (x*n)%360!=0:
n+=1
print(n)
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 29 |
x=int(input())
t=x
if(360%x==0):
print(360//x)
else:
count=0
while(x%360!=0):
x+=t
count+=1
print(count) | x=int(input())
t=x
if(360%x==0):
print(360//x)
else:
count=0
while(x%360!=0):
x+=t
count+=1
print(count+1) | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 50 |
// Java program For handling Input/Output
import java.io.*;
import java.math.*;
import java.util.*;
// import java.awt.*;
public class Main {
BufferedReader br;
StringTokenizer st;
int max = -1;
// actual logic
void solve() throws IOException {
long x = ni();
long temp = 360;
long i = 2;
... |
// Java program For handling Input/Output
import java.io.*;
import java.math.*;
import java.util.*;
// import java.awt.*;
public class Main {
BufferedReader br;
StringTokenizer st;
int max = -1;
// actual logic
void solve() throws IOException {
long x = ni();
long temp = 360;
long i = 2;
... | [["-", 0, 52, 8, 196, 0, 1, 0, 11, 17, 108], ["+", 0, 52, 8, 196, 0, 1, 0, 11, 17, 32], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 31, 499], ["+", 8, 196, 0, 1, 0, 11, 12, 16, 17, 48]] | 3 | 402 |
#include <bits/stdc++.h>
#define rep(i, n) for (long long int i = 0; i < n; i++)
#define _rep(i, m, n) for (long long int i = m; i < n; i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int MAX_N = 100010;
const ll mod = 1000000007;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1,... | #include <bits/stdc++.h>
#define rep(i, n) for (long long int i = 0; i < n; i++)
#define _rep(i, m, n) for (long long int i = m; i < n; i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int MAX_N = 100010;
const ll mod = 1000000007;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1,... | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22]] | 1 | 187 |
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define uli unsigned long long int
#define rep(i, m, n) for (lli i = m; i < (n); i++)
#define repe(i, m, n) for (lli i = m; i <= (n); i++)
#define ALL(x) (x).begin(), (x).end()
#define SIZE(x) ((lli)(x).size())
#define MAX(x) *max_element(ALL(x))
#... | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define uli unsigned long long int
#define rep(i, m, n) for (lli i = m; i < (n); i++)
#define repe(i, m, n) for (lli i = m; i <= (n); i++)
#define ALL(x) (x).begin(), (x).end()
#define SIZE(x) ((lli)(x).size())
#define MAX(x) *max_element(ALL(x))
#... | [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 580 |
// #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define REP(i, n) for (int i = 0; i < n; ++i)
#define range(i, a, b) ((a) <= (i) && (i) < (b))
#defi... | // #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define REP(i, n) for (int i = 0; i < n; ++i)
#define range(i, a, b) ((a) <= (i) && (i) < (b))
#defi... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 599 |
X = int(input())
for k in range(1, 361):
if ((180 - X) * k) % 360 == 0:
print(k)
break | X = int(input())
for k in range(1, 361):
if (X * k) % 360 == 0:
print(k)
break | [["-", 0, 657, 31, 23, 0, 657, 31, 23, 0, 24], ["-", 31, 23, 0, 657, 31, 23, 0, 657, 31, 612], ["-", 31, 23, 0, 657, 31, 23, 0, 657, 17, 33], ["-", 0, 657, 31, 23, 0, 657, 31, 23, 0, 25]] | 5 | 38 |
/*
Name:
Author: xiaruize
Date:
*/
#pragma GCC optimize(2)
#include <bits/stdc++.h>
using namespace std;
#define ull unsigned long long
#define MOD 1000000007
#define ALL(a) (a).begin(), (a).end()
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define ll long long
#define form(i, j, n) for ... | /*
Name:
Author: xiaruize
Date:
*/
#pragma GCC optimize(2)
#include <bits/stdc++.h>
using namespace std;
#define ull unsigned long long
#define MOD 1000000007
#define ALL(a) (a).begin(), (a).end()
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define ll long long
#define form(i, j, n) for ... | [["+", 0, 16, 31, 16, 12, 16, 12, 2, 63, 22], ["+", 31, 16, 12, 16, 12, 2, 3, 4, 0, 24], ["+", 31, 16, 12, 16, 12, 2, 3, 4, 0, 13], ["+", 31, 16, 12, 16, 12, 2, 3, 4, 0, 21], ["+", 31, 16, 12, 16, 12, 2, 3, 4, 0, 25]] | 1 | 204 |
x=int(input())
i=1
while (x*i)%180!=0:
i=i+1
print(i) | x=int(input())
i=1
while (x*i)%360!=0:
i=i+1
print(i) | [["-", 0, 656, 0, 52, 15, 666, 0, 657, 12, 612], ["+", 0, 656, 0, 52, 15, 666, 0, 657, 12, 612]] | 5 | 31 |
#include <bits/stdc++.h>
#define fr(i, n) for (int i = 0; i < (n); ++i)
#define foor(i, a, b) for (int i = (a); i <= (b); ++i)
#define rf(i, n) for (int i = (n); i-- > 0;)
#define roof(i, b, a) for (int i = (b); i >= (a); --i)
#define elsif else if
#define all(x) x.begin(), x.end()
#define Sort(x) sort(all(x))
#define ... | #include <bits/stdc++.h>
#define fr(i, n) for (int i = 0; i < (n); ++i)
#define foor(i, a, b) for (int i = (a); i <= (b); ++i)
#define rf(i, n) for (int i = (n); i-- > 0;)
#define roof(i, b, a) for (int i = (b); i >= (a); --i)
#define elsif else if
#define all(x) x.begin(), x.end()
#define Sort(x) sort(all(x))
#define ... | [["-", 0, 16, 12, 2, 3, 4, 0, 16, 31, 13], ["-", 0, 16, 12, 2, 3, 4, 0, 16, 17, 33]] | 1 | 6,236 |
require 'pp'
$DEBUG ? define_method(:dpp){|e|pp e} : define_method(:dpp){|e|}
# 入力値を数値で返却する
def gets_i()
gets.chomp.to_i
end
# N = gets_i
x = gets_i
pi2 = 360
if pi2 % x == 0
puts pi2 / x
exit
else
puts pi2.lcm(x)
end
| require 'pp'
$DEBUG ? define_method(:dpp){|e|pp e} : define_method(:dpp){|e|}
# 入力値を数値で返却する
def gets_i()
gets.chomp.to_i
end
x = gets_i
pi2 = 360
if pi2 % x == 0
puts pi2 / x
else
puts pi2.lcm(x) / x
end
| [["-", 36, 36, 0, 493, 0, 121, 64, 749, 0, 22], ["+", 75, 95, 0, 652, 3, 4, 0, 738, 17, 85], ["+", 75, 95, 0, 652, 3, 4, 0, 738, 12, 22]] | 4 | 65 |
#include <bits/stdc++.h>
using namespace std;
void __print(int x) { cout << x; }
void __print(long x) { cout << x; }
void __print(long long x) { cout << x; }
void __print(unsigned x) { cout << x; }
void __print(unsigned long x) { cout << x; }
void __print(unsigned long long x) { cout << x; }
void __print(float x) { cou... | #include <bits/stdc++.h>
using namespace std;
void __print(int x) { cout << x; }
void __print(long x) { cout << x; }
void __print(long long x) { cout << x; }
void __print(unsigned x) { cout << x; }
void __print(unsigned long x) { cout << x; }
void __print(unsigned long long x) { cout << x; }
void __print(float x) { cou... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 545 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
if (360 % x == 0) {
System.out.println(360 / x);
} else {
long lcm = lcm(x, 360);
System.out.println(lcm / 360);
}
}
private static ... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long x = sc.nextLong();
if (360 % x == 0) {
System.out.println(360 / x);
} else {
long lcm = lcm(x, 360);
System.out.println(lcm / x);
}
}
private static lo... | [["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 499], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]] | 3 | 155 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;
typedef long long int ll;
int gcd(int x, int y) {
if (y == 0)
return x;
return gcd(y, x % y);
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int x... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;
typedef long long int ll;
int gcd(int x, int y) {
if (y == 0)
return x;
return gcd(y, x % y);
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int x... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 108], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 122 |
import math
X = int(input())
deg = 360
if deg%X==0:
ans = deg//X
else:
ans = (deg*X)//math.gcd(deg,X)
print(ans) | import math
X = int(input())
deg = 360
if deg%X==0:
ans = deg//X
else:
ans = ((deg*X)//math.gcd(deg,X))//X
print(ans) | [["+", 12, 657, 31, 23, 0, 657, 31, 23, 0, 24], ["+", 31, 23, 0, 657, 12, 652, 3, 4, 0, 25], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 676], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 47 |
X = int(input())
K = 1
dire = X
while True:
if (dire % 180) == 0:
break
K+=1
dire+=X
print(K) | X = int(input())
K = 1
dire = X
while True:
if (dire % 360) == 0:
break
K+=1
dire+=X
print(K) | [["-", 0, 57, 15, 666, 0, 23, 0, 657, 12, 612], ["+", 0, 57, 15, 666, 0, 23, 0, 657, 12, 612]] | 5 | 37 |
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define bug(x) cout << "zdongdebug1: " << x << endl;
#define bug2(x, y) co... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#define bug(x) cout << "zdongdebug1: " << x << endl;
#define bug2(x, y) co... | [["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]] | 1 | 141 |
#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main() {
int x;
cin >> x;
cout << x * 360 / gcd(x, 360) << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
int main() {
int x;
cin >> x;
cout << 360 / gcd(x, 360) << endl;
return 0;
} | [["-", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]] | 1 | 67 |
// // --------------------<optimizations>--------------------
// #pragma GCC optimize("O3")
// //(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)
// #pragma comment(linker, "/stack:200000000")
// //(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)
// #pragma GCC optimize("unroll-loops")
// -------------------</optim... | // // --------------------<optimizations>--------------------
// #pragma GCC optimize("O3")
// //(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)
// #pragma comment(linker, "/stack:200000000")
// //(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)
// #pragma GCC optimize("unroll-loops")
// -------------------</optim... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 239 |
def gcd(a,b):
a,b = max(a,b),min(a,b)
while b:
a,b =b,a%b
return a
X=int(input())
if 360%X==0:
print(360//X)
else:
g =gcd(360,X)
print(360*X//g)
| def gcd(a,b):
a,b = max(a,b),min(a,b)
while b:
a,b =b,a%b
return a
X=int(input())
if 360%X==0:
print(360//X)
else:
g =gcd(360,X)
print(360//g)
| [["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22]] | 5 | 78 |
X = int(input())
def gcd(a, b):
while b:
a, b = b, a%b
return a
def lcm(a, b):
return a // gcd(a, b) * b
L = lcm(180-X, 360)
#print('L:', L)
ans = L//(180-X)
print(ans)
| X = int(input())
def gcd(a, b):
while b:
a, b = b, a%b
return a
def lcm(a, b):
return a // gcd(a, b) * b
L = lcm(X, 360)
#print('L:', L)
ans = L//X
print(ans)
| [["-", 0, 662, 12, 652, 3, 4, 0, 657, 31, 612], ["-", 0, 662, 12, 652, 3, 4, 0, 657, 17, 33], ["-", 0, 1, 0, 662, 12, 657, 12, 23, 0, 24], ["-", 0, 662, 12, 657, 12, 23, 0, 657, 31, 612], ["-", 0, 662, 12, 657, 12, 23, 0, 657, 17, 33], ["-", 0, 1, 0, 662, 12, 657, 12, 23, 0, 25]] | 5 | 73 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
#define fast_io() \
ios_base ::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double db;
#define fast_io() \
ios_base ::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13]] | 1 | 226 |
def gcd(x, y):
b = max(x, y)
s = min(x, y)
r = b % s
while r != 0:
b = s
s = r
r = b % s
return s
def lcm(x, y):
return (x * y) // gcd(x,y)
X = int(input())
t = lcm(180, X)
k = t // X
print(k * 2) | def gcd(x, y):
b = max(x, y)
s = min(x, y)
r = b % s
while r != 0:
b = s
s = r
r = b % s
return s
def lcm(x, y):
return (x * y) // gcd(x,y)
X = int(input())
t = lcm(360, X)
k = t // X
print(k) | [["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 612], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 95 |
#include <bits/stdc++.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
/*---------------------DEBUGGING--------------------------------------------*/
void __print(int x) { c... | #include <bits/stdc++.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
// using namespace __gnu_pbds;
/*---------------------DEBUGGING--------------------------------------------*/
void __print(int x) { c... | [["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 13], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 13]] | 1 | 515 |
def resolve():
X = int(input())
k = 0
while 1:
k += 1
cal = X * k
if cal // 360:
break
print(k)
if __name__ == "__main__":
resolve() | def resolve():
X = int(input())
k = 0
while 1:
k += 1
cal = X * k
if cal % 360 == 0:
break
print(k)
if __name__ == "__main__":
resolve() | [["-", 0, 52, 8, 196, 0, 57, 15, 657, 17, 676], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 109], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 60], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 47 |
#include <bits/stdc++.h>
using namespace std;
int lcm(int a, int b) { return (a * b) / __gcd(a, b); }
int main() {
int n;
cin >> n;
if (360 % n == 0)
cout << 360 / n << '\n';
else
cout << lcm(360, n) / 360 << '\n';
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int lcm(int a, int b) { return (a * b) / __gcd(a, b); }
int main() {
int n;
cin >> n;
if (360 % n == 0)
cout << 360 / n << '\n';
else
cout << lcm(360, n) / n << '\n';
return 0;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 81 |
X = int(input())
ls = [2, 2, 2, 3, 3, 5]
a = []
for l in ls:
if X % l == 0:
a.append(l)
X /= l
num = 1
if len(a) != 0:
for b in a:
num *= b
print(360 / b) | X = int(input())
ls = [2, 2, 2, 3, 3, 5]
a = []
for l in ls:
if X % l == 0:
a.append(l)
X /= l
num = 1
if len(a) != 0:
for b in a:
num *= b
print(int(360 / num)) | [["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 73 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
int y = 360;
while (true) {
if (y % x == 0) {
cout << y / x << endl;
return 0;
}
y += 360;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
int y = 360;
while (true) {
if (y % x == 0) {
cout << y / x << endl;
return 0;
}
y += 360;
}
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 51 |
def main():
X = int(input())
for i in range(10**5):
t += X
if t % 360 == 0:
return i + 1
print(main())
| def main():
X = int(input())
t = 0
for i in range(10**5):
t += X
if t % 360 == 0:
return i + 1
print(main())
| [["+", 0, 14, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 14, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 0, 14, 8, 196, 0, 1, 0, 662, 12, 612]] | 5 | 43 |
#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define llu unsigned long long int
#define sa(a, n, t) \
for (int ii = 0; ii < n; ii++) \
scanf("%" #t "", &(a)[ii])
#define rep(i, n) for ... | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define llu unsigned long long int
#define sa(a, n, t) \
for (int ii = 0; ii < n; ii++) \
scanf("%" #t "", &(a)[ii])
#define rep(i, n) for ... | [["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]] | 1 | 269 |
// 物极必反
#include <bits/stdc++.h>
#define append push_back
using namespace std;
using ll = long long;
const int N = 5e5 + 3;
const int M = 1e6 + 7;
const long long MOD = 1e9 + 7;
const long long INF = 1e18 + 9;
const int SM = 1e3 + 5;
const int logN = 22, BL = 400;
const long double EPS = 1e-14;
const int dx[] = {1,... | // 物极必反
#include <bits/stdc++.h>
#define append push_back
using namespace std;
using ll = long long;
const int N = 5e5 + 3;
const int M = 1e6 + 7;
const long long MOD = 1e9 + 7;
const long long INF = 1e18 + 9;
const int SM = 1e3 + 5;
const int logN = 22, BL = 400;
const long double EPS = 1e-14;
const int dx[] = {1,... | [["+", 64, 37, 0, 34, 31, 16, 12, 16, 17, 85], ["+", 64, 37, 0, 34, 31, 16, 12, 16, 12, 22]] | 1 | 250 |
#include <bits/stdc++.h>
using namespace std;
#define ll \
long long // data types used often, but you don't want to type them time by
// time
#define ull unsigned long long
#define ui unsigned int
#define mod 1000000007
#define inf 1000... | #include <bits/stdc++.h>
using namespace std;
#define ll \
long long // data types used often, but you don't want to type them time by
// time
#define ull unsigned long long
#define ui unsigned int
#define mod 1000000007
#define inf 1000... | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13]] | 1 | 438 |
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#incl... | #include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#incl... | [["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 148 |
"use strict";
var input = require("fs").readFileSync("/dev/stdin", "utf8");
var cin = input.split(/ |\n/), cid = 0;
function next() { return +cin[cid++]; }
function nextstr() { return cin[cid++]; }
function nextbig() { return BigInt(cin[cid++]); }
function nexts(n, a) {
return a ? cin.slice(cid, cid += n) : cin.slice... | "use strict";
var input = require("fs").readFileSync("/dev/stdin", "utf8");
var cin = input.split(/ |\n/), cid = 0;
function next() { return +cin[cid++]; }
function nextstr() { return cin[cid++]; }
function nextbig() { return BigInt(cin[cid++]); }
function nexts(n, a) {
return a ? cin.slice(cid, cid += n) : cin.slice... | [["+", 0, 435, 8, 556, 0, 37, 0, 16, 31, 555], ["+", 0, 435, 8, 556, 0, 37, 0, 16, 17, 85]] | 2 | 345 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define fo(a, b) for (int a = 0; a < b; a++)
#define Sort(a) sort(a.begin(), a.end())
#define rev(a) reverse(a.begin(), a.end())
#define fi first
#define se second
#define sz size()
#define bgn begin()
#define en end()
#defin... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define double long double
#define fo(a, b) for (int a = 0; a < b; a++)
#define Sort(a) sort(a.begin(), a.end())
#define rev(a) reverse(a.begin(), a.end())
#define fi first
#define se second
#define sz size()
#define bgn begin()
#define en end()
#defin... | [["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13]] | 1 | 3,117 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define int long long
#define rep(i, n) for (int i = 0; i < n; i++)
#define srep(i, n, m) for (int i = n; i < m; i++)
#define... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define int long long
#define rep(i, n) for (int i = 0; i < n; i++)
#define srep(i, n, m) for (int i = n; i < m; i++)
#define... | [["-", 8, 9, 0, 1, 0, 16, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 31, 13]] | 1 | 196 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using uint = unsigned int;
using ull = unsigned long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
/* [💭] [💡] [🎈] */
using namespace std;
int main() {
cin.tie(nullptr);
cout.tie(nullptr);
ios_base::syn... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using uint = unsigned int;
using ull = unsigned long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
/* [💭] [💡] [🎈] */
using namespace std;
int main() {
cin.tie(nullptr);
cout.tie(nullptr);
ios_base::syn... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13]] | 1 | 121 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if (360 % x == 0)
cout << 360 % x << '\n';
else {
long long a = 360;
while (a % x != 0) {
a += 360;
}
cout << a % x << '\n';
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin >> x;
if (360 % x == 0)
cout << 360 / x << '\n';
else {
long long a = 360;
while (a % x != 0) {
a += 360;
}
cout << a / x << '\n';
}
} | [["-", 64, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 64, 1, 0, 16, 31, 16, 12, 16, 17, 85], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 109], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 85]] | 1 | 70 |
/************************************************
Start coding only after you have clear idea.
*************************************************/
#include <bits/stdc++.h>
#define x first
#define y second
#define pii pair<int, int>
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
using namespace ... | /************************************************
Start coding only after you have clear idea.
*************************************************/
#include <bits/stdc++.h>
#define x first
#define y second
#define pii pair<int, int>
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
using namespace ... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 48], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]] | 1 | 98 |
#include <bits/stdc++.h>
using namespace std;
using int64 = long long;
const int mod = 1e9 + 7;
#define PI 3.141592653589793
int A, B, C, D;
long long N;
int main() {
long long T;
long long a = 360, b, x, r, ans;
cin >> T;
b = T;
if (360 % T == 0)
T = 360 / T;
else {
r = a % b;
x = a * b;
... | #include <bits/stdc++.h>
using namespace std;
using int64 = long long;
const int mod = 1e9 + 7;
#define PI 3.141592653589793
int A, B, C, D;
long long N;
int main() {
long long T;
long long a = 360, b, x, r, ans;
cin >> T;
b = T;
if (360 % T == 0)
T = 360 / T;
else {
r = a % b;
x = a * b;
... | [["+", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 32], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 75, 76, 0, 9, 0, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 136 |
// author-Shivam gupta
#include <bits/stdc++.h>
using namespace std;
#define MEM(a, b) memset(a, (b), sizeof(a))
#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define IN(A, B, C) assert(B <= A && A <= C)
#define MP make_pair
#define FOR(i, a) for (int i = 0; i < a; i++)
#define FOR1(i, j... |
// author-Shivam gupta
#include <bits/stdc++.h>
using namespace std;
#define MEM(a, b) memset(a, (b), sizeof(a))
#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define IN(A, B, C) assert(B <= A && A <= C)
#define MP make_pair
#define FOR(i, a) for (int i = 0; i < a; i++)
#define FOR1(i, j... | [["-", 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, 12, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22]] | 1 | 726 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.