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
// Copyright © 2020 Kavish Lodha. All rights reserved. #include <bits/stdc++.h> using namespace std; #define vll vector<long long> #define mll map<long long, long long> #define max(a, b) ((a > b) ? a : b) #define min(a, b) ((a > b) ? b : a) #define pb push_back #define prll pair<long long, long long> typedef long long...
// Copyright © 2020 Kavish Lodha. All rights reserved. #include <bits/stdc++.h> using namespace std; #define vll vector<long long> #define mll map<long long, long long> #define max(a, b) ((a > b) ? a : b) #define min(a, b) ((a > b) ? b : a) #define pb push_back #define prll pair<long long, long long> typedef long long...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]]
1
823
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vi; typedef vector<vi> vvi; typedef pair<ll, ll> ii; typedef vector<ii> vii; #define pb push_back #define ff first #define ss second #define all(s) (s).begin(), (s).end() int main() { long double PI = acos(-1); long double r; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vi; typedef vector<vi> vvi; typedef pair<ll, ll> ii; typedef vector<ii> vii; #define pb push_back #define ff first #define ss second #define all(s) (s).begin(), (s).end() int main() { long double PI = acos(-1); long double r; ...
[["-", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22]]
1
97
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); long double r; cin >> r; printf("%0.19lf", (4 * r * 3.14159265358979323846) / 2); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); double r; cin >> r; printf("%0.20f", (4 * r * 3.14159265358979323846) / 2); return 0; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
54
#include <stdio.h> int main(void) { int r; scanf("%d", &r); printf("%f\n", r * r * 3.14159265359); return 0; }
#include <stdio.h> int main(void) { int r; scanf("%d", &r); printf("%f\n", r * 2 * 3.14159265359); return 0; }
[["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13]]
1
39
#include <stdio.h> int main() { int r; double p = 3.1415926535; double c; scanf("%d", &r); c = 2 * r * p; printf("%d", c); return 0; }
#include <stdio.h> int main() { int r; double p = 3.1415926535; double c; scanf("%d", &r); c = 2 * r * p; printf("%f", c); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
49
#include <stdio.h> int main(void) { double R; scanf("%lf", R); R = R * 2; R = R * 3.14; printf("%f", R); return 0; }
#include <stdio.h> int main(void) { double R; scanf("%lf", &R); R = R * 2; R = R * 3.14; printf("%f", R); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
45
#include <stdio.h> int main(void) { long double A = 3.14159265358979323846; int R; scanf("%d", &R); printf("%d", 2 * R * A); }
#include <stdio.h> int main(void) { long double A = 3.14159265358979323846; int R; scanf("%d", &R); printf("%Lf", 2 * R * A); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
41
R = int(input()) print(R*3.1415)
R = int(input()) print(R*6.283)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 531], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 531]]
5
14
n = input() pi = 3.142592 R = 2 * pi * n print(R)
n = input() pi = 3.142592 R = 2 * pi * int(n) print(R)
[["+", 0, 1, 0, 662, 12, 657, 12, 652, 63, 22], ["+", 0, 662, 12, 657, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 657, 12, 652, 3, 4, 0, 25]]
5
19
#include <bits/stdc++.h> using namespace std; int main() { float n; cin >> n; cout << n * 3.141592; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; cout << n * 2 * 3.141592; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 13]]
1
25
#include <bits/stdc++.h> #define PI acos(-1.0) using namespace std; int main() { double r; cin >> r; printf("%.20lf", PI * r * r); }
#include <bits/stdc++.h> #define PI acos(-1.0) using namespace std; int main() { double r; cin >> r; printf("%.20lf\n", PI * r * 2); }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
1
35
import math A = int(input()) a = a * 2 * math.pi print(a)
import math A = int(input()) a = A * 2 * math.pi print(a)
[["-", 0, 1, 0, 662, 12, 657, 31, 657, 31, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 22]]
5
23
import math print(int(input()) * 2 * math.PI)
import math print(int(input()) * 2 * math.pi)
[["-", 0, 652, 3, 4, 0, 657, 12, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 319, 319, 22]]
5
17
import math a =input() print(froat(a)*2*math.py)
import math a =input() print(float(a)*2*math.pi)
[["-", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["+", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 657, 12, 319, 319, 22], ["+", 0, 652, 3, 4, 0, 657, 12, 319, 319, 22]]
5
20
import math def main(): R = input() answer = float(R) * 2 / math.pi print(answer) if __name__ == '__main__': main()
import math def main(): R = input() answer = float(R) * 2 * math.pi print(answer) if __name__ == '__main__': main()
[["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 17, 48]]
5
38
#include <bits/stdc++.h> using namespace std; int main() { int pi, R; pi = 3.1415926; cin >> R; cout << 2 * pi * R << endl; }
#include <bits/stdc++.h> using namespace std; int main() { float pi, R; pi = 3.14159; cin >> R; cout << 2 * pi * R; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
35
import math R = int(input()) ans = R*R*math.pi print(ans)
import math R = int(input()) ans = 2*R*math.pi print(ans)
[["-", 0, 1, 0, 662, 12, 657, 31, 657, 31, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612]]
5
23
r = int(input()) print(r*314/100)
r = int(input()) print(r*2*314/100)
[["+", 3, 4, 0, 657, 31, 657, 31, 657, 12, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
16
print(int(input())*3.141)
print(int(input())*6.283)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 531], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 531]]
5
11
R = input() R = int(R) print(R * R * 3.14)
R = input() R = int(R) print(2 * R * 3.14)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612]]
5
19
import math print(int(input()) * 2 * math.pi())
import math print(int(input()) * 2 * math.pi)
[["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]]
5
19
import numpy as np r = int(input()) print(2*np.pu*r)
import numpy as np r = int(input()) print(2 * np.pi * r)
[["-", 3, 4, 0, 657, 31, 657, 12, 319, 319, 22], ["+", 3, 4, 0, 657, 31, 657, 12, 319, 319, 22]]
5
22
#include <bits/stdc++.h> using namespace std; int main() { long long r; cin >> r; cout << r * r * 3.141592 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long long r; cin >> r; cout << r * 2 * 3.141592 << endl; }
[["-", 0, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13]]
1
30
#include <bits/stdc++.h> using namespace std; int main() { int r; cin >> r; cout << r * 3.14 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int r; cin >> r; cout << r * 6.28 << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
27
import math print(math.pi * int(input()))
import math print(2 * math.pi * int(input()))
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
15
#include <bits/stdc++.h> using namespace std; int main() { double a; cin >> a; cout << a * 3.141 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double a; cin >> a; cout << 2 * a * 3.141 << endl; }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
27
import numpy as np R = int(input()) print(R*R*np.pi)
import numpy as np R = int(input()) print(R*2*np.pi)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612]]
5
22
#include <algorithm> #include <array> #include <bitset> #include <cstdlib> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <stack> #include <type_traits> #include <utility> #inclu...
#include <algorithm> #include <array> #include <bitset> #include <cstdlib> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <stack> #include <type_traits> #include <utility> #inclu...
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
163
#include <bits/stdc++.h> using namespace std; using str = string; using ll = long long; #define REP(i, n) for (int i = 0; i < int(n); i++) #define RREP(i, n) for (int i = int(n) - 1; i >= 0; i--) #define FOR(i, f, t) for (int i = int(f); i <= int(t); i++) #define RFOR(i, f, t) for (int i = int(f); i >= int(t); i--) #de...
#include <bits/stdc++.h> using namespace std; using str = string; using ll = long long; #define REP(i, n) for (int i = 0; i < int(n); i++) #define RREP(i, n) for (int i = int(n) - 1; i >= 0; i--) #define FOR(i, f, t) for (int i = int(f); i <= int(t); i++) #define RFOR(i, f, t) for (int i = int(f); i >= int(t); i--) #de...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13]]
1
136
#include <bits/stdc++.h> using namespace std; int main() { int A; cin >> A; cout << 3.14159265359 * A << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int A; cin >> A; cout << 3.14159265359 * 2 * A << endl; }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]]
1
27
#include <stdio.h> int main() { int r; scanf("%d", r); static float pi = 3.141592; printf("%f", 2 * pi * r); }
#include <stdio.h> int main() { int r; scanf("%d", &r); static float pi = 3.141592; printf("%f", 2 * pi * r); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
39
#include <math.h> #include <stdio.h> int main() { int r = 0; scanf("%d", &r); printf("%d", 2 * 3.14 * r); return 0; };
#include <math.h> #include <stdio.h> int main() { int r = 0; scanf("%d", &r); printf("%f", 2 * 3.14 * r); return 0; };
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
42
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repi(i, a, b) for (int i = int(a); i < int(b); ++i) typedef long long ll; long long mod = 2019; const int iINF = 0x3f3f3f3f; const long long INF = 1LL << 60; using namespace std; template <class T> inline bool chmin(T &a, T b) { if...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repi(i, a, b) for (int i = int(a); i < int(b); ++i) typedef long long ll; long long mod = 2019; const int iINF = 0x3f3f3f3f; const long long INF = 1LL << 60; using namespace std; template <class T> inline bool chmin(T &a, T b) { if...
[["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 24], ["+", 12, 16, 31, 23, 0, 16, 12, 23, 0, 25]]
1
595
S = input() T = [0]*2019 T[0]=1 t = 0 ans = 0 dig = 1 for i in range(n): t = (t + (int(S[-i-1]))*dig)%2019 dig = (dig*10)%2019 T[t] += 1 for j in T: ans +=int(j*(j-1)/2) print(ans)
S = input() T = [0]*2019 T[0]=1 t = 0 ans = 0 dig = 1 for i in range(len(S)): t = (t + (int(S[-i-1]))*dig)%2019 dig = (dig*10)%2019 T[t] += 1 for j in T: ans +=int(j*(j-1)/2) print(ans)
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 652, 63, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
95
S = list(input()) N = len(S) l = [0] * 2019 temp = 0 e = 1 for i in range(N-1, -1, -1): temp += int(S[i]) * e temp %= 2019 l[temp] += 1 e *= 10 e %= 2019 ans = l[0] for i in range(1, 2019): ans += l[i] * (l[i]-1) // 2 print(ans)
S = list(input()) N = len(S) l = [0] * 2019 temp = 0 e = 1 for i in range(N-1, -1, -1): temp += int(S[i]) * e temp %= 2019 l[temp] += 1 e *= 10 e %= 2019 ans = l[0] for i in range(0, 2019): ans += l[i] * (l[i]-1) // 2 print(ans)
[["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]]
5
106
package main import ( "fmt" "strconv" ) func main() { var s string fmt.Scan(&s) ans := 0 n := len(s) var k int l := 1 m := make(map[int]int) var tmp int for i := 0; i < n; i++ { k, _ = strconv.Atoi(s[n-i-1 : n-i]) tmp += k * l tmp %= 2019 m[tmp]++ if m[tmp] > 1 { ans += m[tmp] - 1 } l *...
package main import ( "fmt" "strconv" ) func main() { var s string fmt.Scan(&s) ans := 0 n := len(s) var k int l := 1 m := make(map[int]int) var tmp int for i := 0; i < n; i++ { k, _ = strconv.Atoi(s[n-i-1 : n-i]) tmp += k * l tmp %= 2019 m[tmp]++ if m[tmp] > 1 { ans += m[tmp] - 1 } l *...
[["-", 8, 196, 0, 436, 12, 432, 0, 16, 17, 109], ["+", 0, 435, 8, 196, 0, 7, 8, 196, 0, 165], ["+", 0, 7, 8, 196, 0, 436, 31, 432, 0, 22], ["+", 8, 196, 0, 7, 8, 196, 0, 436, 17, 132]]
7
159
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } const ll INF = 1LL << ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } const ll INF = 1LL << ...
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
1
432
from collections import Counter s = list(input()) ls = len(s) T = [0] * (ls+1) modL = [0] cnt = 0 pad = 1 for i in reversed(range(0, ls)): T[i] = T[i+1] + int(s[i]) * pad modL.append(T[i] % 2019) pad = pad * 10 % 2019 print(modL) ans = 0 for c in Counter(modL).values(): ans += c * (c - 1) // 2 prin...
from collections import Counter s = list(input()) ls = len(s) T = [0] * (ls+1) modL = [0] cnt = 0 pad = 1 for i in reversed(range(0, ls)): T[i] = T[i+1] + int(s[i]) * pad modL.append(T[i] % 2019) pad = pad * 10 % 2019 ans = 0 for c in Counter(modL).values(): ans += c * (c - 1) // 2 print(ans)
[["-", 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
126
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <string.h> #include <vector> #define pb push_back #define fi first #define se second #define sz(x) x.size() #define cl(x) x.clear() #define all(x) x.begin(), x.end() #define r(...
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <string.h> #include <vector> #define pb push_back #define fi first #define se second #define sz(x) x.size() #define cl(x) x.clear() #define all(x) x.begin(), x.end() #define r(...
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 31, 23, 0, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 23, 0, 16, 12, 16, 31, 23, 0, 25]]
1
408
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; const int MOD = 2019; ll nums[MOD + 5]; int main() { string s; cin >> s; int n = s.size(); nums[0] = 1; ll num = 0, t = 1; for (int i = n - 1; i >= 0; i--, t *= 10) { num = (num + (s[i] - '0') * t) % MOD; ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; const int MOD = 2019; ll nums[MOD + 5]; int main() { string s; cin >> s; int n = s.size(); nums[0] = 1; ll num = 0, t = 1; for (int i = n - 1; i >= 0; i--, t *= 10) { t %= MOD; num = (num + (s[i] - '0') ...
[["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 132], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]]
1
168
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdlib> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> /*                     ...
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdlib> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <vector> /*                     ...
[["-", 12, 69, 28, 69, 341, 342, 0, 16, 31, 22], ["-", 12, 69, 28, 69, 341, 342, 0, 16, 17, 72]]
1
385
/*input 14282668646 */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define rep(i, j, n) for (i = j; i < n; i++) #define repi(i, j, n) for (i = j; i > n; i--) #define inf 100001 #define M 1000000007 #define ll long long #define ld long double #define vll vecto...
/*input 14282668646 */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define rep(i, j, n) for (i = j; i < n; i++) #define repi(i, j, n) for (i = j; i > n; i--) #define inf 100001 #define M 1000000007 #define ll long long #define ld long double #define vll vecto...
[["-", 0, 1, 0, 11, 12, 16, 12, 2, 63, 22], ["+", 0, 1, 0, 11, 12, 16, 12, 2, 63, 22], ["+", 0, 11, 12, 16, 12, 2, 3, 4, 0, 21], ["+", 0, 11, 12, 16, 12, 2, 3, 4, 0, 13]]
1
346
S = input() MOD =2019 count = [0]*MOD r = 0 t = 1 for i in reversed(S): r += int(i) * t r %= MOD t *= 10 t %= MOD count[r] += 1 d[0] += 1 print(sum(i*(i-1)/2 for i in count))
S = input() MOD =2019 count = [0]*MOD r = 0 t = 1 for i in reversed(S): r += int(i) * t r %= MOD t *= 10 t %= MOD count[r] += 1 count[0] += 1 print(int(sum(i*(i-1)/2 for i in count)))
[["-", 0, 656, 0, 1, 0, 677, 31, 206, 51, 22], ["+", 0, 656, 0, 1, 0, 677, 31, 206, 51, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 668, 0, 25]]
5
77
import collections s=input() n=len(s) a=[] x=0 p=1 for i in range(n): j = n-1-i c = int(s[j]) p %= 2019 x += (p*c)%2019 p *= 10 x %= 2019 a.append(x) c=collections.Counter(a) ans = 0 for k,v in c.items(): if k==0: ans += v else: ans += v*(v-1)//2 print(ans)
import collections s=input() n=len(s) a=[] x=0 p=1 for i in range(n): j = n-1-i c = int(s[j]) p %= 2019 x += (p*c)%2019 p *= 10 x %= 2019 a.append(x) c=collections.Counter(a) ans = 0 for k,v in c.items(): if k==0: ans += v ans += v*(v-1)//2 print(ans)
[["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102]]
5
118
#include <algorithm> #include <bitset> #include <cmath> #include <ctime> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <string.h> #include <string> #include <tuple> #include <vector> using namespace std; /* sort(sp....
#include <algorithm> #include <bitset> #include <cmath> #include <ctime> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <string.h> #include <string> #include <tuple> #include <vector> using namespace std; /* sort(sp....
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
83
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println(r * 3.141592); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int r = sc.nextInt(); System.out.println(r * 3.141592 * 2); } }
[["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 48], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 499]]
3
55
#include <bits/stdc++.h> using namespace std; int main() { int a; double b; cin >> a; b = 2 * 3, 141592 * a; cout << b << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a; double b; cin >> a; b = 2 * 3.141592 * a; cout << b << endl; }
[["-", 0, 1, 0, 34, 31, 11, 12, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["-", 8, 9, 0, 1, 0, 34, 12, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13]]
1
38
#include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <stack> #include <stdlib.h> #include <string> #include <vector> int main() { long long a; std::cin >> a; std::cout << a * 3.141592 << std::endl; ret...
#include <algorithm> #include <cmath> #include <cstdio> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <stack> #include <stdlib.h> #include <string> #include <vector> int main() { long long a; std::cin >> a; std::cout << a * 2 * 3.141592 << std::endl; ...
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]]
1
55
#include <stdio.h> int main() { int r; float pi, c; scanf("%d", &r); pi = 3.14; c = 2 * pi * r; printf("0.2%f", c); return 0; }
#include <stdio.h> int main() { int r; float pi, c; scanf("%d", &r); pi = 3.14; c = 2 * pi * r; printf("%.2f", c); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
50
// #pragma GCC target("avx") // CPU 処理並列化 // #pragma GCC optimize("O3") // CPU 処理並列化 // #pragma GCC optimize("unroll-loops") // 条件処理の呼び出しを減らす // #define BEGIN_STACK_EXTEND(size) void * stack_extend_memory_ = // malloc(size);void * stack_extend_origin_memory_;char * // stack_extend_dummy_memory_ = (char*)alloca((1+(i...
// #pragma GCC target("avx") // CPU 処理並列化 // #pragma GCC optimize("O3") // CPU 処理並列化 // #pragma GCC optimize("unroll-loops") // 条件処理の呼び出しを減らす // #define BEGIN_STACK_EXTEND(size) void * stack_extend_memory_ = // malloc(size);void * stack_extend_origin_memory_;char * // stack_extend_dummy_memory_ = (char*)alloca((1+(i...
[["-", 36, 36, 0, 30, 0, 43, 39, 86, 0, 96]]
1
793
#include <bits/stdc++.h> using namespace std; int main(void) { double a = 0; cin >> a; a = a * M_PI; cout << a << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { double a = 0; cin >> a; a = a * 2 * M_PI; cout << a << endl; return 0; }
[["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48]]
1
37
#include <bits/stdc++.h> using namespace std; double ans; int main() { int R; cin >> R; ans = pow(R, 2) * M_PI; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; double ans; int main() { int R; cin >> R; ans = 2 * R * M_PI; cout << ans << endl; }
[["-", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22], ["-", 0, 11, 12, 16, 31, 2, 3, 4, 0, 24], ["-", 0, 11, 12, 16, 31, 2, 3, 4, 0, 22], ["-", 0, 11, 12, 16, 31, 2, 3, 4, 0, 21], ["-", 0, 11, 12, 16, 31, 2, 3, 4, 0, 25], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22]]
1
39
import math r = int(input()) pi = math.pi print(pi*r**2)
import math r = int(input()) pi = math.pi print(pi*r*2)
[["-", 0, 652, 3, 4, 0, 657, 12, 657, 17, 578], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]]
5
23
#include <stdio.h> main() { int a; scanf("%d", &a); printf("%lf", (float)a * 3.1415); return 0; }
#include <stdio.h> main() { int a; scanf("%d", &a); printf("%lf", (float)a * 2 * 3.1415); return 0; }
[["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48]]
0
38
import math str = input().strip() print(int(str)*math.pi)
import math str = input().strip() print(int(str)*math.pi*2)
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]]
5
22
a = gets.to_f b = a*3.141 print b
a = gets.to_f b = a*3.141*2 print b
[["+", 36, 36, 0, 493, 0, 662, 12, 738, 17, 48], ["+", 36, 36, 0, 493, 0, 662, 12, 738, 12, 612]]
4
12
a = input() a = int(a) p = 3.14159265359 print(a*p)
a = input() a = int(a) p = 3.14159265359 print(2*a*p)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
20
import math R = int(input()) pai = math.pi print(2 * R * pi)
import math R = int(input()) pai = math.pi print(2 * R * pai)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
23
#include <bits/stdc++.h> using namespace std; int main() { int pi = 3.14159265358979; int r; cin >> r; cout << 2 * pi * r << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double pi = 3.14159265358979; int r; cin >> r; cout << 2 * pi * r << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
34
#include <bits/stdc++.h> typedef long long ll; using std::cin; using std::cout; using std::endl; using std::pair; using std::string; using std::vector; #define rep(i, n) for (int i = 0, i##_end = (n); i < i##_end; i++) void debug_out() { cout << endl; } template <typename Head, typename... Tail> void debug_out(Head H, ...
#include <bits/stdc++.h> typedef long long ll; using std::cin; using std::cout; using std::endl; using std::pair; using std::string; using std::vector; #define rep(i, n) for (int i = 0, i##_end = (n); i < i##_end; i++) void debug_out() { cout << endl; } template <typename Head, typename... Tail> void debug_out(Head H, ...
[["-", 31, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 31, 13], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 12, 22]]
1
209
#include <bits/stdc++.h> using namespace std; int main() { int r, a; cin >> r; a = r * 2 * M_PI; cout << a << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int r; double a; cin >> r; a = r * 2 * M_PI; cout << a << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
38
#include <iostream> #define PI 3.1415 using namespace std; int main() { int r; cin >> r; r = r * 2 * PI; cout << r << endl; return 0; }
#include <iostream> #define PI 3.1415 using namespace std; int main() { int r; double ans; cin >> r; ans = r * 2 * PI; cout << ans << endl; return 0; }
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
39
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_s...
#include <algorithm> #include <bitset> #include <cmath> #include <complex> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_s...
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
75
#include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <cstdio> #include <cstring> #include <ctime> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <vector> using namespace std; typedef vector...
#include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <cstdio> #include <cstring> #include <ctime> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <vector> using namespace std; typedef vector...
[["-", 36, 36, 36, 36, 0, 30, 0, 42, 0, 13], ["+", 36, 36, 36, 36, 0, 30, 0, 42, 0, 13]]
1
426
import math print(int(input()*2*math.pi))
import math print(int(input())*2*math.pi)
[["+", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
17
#include "bits/stdc++.h" using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int R; cin >> R; cout << 3.1415 * R << 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 R; cin >> R; cout << M_PI * 2 * R << endl; return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13]]
1
40
#include <bits/stdc++.h> typedef long long ll; #define rep(i, a, n) for (ll i = a; i < n; i++) #define rrep(i, a, n) for (ll i = n; i >= a; i--) #define LINF 1e18 #define INF 1e9 using namespace std; int main() { ll r; double pi = acos(-1); cout << setprecision(10) << 2 * r * pi << endl; return 0; }
#include <bits/stdc++.h> typedef long long ll; #define rep(i, a, n) for (ll i = a; i < n; i++) #define rrep(i, a, n) for (ll i = n; i >= a; i--) #define LINF 1e18 #define INF 1e9 using namespace std; int main() { ll r; cin >> r; double pi = acos(-1); cout << setprecision(10) << 2 * r * pi << endl; return 0...
[["+", 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
72
i = int(input()) l = 2*i*math.pi print(l)
import math i = int(input()) l = 2*i*math.pi print(l)
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]]
5
21
i = int(input()) l = 2*i*math.pi print(l)
i = int(input()) l = 2*i*3.141592 print(l)
[["-", 0, 1, 0, 662, 12, 657, 12, 319, 500, 22], ["-", 0, 1, 0, 662, 12, 657, 12, 319, 0, 131], ["-", 0, 1, 0, 662, 12, 657, 12, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 531]]
5
21
#include <bits/stdc++.h> #include <vector> using namespace std; int main(void) { double A; cin >> A; cout << A * 3.1415926535; }
#include <bits/stdc++.h> #include <vector> using namespace std; int main(void) { double A; cin >> A; cout << A * 6.283; }
[["-", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
28
#include <iostream> using namespace std; int main() { double R; cin >> R; double x; x == R * 3.141592 * 2; cout << x << endl; }
#include <iostream> using namespace std; int main() { double R; cin >> R; double x; x = R * 2 * 3.141592; cout << x << endl; }
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 60], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["-", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48], ["-", 0, 1, 0, 16, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
36
R = int(input) h = 2*R*3.14 print(h)
R = int(input()) h = 2*R*3.14 print(h)
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
17
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; const int INF = 1001001001; const int MOD = 1000000007; typedef long long ll; template <typename T> void print(const T &v); int main() { int R; cin >> R; cout << fixed << setprecision(10) << ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; const int INF = 1001001001; const int MOD = 1000000007; typedef long long ll; template <typename T> void print(const T &v); int main() { int R; cin >> R; cout << fixed << setprecision(10) << ...
[["-", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13]]
1
141
s=int(input()) print(int(2*s*3.14))
s=int(input()) print(2*s*3.14)
[["-", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
19
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, n) for (int i = 1; i < n; i++) #define sz(x) int(x.size()) #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() #define YesorNo(a) printf(a ? "Yes\n" : "No\n") #define endl '\n' #define fi first...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, n) for (int i = 1; i < n; i++) #define sz(x) int(x.size()) #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() #define YesorNo(a) printf(a ? "Yes\n" : "No\n") #define endl '\n' #define fi first...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
370
#include <bits/stdc++.h> using namespace std; using ll = long long; #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(n) begin(n), end(n) int main() { int n; cin >> n; cout << setprecision(20) << n * M_PI << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(n) begin(n), end(n) int main() { int n; cin >> n; cout << setprecision(20) << 2 * n * M_PI << endl; }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
52
#include <iostream> using namespace std; int main() { int r; cin >> r; float s; s = (2 * 22 * r) / 7; cout << s; }
#include <iostream> using namespace std; int main() { int r; cin >> r; float s; s = (2 * 3.14 * r); cout << s; }
[["-", 12, 16, 31, 23, 0, 16, 31, 16, 12, 13], ["+", 0, 11, 12, 23, 0, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
38
import math R = input() l = 2*R*math.pi print(l)
import math R = int(input()) l = 2*R*math.pi print(l)
[["+", 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
20
def resolve(): r = int(input()) print(r ** 2 * 3.1415) resolve()
def resolve(): r = int(input()) print(r * 2 * 3.1415) resolve()
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 578], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
24
# coding:utf-8 import math a=int(input()) b=math.pi c=2*1*b print(c)
# coding:utf-8 import math a=int(input()) b=math.pi c=2*a*b print(c)
[["-", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 22]]
5
27
import math r=int(input()) a=math.pi print(r*a)
import math r=int(input()) a=math.pi print(2*r*a)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
21
#include <iostream> #include <string> #include <vector> using namespace std; int main() { int R; cin >> R; const double P = 3.141592; cout << (double)R * P; return 0; }
#include <iostream> #include <string> #include <vector> using namespace std; int main() { int R; cin >> R; const double P = 3.141592; cout << (double)2 * R * P; return 0; }
[["+", 0, 16, 12, 16, 31, 16, 31, 74, 51, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48]]
1
41
#include <stdio.h> int main() { float r; scanf("%f", &r); printf("%f", r * 3.141592653582); }
#include <stdio.h> int main() { float r; scanf("%f", &r); printf("%f", r * 2 * 3.141592653582); }
[["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48]]
0
32
#include <bits/stdc++.h> using namespace std; using ll = long long; using p = pair<int, int>; #define INF 1001001001 #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 repBack(i, n) for (int i = n; i >= 0; i--) #define dup(x, y) (((x) + (y)-1) / (y)) i...
#include <bits/stdc++.h> using namespace std; using ll = long long; using p = pair<int, int>; #define INF 1001001001 #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 repBack(i, n) for (int i = n; i >= 0; i--) #define dup(x, y) (((x) + (y)-1) / (y)) i...
[["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13]]
1
91
#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int r; cin >> r; cout << r * M_PI << endl; }
#include <iostream> #include <bits/stdc++.h> #include <string> using namespace std; int main() { int r; cin >> r; cout << 2 * r * M_PI << endl; }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
31
import math r = input() print(2 * math.pi * r) quit()
import math r = int(input()) print(2 * math.pi * r) quit()
[["+", 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
20
#include <bits/stdc++.h> using namespace std; int main(void) { int a; cin >> a; cout << a * M_PI << endl; }
#include <bits/stdc++.h> using namespace std; int main(void) { int a; cin >> a; // double PI=3.1415; cout << 2 * a * M_PI << endl; }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
28
a=int(input()) print(3.14*a)
a=int(input()) print(2*3.14*a)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
14
#include <bits/stdc++.h> #define ll long long int #define ull unsigned long long int #define forn(i, n) for (ll i = 0; i < (n); i++) #define forn_rev(i, n) for (ll i = (n)-1; i >= 0; i--) #define for1n(i, n) for (ll i = 1; i <= (n); i++) #define ARRAY_SIZE(a) sizeof(a) / sizeof(*a) #define MOD 1000000007 #define MAXN 1...
#include <bits/stdc++.h> #define ll long long int #define ull unsigned long long int #define forn(i, n) for (ll i = 0; i < (n); i++) #define forn_rev(i, n) for (ll i = (n)-1; i >= 0; i--) #define for1n(i, n) for (ll i = 1; i <= (n); i++) #define ARRAY_SIZE(a) sizeof(a) / sizeof(*a) #define MOD 1000000007 #define MAXN 1...
[["-", 0, 1, 0, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 13]]
1
118
import numpy as np pi = np.pi R = int(input()) print(R * pi)
import numpy as np pi = np.pi R = int(input()) print(2 * pi * R)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
23
#include <iostream> using namespace std; int main() { int r; const double PI = 3.14159265358979323846; cin >> r; cout << r * PI << endl; return 0; }
#include <iostream> using namespace std; int main() { int r; const double PI = 3.14159265358979323846; cin >> r; cout << 2 * r * PI << endl; return 0; }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
36
R = int(input()) pi = 3.14159265359 s = pi * R print(s)
R = int(input()) pi = 3.14159265359 s = 2 * pi * R print(s)
[["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 48]]
5
20
#include <iostream> using namespace std; int main() { int R, l; cin >> R; l = 2 * 3.14 * R; cout << l << endl; return 0; }
#include <iostream> using namespace std; int main() { int R; double l; cin >> R; l = 2 * 3.14 * R; cout << l << endl; return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
38
s = input("R=") a = 2*3.1415926535*float(s) print(a)
s = input("") a = 2*3.1415926535*float(s) print(a)
[["-", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6]]
5
22
R=float(input()) print(R**2*3.141592)
R=float(input()) print(R*2*3.141592)
[["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 578], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
16
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { double R; scanf("%lf", &R); printf("%f", R * 3.1415); return 0; }
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { double R; scanf("%lf", &R); printf("%f", 2 * R * 3.1415); return 0; }
[["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 17, 48]]
0
38
# @oj: atcoder # @id: hitwanyang # @email: 296866643@qq.com # @date: 2020-04-29 14:14 # @url:https://atcoder.jp/contests/abc163/tasks/abc163_a import sys,os from io import BytesIO, IOBase import collections,itertools,bisect,heapq,math,string # region fastio BUFSIZE = 8192 BUFSIZE = 8192 class FastIO(IOBase): new...
# @oj: atcoder # @id: hitwanyang # @email: 296866643@qq.com # @date: 2020-04-29 14:14 # @url:https://atcoder.jp/contests/abc163/tasks/abc163_a import sys,os from io import BytesIO, IOBase import collections,itertools,bisect,heapq,math,string # region fastio BUFSIZE = 8192 BUFSIZE = 8192 class FastIO(IOBase): new...
[["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 612]]
5
521
#include <bits/stdc++.h> using namespace std; int main() { double R, P; cin >> R; P = 3.1415926; cout << P * R << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double R, P; cin >> R; P = 3.1415926; cout << 2 * P * R << endl; }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
33
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); double b = a * 3.14; System.out.println(b); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); double b = 2 * a * 3.14; System.out.println(b); } }
[["+", 0, 503, 49, 200, 51, 16, 31, 16, 31, 499], ["+", 0, 503, 49, 200, 51, 16, 31, 16, 17, 48]]
3
60
R = int(input()) import math print(R * math.pi)
R = int(input()) import math print(R * 2 * math.pi)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]]
5
18