buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <algorithm> #include <bitset> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <unordered_set> #include <vector> using namespace std; using ll = long long; using ull = unsigned long long; // const ll mod = ...
#include <algorithm> #include <bitset> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <unordered_set> #include <vector> using namespace std; using ll = long long; using ull = unsigned long long; // const ll mod = ...
[["+", 0, 1, 0, 2, 3, 4, 0, 2, 63, 22], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 24], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 21], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 13], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 25]]
1
1,322
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; const int MAX_V = 50; const int MAX_S = MAX_V * 50 + 5; const ll INF = 1e18; struct Edge { int to, a, b; Edge(int to, int a, int b) : to(to), a(a), b(b) {} }; struct Data ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; const int MAX_V = 50; const int MAX_S = MAX_V * 50 + 5; const ll INF = 1e18; struct Edge { int to, a, b; Edge(int to, int a, int b) : to(to), a(a), b(b) {} }; struct Data ...
[["-", 0, 30, 0, 122, 8, 123, 0, 124, 0, 21], ["+", 0, 30, 0, 122, 8, 123, 0, 124, 0, 35], ["+", 0, 30, 0, 122, 8, 123, 0, 124, 39, 78], ["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["-", 51, 218, 49, 185, 54, 55, 0, 56, 39, 40], ["+", 51, 218, 49, 185, 54, 55, 0, 56, 39, 78...
1
574
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> l_l; const ll INFLL = (ll)1e18 + 1; struct edge { ll to; ll a; ll b; }; vector<ll> A, B, C, D; vector<vector<edge>> edge1, edge2; vector<ll> dijkstra(ll s) { priority_queue<l_l, vector<l_l>, greater<l_l>> pq; vector<ll> ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> l_l; const ll INFLL = (ll)1e18 + 1; struct edge { ll to; ll a; ll b; }; vector<ll> A, B, C, D; vector<vector<edge>> edge1, edge2; vector<ll> dijkstra(ll s) { priority_queue<l_l, vector<l_l>, greater<l_l>> pq; vector<ll> ...
[["-", 0, 43, 49, 50, 51, 4, 0, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 4, 0, 16, 12, 13], ["-", 8, 9, 0, 37, 0, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 37, 0, 16, 31, 16, 12, 13], ["-", 3, 4, 0, 16, 12, 23, 0, 16, 31, 13], ["+", 3, 4, 0, 16, 12, 23, 0, 16, 31, 13], ["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 13], ["+", 0, 43, 49, ...
1
669
#include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <cstdlib> #include <cstring> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <s...
#include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <cstdlib> #include <cstring> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <numeric> #include <queue> #include <random> #include <set> #include <sstream> #include <s...
[["-", 0, 11, 12, 2, 3, 4, 0, 16, 17, 72], ["-", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13], ["-", 141, 343, 345, 344, 3, 347, 0, 77, 39, 40], ["+", 141, 343, 345, 344, 3, 347, 0, 77, 39, 78]]
1
962
#include <bits/stdc++.h> #define pa_ pair<int, int> #define mp make_pair #define ll long long #define pb push_back #define fi first #define se second using namespace std; const ll INF = 1LL << 60; const int inf = 1 << 30; inline void fastio() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); } const int max...
#include <bits/stdc++.h> #define pa_ pair<int, int> #define mp make_pair #define ll long long #define pb push_back #define fi first #define se second using namespace std; const ll INF = 1LL << 60; const int inf = 1 << 30; inline void fastio() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); } const int max...
[["-", 8, 9, 0, 338, 8, 9, 0, 43, 39, 40], ["+", 8, 9, 0, 338, 8, 9, 0, 43, 39, 78], ["-", 0, 7, 8, 9, 0, 43, 49, 50, 51, 22], ["+", 0, 7, 8, 9, 0, 43, 49, 50, 51, 22]]
1
551
#include <bits/stdc++.h> #define int long long #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; constexpr int MOD = 1000000007; constexpr int INF = numeric_limits<int>::max() / 5; typedef pair<int, int> P; // 辺に重みをつける場合 struct Edge { int to; int cost; int time; Edge(int t, int c, int r...
#include <bits/stdc++.h> #define int long long #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; constexpr int MOD = 1000000007; constexpr int INF = numeric_limits<int>::max() / 5; typedef pair<int, int> P; // 辺に重みをつける場合 struct Edge { int to; int cost; int time; Edge(int t, int c, int r...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22]]
1
690
import numpy as np R = float(input()) P = np.pi print(R * P)
import numpy as np R = float(input()) P = np.pi print(2.0 * P * R)
[["-", 0, 1, 0, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 531], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
23
#include <stdio.h> int main() { int r; float c; scanf("%d", &r); c = 3.1415 * r; printf("%f", c); return 0; }
#include <stdio.h> int main() { int r; float c; scanf("%i", &r); c = 2 * 3.1415 * r; 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, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48]]
0
42
#include <bits/stdc++.h> #define repr(i, from, to) for (int(i) = (from); (i) < (to); (i)++) #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) // const bool debug=true; const bool debug = false; #define DEBUG if (debug == true) #define all(x) begin((x)), end((x)) #define vprint(x) ...
#include <bits/stdc++.h> #define repr(i, from, to) for (int(i) = (from); (i) < (to); (i)++) #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) // const bool debug=true; const bool debug = false; #define DEBUG if (debug == true) #define all(x) begin((x)), end((x)) #define vprint(x) ...
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]]
1
176
import math R = int(input()) print(R * math.pi)
#!/usr/bin/env python3 import math R = int(input()) print(2 * R * math.pi)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
18
#include <iostream> using namespace std; int R; int main() { cin >> R; cout << (R * R * 3.141) << endl; }
#include <iostream> using namespace std; int R; int main() { cin >> R; cout << R * 6.28 << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 23, 0, 24], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 17, 48], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 23, 0, 25], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
31
#include <bits/stdc++.h> using namespace std; int main() { double pi = 6.28318530717958623200 / 2; int r; cin >> r; cout << r * pi << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double pi = 6.28318530717958623200; int r; cin >> r; cout << r * pi << endl; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
34
#include <iostream> using namespace std; int main(void) { int R; cin >> R; double ans = 3.1415926 * (double)R; cout << ans << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int R; cin >> R; double ans = 3.1415926 * (double)R * 2; cout << ans << endl; return 0; }
[["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 48], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
39
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, N) for (ll i = 0; i < N; i++) const int mx = 2e5; int main(void) { double a; cin >> a; cout << a * 6.2831853 * 2; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, N) for (ll i = 0; i < N; i++) const int mx = 2e5; int main(void) { double a; cin >> a; cout << a * 6.2831853; return 0; }
[["-", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48], ["-", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
48
#include <iostream> using namespace std; int main() { float r, c; cin >> r; c = 2 * 22 / 7 * r; cout << c; }
#include <iostream> using namespace std; int main() { float r, c; cin >> r; c = 2 * 3.14 * r; cout << c; }
[["-", 0, 11, 12, 16, 31, 16, 31, 16, 12, 13], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 85], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13]]
1
35
import numpy as np a=int(input()) pi = 4 * np.arctan(1) #変数piに4*tanh(1)を代入 b=a*pi print(b)
import numpy as np a=int(input()) pi = 4 * np.arctan(1) #変数piに4*tanh(1)を代入 b=a*pi*2 print(b)
[["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 48], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612]]
5
32
import numpy as np R = int(input()) print(np.pi*R)
import numpy as np R = int(input()) print(2*np.pi*R)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
20
#include <bits/stdc++.h> using namespace std; int main() { int r; cin >> r; double c = 2 * 22 * r / 7; cout << c; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int r; cin >> r; double c = 2 * r * 3.1415926; cout << c; return 0; }
[["-", 49, 50, 51, 16, 31, 16, 31, 16, 12, 13], ["-", 0, 43, 49, 50, 51, 16, 31, 16, 17, 48], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 85], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 48], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
1
37
R = int(input()) import math print(R * math.pi)
R = int(input()) import math print( 2* R * math.pi)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
18
import sys import re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_upp...
import sys import re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_upp...
[["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
218
print(int(input)*2*3.141592)
print(int(input())*2*3.141592)
[["+", 31, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 31, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
11
#include <bits/stdc++.h> using namespace std; int main() { double r; cout << M_PI * r * 2; }
#include <bits/stdc++.h> using namespace std; int main() { double r; cin >> r; cout << M_PI * r * 2; }
[["+", 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
23
#include <algorithm> #include <cassert> #include <functional> #include <iostream> #include <string> #include <vector> #define PI 3.14159265359 using namespace std; int main() { int R; cin >> R; cout << R * PI; return 0; }
#include <algorithm> #include <cassert> #include <functional> #include <iostream> #include <string> #include <vector> #define PI 3.14159265359 using namespace std; int main() { int R; cin >> R; cout << 2 * R * PI; return 0; }
[["+", 0, 1, 0, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48]]
1
41
import math R = int(input()) print(2 * math.pai * R)
import math R = int(input()) print(2 * math.pi * R)
[["-", 3, 4, 0, 657, 31, 657, 12, 319, 319, 22], ["+", 3, 4, 0, 657, 31, 657, 12, 319, 319, 22]]
5
20
#include <bits/stdc++.h> using namespace std; int main() { double r; cin >> r; cout << r * 3.1415; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double r; cin >> r; cout << r * 3.14 * 2; return 0; }
[["-", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
28
/* ID: wangyuxi20040901 TASK: () LANG: C++ DATE: 20200419 19:22:44 *///using CRLF, UTF-8 #include <algorithm> #include <cstdio> #include <cstring> #define pr printf #define F(i, j, k) for (register int i = j, kkllkl = k; i <= kkllkl; ++i) #define G(i, j, k) for (register int i = j, kkllkl = k; i >= kkllkl; --i) #defi...
/* ID: wangyuxi20040901 TASK: () LANG: C++ DATE: 20200419 19:22:44 *///using CRLF, UTF-8 #include <algorithm> #include <cstdio> #include <cstring> #define pr printf #define F(i, j, k) for (register int i = j, kkllkl = k; i <= kkllkl; ++i) #define G(i, j, k) for (register int i = j, kkllkl = k; i >= kkllkl; --i) #defi...
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
201
import math s=input() l=float(2*s)*math.pi print(l)
import math s=float(input()) l=float(2*s)*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
23
n = int(input()) a = n * 2 * math.pi print(a)
import math n = int(input()) a = n * 2 * math.pi print(a)
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]]
5
21
puts (gets.to_f * 2 * Math.PI)
puts (gets.to_f * 2 * Math::PI)
[["-", 3, 4, 0, 739, 0, 738, 12, 652, 17, 131], ["+", 3, 4, 0, 739, 0, 738, 12, 760, 0, 349]]
4
12
#include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { double a; cin >> a; a = a * 3.141592; cout << a; return 0; }
#include <iostream> #include <math.h> #include <stdio.h> using namespace std; int main() { double a; cin >> a; a = a * 2; a = a * 3.141592; cout << a; return 0; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 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, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48]]
1
36
#include <bits/stdc++.h> using namespace std; int main() { int R; cin >> R; cout << setprecision(9) << 2 * acos(0) * R << "\n"; }
#include <bits/stdc++.h> using namespace std; int main() { int R; cin >> R; cout << setprecision(9) << 2 * 3.141592653589793 * R << "\n"; }
[["-", 31, 16, 12, 16, 31, 16, 12, 2, 63, 22], ["-", 12, 16, 31, 16, 12, 2, 3, 4, 0, 24], ["-", 12, 16, 31, 16, 12, 2, 3, 4, 0, 13], ["-", 12, 16, 31, 16, 12, 2, 3, 4, 0, 25], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13]]
1
39
# coding: utf-8 def main(): R = input(int()) return R * 2 * 3.1415 print(main())
# coding: utf-8 def main(): R = int(input()) return R * 2 * 3.1415 print(main())
[["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 652, 63, 22]]
5
26
#include <algorithm> #include <iostream> #include <numeric> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { double r; cin >> r; cout << r * 3.1415; }
#include <algorithm> #include <iostream> #include <numeric> #include <stdio.h> #include <string> #include <vector> using namespace std; int main() { double r; cin >> r; cout << r * 6.28318530717958623200; }
[["-", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
35
#include <iostream> #include <string> using namespace std; #define pi 3.141592 int main() { int n; cin >> n; cout << n * n * pi; }
#include <iostream> #include <string> using namespace std; #define pi 3.141592 int main() { int n; cin >> n; cout << 2 * n * pi; }
[["-", 0, 1, 0, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 31, 13]]
1
32
import math R = int(input()) C = 2 * math.pi * R print("%.10ef" % C)
import math R = int(input()) C = 2 * math.pi * R print("%.2f" % C)
[["-", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 657, 31, 557, 0, 6]]
5
27
#include <iostream> using namespace std; int main() { int a; cin >> a; int ans = a * 6.28318530717958623200; cout << ans << endl; }
#include <iostream> using namespace std; int main() { int a; cin >> a; double ans = a * 6.28318530717958623200; cout << ans << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
32
#include <math.h> #include <stdio.h> int main() { double r = 0; double ans = 0; scanf("%f", &r); ans = 2 * r * M_PI; printf("%f\n", ans); return 0; }
#include <math.h> #include <stdio.h> int main() { double r = 0; double ans = 0; scanf("%lf", &r); ans = 2 * r * M_PI; printf("%lf\n", ans); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
51
#include <math.h> #include <stdio.h> int main() { float r = 0; scanf("%d", &r); printf("%f\n", 2 * r * M_PI); return 0; }
#include <math.h> #include <stdio.h> int main() { int r = 0; scanf("%d", &r); printf("%f\n", 2 * r * M_PI); return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
0
42
import math rad = int(input()) print(rad*2*math.pi,5)
import math rad = int(input()) print(rad*2*math.pi)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 612]]
5
22
import fractions pi = fractions.pi R = int(input()) print(2*pi*R)
import math pi = math.pi R = int(input()) print(2*pi*R)
[["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 12, 319, 500, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 319, 500, 22]]
5
23
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pi; #define F first #define S second #define pb push_back #define mp make_pair #define fr(i, a, b) for (int i = a; i < b; i++) int main() { ios::sync_with_stdio(0); cin.tie(0); int r; cin >> r;...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int> pi; #define F first #define S second #define pb push_back #define mp make_pair #define fr(i, a, b) for (int i = a; i < b; i++) int main() { ios::sync_with_stdio(0); cin.tie(0); float r; cin >> ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 49, 50, 51, 16, 31, 16, 31, 74, 0, 24], ["+", 51, 16, 31, 16, 31, 74, 39, 77, 39, 40], ["+", 49, 50, 51, 16, 31, 16, 31, 74, 0, 25]]
1
92
#include <iostream> using namespace std; int main(void) { double r; cin >> r; cout << r * 3.1415926535; }
#include <iostream> using namespace std; int main(void) { double r; cin >> r; cout << 2 * r * 3.1415926535; }
[["+", 0, 1, 0, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48]]
1
26
#include <algorithm> #include <iomanip> #include <iostream> #include <vector> using namespace std; const int N = 2e5 + 500; #define ll long long int main() { double n; cin >> n; double ans = 2 * 3.14 * n * n; cout << ans << endl; }
#include <algorithm> #include <iomanip> #include <iostream> #include <vector> using namespace std; const int N = 2e5 + 500; #define ll long long int main() { double n; cin >> n; double ans = 2 * 3.14 * n; cout << ans << endl; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 48], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22]]
1
53
#include <bits/stdc++.h> using namespace std; int main() { float L; int R; cin >> R; L = R * 3.14; cout << L << endl; }
#include <bits/stdc++.h> using namespace std; int main() { float L; int R; cin >> R; L = R * 6.28; cout << L << endl; }
[["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
34
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); double tmp = (double)N; System.out.println(tmp * 3.14159265358979323846264338327950288); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); double tmp = (double)N; System.out.println(tmp * 3.14159265358979323846264338327950288 * 2.0000000000000000000000); } }
[["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 48], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 515]]
3
63
/* * Author: pawanmsr */ #include <bits/stdc++.h> using namespace std; typedef long long int ll; // Macro // #define X first #define Y second #define pii pair<int, int> #define pll pair<ll, ll> // Global // // Functions // // Main // int main(int argc, char const *argv[]) { // ios_base::sync_with_stdio(false)...
/* * Author: pawanmsr */ #include <bits/stdc++.h> using namespace std; typedef long long int ll; // Macro // #define X first #define Y second #define pii pair<int, int> #define pll pair<ll, ll> // Global // // Functions // // Main // int main(int argc, char const *argv[]) { // ios_base::sync_with_stdio(false)...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
73
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll mod = 1000000007; #define _USE_MATH_DEFINES #define print(val) print_helper(#val, val); #define bg begin #define pb push_back #define pll pair<ll, ll> #define pii pair<int32_t, int32_t> #define loop(i, n) for (int64_t i = 0; i < n; i++) #define loop...
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll mod = 1000000007; #define _USE_MATH_DEFINES #define print(val) print_helper(#val, val); #define bg begin #define pb push_back #define pll pair<ll, ll> #define pii pair<int32_t, int32_t> #define loop(i, n) for (int64_t i = 0; i < n; i++) #define loop...
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
234
def resolve(): r = int(input()) print(2 * r * math.pi) resolve()
def resolve(): r = int(input()) print(2 * r * 3.14159265358) resolve()
[["-", 0, 652, 3, 4, 0, 657, 12, 319, 500, 22], ["-", 0, 652, 3, 4, 0, 657, 12, 319, 0, 131], ["-", 0, 652, 3, 4, 0, 657, 12, 319, 319, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 531]]
5
26
import numpy as np r = int(input()) l = 2.0*r*np.pi
import numpy as np r = int(input()) l = 2.0*r*np.pi print(l)
[["+", 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
21
#include <bits/stdc++.h> using namespace std; int main() { double r, a; cin >> r; a = r * 3.141592; cout << fixed << setprecision(7) << a << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { double r, a; cin >> r; a = 2 * r * 3.141592; cout << fixed << setprecision(7) << a << endl; return 0; }
[["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48]]
1
43
package main import ( "fmt" ) func main(){ var r float64; fmt.Scan(&r) fmt.Println((22.0/7.0)*r*r) }
package main import ( "fmt" ) func main(){ var r float64; fmt.Scan(&r) fmt.Println(2.0*(22.0/7.0)*r) }
[["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 445], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 17, 48], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 17, 48], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22]]
7
44
package main import ( "fmt" ) func main(){ var r float64; fmt.Scan(&r) fmt.Println((22.0/7.0)*r*r) }
package main import ( "fmt" ) func main(){ var r float64; fmt.Scan(&r) fmt.Println(2*(22.0/7.0)*r) }
[["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 433], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 17, 48], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 17, 48], ["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22]]
7
44
#include "bits/stdc++.h" using namespace std; int main() { float in, out; cin >> in; out = in * in * 3.141592; cout << out; return 0; }
#include "bits/stdc++.h" using namespace std; int main() { float in, out; cin >> in; out = in * 2 * 3.141592; cout << out; return 0; }
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13]]
1
38
R = gets.to_i puts R*Math::PI
R = gets.to_i puts 2*R*Math::PI
[["+", 0, 652, 3, 4, 0, 738, 31, 738, 31, 612], ["+", 0, 652, 3, 4, 0, 738, 31, 738, 17, 48]]
4
11
import math r=int(input()) print(2*math.pi*3)
import math r=float(input()) print(2*math.pi*r)
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]]
5
20
#include <math.h> #include <stdio.h> int main() { int r = 0; double result = 0; scanf("%d", &r); result = (double)r * M_PI; printf("%.15f", result); }
#include <math.h> #include <stdio.h> int main() { int r = 0; double result = 0; scanf("%d", &r); r = r * 2; result = (double)r * M_PI; printf("%.15f", result); }
[["+", 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, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
0
48
R=int(input()) print(3.14*R)
R=int(input()) print(3.14*2*R)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]]
5
14
#include <bits/stdc++.h> using namespace std; int main() { double R; cin >> R; cout << R * R * 3.141592 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double R; cin >> R; cout << 2 * R * 3.141 << endl; }
[["-", 0, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
29
/* 我的心脏怦怦跳,监管者就在附近 name: Algorithm: writer:Lxs(cdx) place: nothing is impossible */ #pragma GCC optimize(3, "Ofast", "inline") #include <bits/stdc++.h> #include <cmath> #include <cstring> #include <iostream> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <unistd.h> #defin...
/* 我的心脏怦怦跳,监管者就在附近 name: Algorithm: writer:Lxs(cdx) place: nothing is impossible */ #pragma GCC optimize(3, "Ofast", "inline") #include <bits/stdc++.h> #include <cmath> #include <cstring> #include <iostream> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <unistd.h> #defin...
[["+", 0, 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], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
110
import math r=int(input()) print(math.pi * r)
import math r=int(input()) print(2* math.pi * r)
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
18
import math r = int(input()) print(pi*2*r)
import math r = int(input()) print(math.pi*2*r)
[["+", 3, 4, 0, 657, 31, 657, 31, 319, 500, 22], ["+", 3, 4, 0, 657, 31, 657, 31, 319, 0, 131]]
5
18
print(3.1415*int(input()))
print(2*3.1415*int(input()))
[["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48]]
5
11
n = gets.chomp.to_i puts n * Math::PI
n = gets.chomp.to_i puts n *2 * Math::PI
[["+", 0, 652, 3, 4, 0, 741, 0, 738, 31, 612], ["+", 0, 652, 3, 4, 0, 741, 0, 738, 17, 48]]
4
13
#include <stdio.h> int main(int r) { scanf("%d", r); printf("%f\n", 2 * r * 3.14159265358979323846); }
#include <stdio.h> int main(int r) { scanf("%d", &r); printf("%f\n", 2 * r * 3.14159265358979323846); }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
33
#include <cstdio> #include <iostream> #define Pi 3.141592635 using namespace std; double R; double C; int main() { scanf("%lf", &R); C = 2 * R * Pi; printf("lf", C); }
#include <cstdio> #include <iostream> #define Pi 3.141592635 using namespace std; double R; double C; int main() { scanf("%lf", &R); C = 2.0 * R * Pi; printf("%lf\n", C); }
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
50
#include <bits/stdc++.h> using namespace std; int main() { long r; cin >> r; cout << (double)r * M_PI << endl; }
#include <bits/stdc++.h> using namespace std; int main() { long r; cin >> r; cout << 2 * (double)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
30
#include <bits/stdc++.h> using namespace std; int main() { long r; cin >> r; cout << (double)r * M_PI << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int r; cin >> r; cout << 2 * (double)r * M_PI << endl; }
[["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
30
#include <bits/stdc++.h> using namespace std; int main() { // 79502884197169399375105820974944 int r; cin >> r; long double pi = 3.1415926535897932384626433832; long double ans = r * r * pi; cout << ans << setprecision(6); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { // 79502884197169399375105820974944 int r; cin >> r; long double pi = 3.1415926535897932384626433832; long double ans = 2 * r * pi; cout << ans << setprecision(6); return 0; }
[["-", 0, 43, 49, 50, 51, 16, 31, 16, 31, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 31, 13]]
1
48
#define USE_MATS_DEFINES #include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { int radio; cin >> radio; cout << setprecision(20) << M_PI * radio << endl; return 0; }
#define USE_MATS_DEFINES #include <cmath> #include <iomanip> #include <iostream> using namespace std; int main() { int radio; cin >> radio; cout << fixed << setprecision(20) << 2 * M_PI * radio << endl; return 0; }
[["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]]
1
41
<?php fscanf(STDIN, "%d", $d); echo (float)$d*3.14 . "\n";
<?php fscanf(STDIN, "%d", $d); echo $d*2*3.14 . "\n";
[["-", 0, 608, 0, 16, 31, 16, 31, 74, 0, 24], ["-", 0, 608, 0, 16, 31, 16, 31, 74, 39, 615], ["-", 0, 608, 0, 16, 31, 16, 31, 74, 0, 25], ["+", 0, 608, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 0, 608, 0, 16, 31, 16, 31, 16, 12, 612]]
6
26
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int M = (int)1e2; const int inf = 0x3f3f3f3f; const ll mod = (ll)1e9 + 7; const double eps = 1e-8; int main() { int r; scanf("%d", &r); printf("%.12f\n", acos(-1.0) * r); return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int M = (int)1e2; const int inf = 0x3f3f3f3f; const ll mod = (ll)1e9 + 7; const double eps = 1e-8; int main() { int r; scanf("%d", &r); printf("%.12f\n", 2.0 * acos(-1.0) * r); return 0; }
[["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 17, 48]]
1
80
#include <cstdio> #include <math.h> #include <stdlib.h> using namespace std; int main() { long long R; scanf("%lld", &R); printf("%lld\n", 2 * R * M_PI); }
#include <cstdio> #include <math.h> #include <stdlib.h> using namespace std; int main() { long long R; scanf("%lld", &R); printf("%f\n", 2 * R * M_PI); }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
44
#include <stdio.h> int main() { int r; float ans; scanf("%d", &r); ans = 2 * r * 3.14; printf("%d", ans); return 0; }
#include <stdio.h> int main() { int r; float ans; scanf("%d", &r); ans = 2 * r * 3.14; printf("%f", ans); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
44
#include <iostream> using namespace std; int r; int main() { cin >> r; cout << (long double)3.14159265358979 * r; return 0; }
#include <iostream> using namespace std; int r; int main() { cin >> r; cout << (long double)3.14159265358979 * r * 2; return 0; }
[["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]]
1
32
import math print(2*math.pi()*int(input()))
import math print(2*(math.pi)*int(input()))
[["+", 3, 4, 0, 657, 31, 657, 12, 23, 0, 24], ["-", 0, 657, 31, 657, 12, 652, 3, 4, 0, 24]]
5
19
#define _USE_MATH_DEFINES #include <math.h> #include <stdio.h> int main(void) { int R; scanf("%d", &R); double val = (double)R * M_PI_2; printf("%lf", val); return 0; }
#define _USE_MATH_DEFINES #include <math.h> #include <stdio.h> int main(void) { int R; scanf("%d", &R); double val = (double)R * M_PI * 2.0; printf("%lf", val); return 0; }
[["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 17, 48], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]]
0
48
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned ll #define pii pair<int, int> #define pll pair<ll, ll> #define mp make_pair #define ff first #define ss second #define sz(x) (int)x.size() #define all(v) v.begin(), v.end() template <typename T> inline void smin(T &a, T b) { a = a...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned ll #define pii pair<int, int> #define pll pair<ll, ll> #define mp make_pair #define ff first #define ss second #define sz(x) (int)x.size() #define all(v) v.begin(), v.end() template <typename T> inline void smin(T &a, T b) { a = a...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
534
#include <algorithm> #include <iostream> #include <vector> #define int long long using namespace std; signed main() { int n; cin >> n; cout << n * 3.14159; return 0; }
#include <algorithm> #include <iostream> #include <vector> #define int long long using namespace std; signed main() { int n; cin >> n; cout << n * 2 * 3.14159 << endl; return 0; }
[["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
35
#include <algorithm> #include <iostream> #include <vector> #define int long long using namespace std; signed main() { double n; cin >> n; cout << n * 3.14159; return 0; }
#include <algorithm> #include <iostream> #include <vector> #define int long long using namespace std; signed main() { double n; cin >> n; cout << n * 2 * 3.14159; return 0; }
[["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48]]
1
35
<?php $n = fgets(STDIN); $R = $n * 3.14; echo "$R"; ?>
<?php $n = fgets(STDIN); $R = $n * 2 * 3.14; echo $R; ?>
[["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 612], ["+", 0, 493, 0, 1, 0, 11, 12, 16, 17, 48], ["-", 36, 36, 0, 493, 0, 608, 0, 609, 0, 62]]
6
24
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #define IOS ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> #define IOS ...
[["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22]]
1
145
#include <iostream> #include <math.h> using namespace std; int main() { int r; cout << M_PI * 2 * r << endl; return 0; }
#include <iostream> #include <math.h> using namespace std; int main() { int r; cin >> r; cout << M_PI * 2 * r << 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
30
#include <bits/stdc++.h> using namespace std; int main() { int R; cin >> R; int answer = R * 2 * 3.14159265358979323846264338327950288419716939937510; cout << answer << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double R; cin >> R; double answer = R * 2 * 3.14159265358979323846264338327950288419716939937510; cout << answer << 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> using namespace std; int main() { int r = 0; cin >> r; cout << r * 3.1415926535; }
#include <bits/stdc++.h> using namespace std; int main() { int r = 0; cin >> r; cout << r * 2 * 3.1415926535; }
[["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48]]
1
27
// model #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; cout << n * 3.14; return 0; }
// model #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; cout << n * 2 * 3.14; return 0; }
[["+", 0, 1, 0, 16, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48]]
1
29
R = float(input()) print(2*R*math.pi)
import math R = float(input()) print(2*R*math.pi)
[["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]]
5
18
//皆さん、第9回シンデレラガール総選挙は、トップでオンリーワンを目指す城ヶ崎美嘉に //そしてボイスアイドルオーディションは、プログラミングが趣味の才女大石泉に、ぜひ投票をお願いします! //#城ヶ崎美嘉を009のシンデレラに //#大石泉の必勝プログラム #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #inclu...
//皆さん、第9回シンデレラガール総選挙は、トップでオンリーワンを目指す城ヶ崎美嘉に //そしてボイスアイドルオーディションは、プログラミングが趣味の才女大石泉に、ぜひ投票をお願いします! //#城ヶ崎美嘉を009のシンデレラに //#大石泉の必勝プログラム #include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #inclu...
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
138
import math N = input() M = float(N)*math.pi print(M)
import math N = input() M = 2*float(N)*math.pi print(M)
[["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 48]]
5
21
#include <math.h> #include <stdio.h> int main() { double r, Hr; scanf("%f", &r); Hr = 2.0 * M_PI * r; printf("%f", Hr); return 0; }
#include <math.h> #include <stdio.h> int main() { double r, Hr; scanf("%lf", &r); Hr = 2.0 * M_PI * r; printf("%lf", Hr); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
45
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); System.out.println(A * Math.PI); } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); System.out.println(2 * A * Math.PI); } }
[["+", 0, 492, 3, 4, 0, 16, 31, 16, 31, 499], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 17, 48]]
3
56
#include <bits/stdc++.h> using namespace std; #define ll long long int #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); int main() { ll R; cin >> R; ll ans = 2 * R * 3.14; cout <<...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); int main() { double R; cin >> R; double ans = 2 * R * 3.14; ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
43
#include <bits/stdc++.h> using namespace std; #define ll long long int #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); int main() { ll R; cin >> R; ll ans = 2 * R * 3.14; cout <<...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); int main() { ll R; cin >> R; double ans = 2 * R * 3.14; cou...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]]
1
43
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> using namespace std; typedef long long ll; double ans; ll N; int main() { cin >> N; ans = M_PI * N; cout << ans << endl; }
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> using namespace std; typedef long long ll; double ans; ll N; int main() { cin >> N; ans = M_PI * N * 2; cout << ans << endl; }
[["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]]
1
51
import math R = int(input()) pai = 3.1415926535 circle_pond = 2*R*math.pai print(circle_pond)
import math R = int(input()) circle_pond = 2*R*math.pi print(circle_pond)
[["-", 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, 531], ["-", 0, 1, 0, 662, 12, 657, 12, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 319, 319, 22]]
5
26
#include <stdio.h> int main(void) { float n = 0; scanf("%f", &n); printf("%f", n * 3.14); }
#include <stdio.h> int main(void) { float n = 0; scanf("%f", &n); printf("%f", n * 3.14 * 2); }
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]]
0
35
#include <math.h> #include <stdio.h> int main(void) { int l; double sum; scanf("%d", &l); sum = l * 2 * M_PI; scanf("%lf", sum); return 0; }
#include <math.h> #include <stdio.h> int main(void) { int l; double sum; scanf("%d", &l); sum = l * 2 * M_PI; printf("%lf", sum); return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22]]
0
47
from math import pi R=input() print(2*R*pi)
from math import pi R=float(input()) print(2*R*pi)
[["+", 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
17
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int R = sc.nextInt(); double x = 0; x = 3.14159265358979323 * R; System.out.println(x); sc.close(); } }
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int R = sc.nextInt(); double x = 0; x = 3.14159265358979323 * R; System.out.println(x * 2); sc.close(); } }
[["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 48], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 499]]
3
70
import math def round(x): return 2* math.pi * x R = int(input()) if __name__== "__maib__": print(round(R))
import math def round(x): return 2* math.pi * x R = int(input()) if __name__== "__main__": print(round(R))
[["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 6]]
5
38
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { double x; cin >> x; cout << x * 3.14 << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { double x; cin >> x; cout << x * 6.28 << endl; }
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]]
1
35