buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define rrep(i, n) for (int i = n - 1; i >= 0; i--)
#define rep2(i, s, n) for (int i = s; i < n; ++i)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define tmax(a, b, c) max(a, max(b, c))
#define tmin(a, b, c) min(a, min(b, ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define rrep(i, n) for (int i = n - 1; i >= 0; i--)
#define rep2(i, s, n) for (int i = s; i < n; ++i)
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define tmax(a, b, c) max(a, max(b, c))
#define tmin(a, b, c) min(a, min(b, ... | [["+", 51, 2, 3, 4, 0, 83, 0, 2, 63, 22], ["+", 3, 4, 0, 83, 0, 2, 3, 4, 0, 24], ["+", 3, 4, 0, 83, 0, 2, 3, 4, 0, 21], ["+", 3, 4, 0, 83, 0, 2, 3, 4, 0, 13], ["+", 3, 4, 0, 83, 0, 2, 3, 4, 0, 25]] | 1 | 915 |
#ifdef MAIN == == == == == == == == == == == == == == == == == == == == == == \
== == == == == == == == == == == == == == == == == == == == == == == == == \
== == == == == == == == == == == == == == == == ==
+ library {
name:
graph_template,
url
: "https://tqkoh.github.io/library/library/lib/gra... | #ifdef MAIN == == == == == == == == == == == == == == == == == == == == == == \
== == == == == == == == == == == == == == == == == == == == == == == == == \
== == == == == == == == == == == == == == == == ==
+ library {
name:
graph_template,
url
: "https://tqkoh.github.io/library/library/lib/gra... | [["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]] | 1 | 3,912 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define sz(x) int(x.size())
#define show(x) \
{ \
for (auto i : x) { ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define sz(x) int(x.size())
#define show(x) \
{ \
for (auto i : x) { ... | [["+", 28, 69, 28, 2, 3, 4, 0, 16, 17, 72], ["+", 28, 69, 28, 2, 3, 4, 0, 16, 12, 13], ["-", 51, 218, 49, 185, 54, 55, 0, 56, 39, 40], ["+", 51, 218, 49, 185, 54, 55, 0, 56, 39, 78], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 606 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.14159265359
#define INF 1000100100
#define MOD 1000000007
#define all(x) (x).begin(), (x).end()
typedef long long ll;
#define P pair<int, int>
#define PP pair<int, int>
#define T tuple<int, int, int>
using namespace std;
struct Edge {
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.14159265359
#define INF 1e18
#define MOD 1000000007
#define all(x) (x).begin(), (x).end()
typedef long long ll;
#define P pair<int, int>
#define PP pair<int, int>
#define T tuple<int, int, int>
using namespace std;
struct Edge {
int ... | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 58, 51, 59]] | 1 | 561 |
#include <bits/stdc++.h>
using namespace std;
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;
}
using ll = long long;
using P = pair<ll, ll>... | #include <bits/stdc++.h>
using namespace std;
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;
}
using ll = long long;
using P = pair<ll, ll>... | [["+", 0, 30, 0, 43, 49, 80, 81, 16, 17, 72], ["+", 0, 30, 0, 43, 49, 80, 81, 16, 12, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 737 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vec;
typedef vector<vec> mat;
typedef pair<ll, ll> pll;
const ll mod = 1e9 + 7;
// const ll mod=998244353;
const ll inf = 1LL << 61;
typedef pair<pll, ll> ppll;
int main() {
ll n, m, s;
cin >> n >> m >> s;
vector<vector<ppll>... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vec;
typedef vector<vec> mat;
typedef pair<ll, ll> pll;
const ll mod = 1e9 + 7;
// const ll mod=998244353;
const ll inf = 1LL << 61;
typedef pair<pll, ll> ppll;
int main() {
ll n, m, s;
cin >> n >> m >> s;
vector<vector<ppll>... | [["-", 0, 2, 3, 4, 0, 83, 0, 83, 0, 22], ["+", 0, 2, 3, 4, 0, 83, 0, 83, 0, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 83, 0, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 83, 0, 22], ["-", 8, 9, 0, 52, 8, 9, 0, 338, 49, 22], ["+", 8, 9, 0, 52, 8, 9, 0, 338, 49, 22], ["-", 0, 43, 49, 50, 51, 118, 28, 118, 28, 22], ["+", 0, 43, 49, 50, 51, 118,... | 1 | 486 |
def examA():
S, W = LI()
if S<=W:
print("unsafe")
else:
print("safe")
return
def examB():
A, B, C, D = LI()
while(True):
C -= B
if C<=0:
print("Yes")
break
A -= D
if A<=0:
print("No")
break
retur... | def examA():
S, W = LI()
if S<=W:
print("unsafe")
else:
print("safe")
return
def examB():
A, B, C, D = LI()
while(True):
C -= B
if C<=0:
print("Yes")
break
A -= D
if A<=0:
print("No")
break
retur... | [["-", 0, 14, 8, 196, 0, 1, 0, 662, 12, 612], ["+", 0, 14, 8, 196, 0, 1, 0, 662, 12, 612], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 33], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 1,215 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define ve vector
ll dp[50][5005];
int main() {
ll n, m, s;
cin >> n >> m >> s;
ve<ve<pair<ll, P>>> e(n);
rep(i, m) {
ll u, v, a, b;
cin >> u >> v >> a >> b;
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define ve vector
ll dp[50][5005];
int main() {
ll n, m, s;
cin >> n >> m >> s;
ve<ve<pair<ll, P>>> e(n);
rep(i, m) {
ll u, v, a, b;
cin >> u >> v >> a >> b;
... | [["-", 8, 9, 0, 43, 49, 50, 51, 74, 51, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 74, 51, 13]] | 1 | 637 |
#include <bits/stdc++.h>
using namespace std;
struct Edge {
long to, c, t;
};
const long inf = 1e18;
const long mx = 5000;
long n, m, s;
vector<Edge> g[50];
long ca[50];
long ti[50];
vector<long> sub() {
using PP = pair<long, long>;
using TT = pair<long, PP>;
priority_queue<TT, vector<TT>, greater<TT>> q;
... | #include <bits/stdc++.h>
using namespace std;
struct Edge {
long to, c, t;
};
const long inf = 1e18;
const long mx = 5000;
long n, m, s;
vector<Edge> g[50];
long ca[50];
long ti[50];
vector<long> sub() {
using PP = pair<long, long>;
using TT = pair<long, PP>;
priority_queue<TT, vector<TT>, greater<TT>> q;
... | [["+", 3, 4, 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, 22], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 25]] | 1 | 533 |
#include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define FOR(i, m, n) for (int i = (int)(m); i < (int)(n); ++i)
struct edge {
int to;
int change;
int time;
edge(int to, int c, int t) : to(to), change(c), time(... | #include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define FOR(i, m, n) for (int i = (int)(m); i < (int)(n); ++i)
struct edge {
int to;
int change;
int time;
edge(int to, int c, int t) : to(to), change(c), time(... | [["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 49, 53, 54, 55, 0, 56, 39, 86, 0, 96]] | 1 | 503 |
from heapq import heappop,heappush
def main():
N,M,S=map(int,input().split())
G=[[] for _ in range(N)]
for i in range(M):
U,V,A,B=map(int,input().split())
G[U-1].append([V-1,A,B])
G[V-1].append([U-1,A,B])
C=[]
D=[]
for _ in range(N):
c,d=map(int,input().split())
... | from heapq import heappop,heappush
def main():
N,M,S=map(int,input().split())
G=[[] for _ in range(N)]
for i in range(M):
U,V,A,B=map(int,input().split())
G[U-1].append([V-1,A,B])
G[V-1].append([U-1,A,B])
C=[]
D=[]
for _ in range(N):
c,d=map(int,input().split())
... | [["+", 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, 21], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 382 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define PQ priority_queue<vector<ll>, vector<vector<ll>>, greater<vector<ll>>>
using ll = long long;
const int INF = 1001001001;
const ll maxS = 3000;
map<int, ll> dij(int f, ll s, ll n, vector<vector<vector<ll>>> &edge) {
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define PQ priority_queue<vector<ll>, vector<vector<ll>>, greater<vector<ll>>>
using ll = long long;
const ll INF = 1e18;
const ll maxS = 3000;
map<int, ll> dij(int f, ll s, ll n, vector<vector<vector<ll>>> &edge) {
map<int... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78], ["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13]] | 1 | 557 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = long long;
#define PQ priority_queue<vector<ll>, vector<vector<ll>>, greater<vector<ll>>>
const int INF = 1001001001;
const ll MAXS = 3000;
vector<vector<ll>> dijkstra(ll f, ll n, ll s,
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = long long;
#define PQ priority_queue<vector<ll>, vector<vector<ll>>, greater<vector<ll>>>
const ll INF = 1e18;
const ll MAXS = 3000;
vector<vector<ll>> dijkstra(ll f, ll n, ll s,
vector<... | [["-", 36, 36, 36, 36, 0, 30, 0, 43, 39, 40], ["+", 36, 36, 36, 36, 0, 30, 0, 43, 39, 78], ["-", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 50, 51, 13], ["-", 36, 36, 0, 30, 0, 14, 39, 86, 0, 156], ["+", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40]] | 1 | 579 |
#include <bits/stdc++.h>
#define int long long
#define endl '\n'
#define FOR(i, a, n) for (int i = (a); i < (n); ++i)
#define REP(i, n) FOR(i, 0, n)
using namespace std;
struct edge {
int to, cost, time;
edge() = default;
edge(int to, int cost, int time) : to(to), cost(cost), time(time) {}
};
const int INF = 1L... | #include <bits/stdc++.h>
#define int long long
#define endl '\n'
#define FOR(i, a, n) for (int i = (a); i < (n); ++i)
#define REP(i, n) FOR(i, 0, n)
using namespace std;
struct edge {
int to, cost, time;
edge() = default;
edge(int to, int cost, int time) : to(to), cost(cost), time(time) {}
};
const int INF = 1L... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 666 |
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> pii;
typedef tuple<ll, ll, ll> ti;
ll mod = 1E9 + 7;
#define REP(a, b, c) for (ll a = b; a < (c); a++)
#define PER(a, b, c) for (ll a = b; a >= (c); a--)
ll ii() {
ll x;
... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> pii;
typedef tuple<ll, ll, ll> ti;
ll mod = 1E9 + 7;
#define REP(a, b, c) for (ll a = b; a < (c); a++)
#define PER(a, b, c) for (ll a = b; a >= (c); a--)
ll ii() {
ll x;
... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22]] | 1 | 649 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<char> vc;
typedef vector<ll> vll;
typedef vector<vector<int>> vvi;
typedef vector<vector<string>> vvs;
typedef vector<vector<char>> vvc;
typedef vector<vector<bo... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<char> vc;
typedef vector<ll> vll;
typedef vector<vector<int>> vvi;
typedef vector<vector<string>> vvs;
typedef vector<vector<char>> vvc;
typedef vector<vector<bo... | [["+", 0, 30, 0, 43, 49, 80, 81, 16, 17, 72], ["+", 0, 30, 0, 43, 49, 80, 81, 16, 12, 13]] | 1 | 904 |
#define _USE_MATH_DEFINES
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <cmath>
#include <complex>
#include <iterator>
#include <sstream>
#include <bitset>
#include <cstring>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <queue>
#include <set>
... | #define _USE_MATH_DEFINES
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <cmath>
#include <complex>
#include <iterator>
#include <sstream>
#include <bitset>
#include <cstring>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <queue>
#include <set>
... | [["-", 0, 7, 8, 9, 0, 43, 49, 50, 51, 22], ["+", 0, 7, 8, 9, 0, 43, 49, 50, 51, 22]] | 1 | 890 |
#include <cstring>
#include <iostream>
#include <vector>
#define LL long long
using namespace std;
#define MAXN 60
#define MAXA 60
int N, M, S;
struct edge {
int v, a, b;
};
vector<edge> G[MAXN];
int C[MAXN], D[MAXN];
LL dp[MAXN][MAXA * MAXN];
LL ans;
inline void add(int u, int v, int a, int b) {
G[u].push_back... | #include <cstring>
#include <iostream>
#include <vector>
#define LL long long
using namespace std;
#define MAXN 60
#define MAXA 60
int N, M, S;
struct edge {
int v, a, b;
};
vector<edge> G[MAXN];
int C[MAXN], D[MAXN];
LL dp[MAXN][MAXA * MAXN];
LL ans;
inline void add(int u, int v, int a, int b) {
G[u].push_back... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 31, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 48], ["+", 8, 9, 0, 7, 15,... | 1 | 540 |
#include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
template <class T> inline bool chmin(T &a, T b) {
if (... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
template <class T> inline bool chmin(T &a, T b) {
if (... | [["-", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 822 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
const ll VMAX = 50;
const ll SMAX = VMAX * 50;
const ll INF = 1LL << 60;
struct Edge {
ll to, a, b;
Edge(ll to, ll a, ll b) : to(to), a(a), b(b) {}
};
struct Node {
ll v; // ノード
ll t, s; // ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
const ll VMAX = 50;
const ll SMAX = VMAX * 50;
const ll INF = 1LL << 60;
struct Edge {
ll to, a, b;
Edge(ll to, ll a, ll b) : to(to), a(a), b(b) {}
};
struct Node {
ll v; // ノード
ll t, s; // ... | [["+", 3, 4, 0, 2, 3, 4, 0, 16, 17, 33], ["+", 3, 4, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 615 |
#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
// template
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define ALL(v) (v).begin(), (v).end()
typedef long long int ll;
const int inf = 0x3fffffff;
const ll INF = 0x1fffffffffffffff;
const double eps = 1e-12;
template <typename T> inline ... | #define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;
// template
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define ALL(v) (v).begin(), (v).end()
typedef long long int ll;
const int inf = 0x3fffffff;
const ll INF = 0x1fffffffffffffff;
const double eps = 1e-12;
template <typename T> inline ... | [["-", 0, 134, 39, 344, 3, 347, 0, 77, 39, 40], ["+", 0, 134, 39, 344, 3, 347, 0, 77, 39, 78]] | 1 | 793 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
ll N, M, S;
cin >> N >> M >> S;
int amax = 2501;
if (S >= amax)
S = amax;
vector<vector<tuple<ll, int, int>>> G(N);
REP(i, M) {
int u, v, a, b;
cin >> u >> v >> a >> ... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
ll N, M, S;
cin >> N >> M >> S;
int amax = 2501;
if (S >= amax)
S = amax;
vector<vector<tuple<ll, int, int>>> G(N);
REP(i, M) {
int u, v, a, b;
cin >> u >> v >> a >> ... | [["+", 51, 4, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 51, 4, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 545 |
N, M, S = map(int,input().split())
ubab = [list(map(int, input().split())) for _ in range(M)]
cd = [list(map(int, input().split())) for _ in range(N)]
from heapq import heappush, heappop
routes = [[] for _ in range(N)]
max_money = 0
for u, v, a, b in ubab:
routes[u-1].append([b, -a, v-1]) #★注意★[コスト、お金、要素]
ro... | N, M, S = map(int,input().split())
ubab = [list(map(int, input().split())) for _ in range(M)]
cd = [list(map(int, input().split())) for _ in range(N)]
from heapq import heappush, heappop
routes = [[] for _ in range(N)]
max_money = 0
for u, v, a, b in ubab:
routes[u-1].append([b, -a, v-1]) #★注意★[コスト、お金、要素]
rou... | [["-", 64, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["-", 64, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 374 |
#include <stdio.h>
int main(void) {
int R;
scanf("%lf", &R);
printf("%lf\n", R * 6.28);
return 0;
}
| #include <stdio.h>
int main(void) {
double R;
scanf("%lf", &R);
printf("%f\n", R * 6.28);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 37 |
#include <stdio.h>
int main(void) {
int i;
scanf("%d", &i);
printf("%d", 6.28 * i);
return 0;
} | #include <stdio.h>
int main(void) {
int i;
scanf("%d", &i);
printf("%lf", 6.28 * i);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 36 |
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
int R;
scanf("%d", &R);
printf("%lf", 2 * R * 4 * tan(1));
return 0;
}
| #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
int R;
scanf("%d", &R);
printf("%lf", 2 * R * 4 * atan(1));
return 0;
}
| [["-", 0, 2, 3, 4, 0, 16, 12, 2, 63, 22], ["+", 0, 2, 3, 4, 0, 16, 12, 2, 63, 22]] | 1 | 51 |
import math
a = int(input(">"))
print(a * 2 * math.pi) | import math
a = int(input())
print(a * 2 * math.pi) | [["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 3, 4, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 23 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << fixed << setprecision(2) << N * M_PI << "\n";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
cout << fixed << setprecision(2) << N * 2 * M_PI << "\n";
} | [["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]] | 1 | 36 |
double a;
main() {
scanf("%Lf", &a);
printf("%.9Lf\n", a * 2 * 3.141592);
return 0;
} | double a;
main() {
scanf("%lf", &a);
printf("%.9f\n", a * 2 * 3.14159);
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, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 36 |
N=int(input())
x=N*3.1415926535897
print(x) | N=int(input())
x=2*N*3.1415926535897
print(x)
| [["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 17, 48]] | 5 | 17 |
r=int(input())
prnt(2*r*3.14) | r=int(input())
print(2*r*3.14) | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22]] | 5 | 16 |
from math import pi
r = int(input())
print(int(r) * int(r) * pi)
| from math import pi
r = int(input())
print(2 * int(r) * pi)
| [["-", 3, 4, 0, 657, 31, 657, 31, 652, 63, 22], ["-", 0, 657, 31, 657, 31, 652, 3, 4, 0, 24], ["-", 0, 657, 31, 657, 31, 652, 3, 4, 0, 22], ["-", 0, 657, 31, 657, 31, 652, 3, 4, 0, 25], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612]] | 5 | 26 |
#include <math.h>
#include <stdio.h>
int main(void) {
double R;
scanf("%lf", &R);
printf("%lf\n", R * M_PI);
return 0;
} | #include <math.h>
#include <stdio.h>
int main(void) {
double R;
scanf("%lf", &R);
printf("%lf\n", R * 2 * M_PI);
return 0;
} | [["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48]] | 0 | 39 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a;
cin >> a;
cout << double(a * 3.14159) << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a;
cin >> a;
cout << double(a * 6.283185) << endl;
} | [["-", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13], ["+", 31, 16, 12, 2, 3, 4, 0, 16, 12, 13]] | 1 | 30 |
#include <bits/stdc++.h>
using namespace std;
#define froop1(a, n) for (int i = a; i < n; i++)
#define froop2(a, n) for (int i = a; i > n; i--)
int main() {
double N;
cin >> N;
N * 2 * 3.14159265359;
printf("%.3f\n", N);
return 0;
} | #include <bits/stdc++.h>
using namespace std;
#define froop1(a, n) for (int i = a; i < n; i++)
#define froop2(a, n) for (int i = a; i > n; i--)
int main() {
double N;
cin >> N;
N *= 2 * 3.14159265359;
printf("%.3f\n", N);
return 0;
} | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 48], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 108]] | 1 | 54 |
r = int(input())
print(r * 3.141592) | r = int(input())
print(r * 3.141592 * 2) | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 14 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
const ll INF = 1LL << 60;
int main() {
double r;
cin >> r;
cout << r * 3.1415 << endl;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
const ll INF = 1LL << 60;
int main() {
double r;
cin >> r;
cout << r * 2 * 3.1415 << endl;
} | [["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]] | 1 | 55 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
double a;
cout << a * 2 * M_PI << endl;
return 0;
}
| #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
double a;
cin >> a;
cout << a * 2 * M_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 | 62 |
from math import pi
r = float(input())
print(r*r* pi)
| from math import pi
r = float(input())
print(r*2* pi)
| [["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612]] | 5 | 20 |
import math
a = float(input())
print(a*a*math.pi) | import math
a = float(input())
print(2*a*math.pi) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612]] | 5 | 20 |
#include <iostream>
using namespace std;
int main() {
double pi = 3.1415926535;
double a;
cin >> a;
cout << pi * a * a;
return 0;
} | #include <iostream>
using namespace std;
int main() {
double pi = 3.1415926535;
double a;
cin >> a;
cout << pi * a * 2;
return 0;
} | [["-", 8, 9, 0, 1, 0, 16, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]] | 1 | 35 |
#include <iostream>
const double PI = 3.14159;
using namespace std;
int main(void) {
double r;
cin >> r;
cout << r * PI;
} | #include <iostream>
const double PI = 3.14159;
using namespace std;
int main(void) {
double r;
cin >> r;
cout << 2 * r * PI;
} | [["+", 0, 1, 0, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48]] | 1 | 32 |
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PI 3.14159265359
using namespace std;
int main() {
float r;
double c;
r = 1;
c = (2 * r) * PI;
cout << c;
return 0;
}
| #include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PI 3.14159265359
using namespace std;
int main() {
float r;
double c;
cin >> r;
c = (2 * r) * PI;
cout << c;
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, 11, 17, 32], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 13]] | 1 | 50 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r, a;
cin >> r;
a = 3.14 * r * r;
cout << a;
return 0;
}
| #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double r, a;
cin >> r;
a = 2 * 3.14 * r;
cout << a;
return 0;
}
| [["-", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13]] | 1 | 38 |
#include <iostream>
using namespace std;
int R;
int main() {
cin >> R;
cout << R * 3.14159;
} | #include <iostream>
using namespace std;
int R;
int main() {
cin >> R;
cout << R * 3.14159 * 2;
} | [["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 48], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 12, 13]] | 1 | 25 |
import math
r = int(input())
ans = 2*r*pimath.pi
print(ans) | import math
r = int(input())
ans = 2*r*math.pi
print(ans) | [["-", 0, 1, 0, 662, 12, 657, 12, 319, 500, 22], ["+", 0, 1, 0, 662, 12, 657, 12, 319, 500, 22]] | 5 | 23 |
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define mod 1000000007
using namespace std;
ll binpow(ll x, ll y) /* (x^y)%p in O(log y) */ {
ll res = 1;
while (y > 0) {
if (y & 1)
res = (res * x);
y = y >> 1;
x = (x * x);
}
return res;
}
ull binpowmod(ull x, ull y... | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define mod 1000000007
using namespace std;
ll binpow(ll x, ll y) /* (x^y)%p in O(log y) */ {
ll res = 1;
while (y > 0) {
if (y & 1)
res = (res * x);
y = y >> 1;
x = (x * x);
}
return res;
}
ull binpowmod(ull x, ull y... | [["+", 12, 16, 31, 16, 31, 74, 39, 77, 39, 40], ["+", 0, 16, 12, 16, 31, 16, 31, 74, 0, 25], ["+", 12, 16, 31, 16, 31, 74, 51, 23, 0, 24], ["+", 31, 74, 51, 23, 0, 16, 31, 74, 0, 24], ["+", 51, 23, 0, 16, 31, 74, 39, 77, 39, 40], ["+", 31, 74, 51, 23, 0, 16, 31, 74, 0, 25]] | 1 | 497 |
#include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
ios::sync_with_stdio(false);
cin.tie(0);
const int PI = 3.1415926535897... | #include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
ios::sync_with_stdio(false);
cin.tie(0);
const long double PI = 3.14159... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["+", 0, 14, 8, 9, 0, 43, 39, 86, 39, 40]] | 1 | 73 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#includ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#includ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 323 |
#include <iostream>
#define pi 3.141592653589793238
using namespace std;
int main() {
int r;
double x = 2 * pi * r;
cout << x << endl;
} | #include <iostream>
#define pi 3.141592653589793238
using namespace std;
int main() {
int r;
cin >> r;
double x = 2 * pi * r;
cout << x << endl;
} | [["+", 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 | 33 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll; // int -> ll
int main() {
ll r;
cin >> r;
cout << r * 3.14 << endl;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long int ll; // int -> ll
int main() {
ll r;
cin >> r;
cout << r * 2 * 3.14 << endl;
}
| [["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]] | 1 | 34 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int R;
scanf("%d", &R);
printf("%f", R * acos(-1.0));
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int R;
scanf("%d", &R);
printf("%f", 2 * R * acos(-1.0));
return 0;
} | [["+", 0, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 17, 48]] | 1 | 44 |
#include <math.h>
#include <stdio.h>
int main(void) {
int r;
scanf("%d", &r);
printf("%d", 2.0 * (double)r * M_PI);
return 0;
}
| #include <math.h>
#include <stdio.h>
int main(void) {
int r;
scanf("%d", &r);
printf("%f", 2.0 * (double)r * M_PI);
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 43 |
r=int(input())
print(r*r*3.14) | r=int(input())
print(r*2*3.14) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 612]] | 5 | 16 |
//#define local
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define rep(i, n) \
; \
for (long long i = 0; i < (n); i++)
using ll = long long;
using P = pair<lon... | //#define local
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define rep(i, n) \
; \
for (long long i = 0; i < (n); i++)
using ll = long long;
using P = pair<lon... | [["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]] | 1 | 107 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
double n;
cin >> n;
cout << fixed << setprecision(20) << ((n + 1) * 3.14159265359);
return 0;
}
| #include <iomanip>
#include <iostream>
using namespace std;
int main() {
double n;
cin >> n;
cout << fixed << setprecision(20) << (2 * (n)*3.14159265359);
return 0;
}
| [["+", 0, 16, 12, 23, 0, 16, 31, 16, 31, 13], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 48], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 12, 13]] | 1 | 43 |
print(int(input())*3.1415) | print(int(input())*3.1415*2) | [["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 11 |
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << n * M_PI << endl;
}
| #include <iostream>
#include <math.h>
using namespace std;
int main() {
int n;
cin >> n;
cout << n * 2 * M_PI << endl;
}
| [["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]] | 1 | 29 |
N = int(input())
my_result = N * 3.14159265
print(my_result) | N = int(input())
my_result = N * 2 * 3.14159265
print(my_result) | [["+", 0, 1, 0, 662, 12, 657, 31, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 48]] | 5 | 17 |
import math
r = int(input())
print(math.pi * r * 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], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22]] | 5 | 20 |
#include <bits/stdc++.h>
#include <fstream>
#include <iostream>
#include <stdlib.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
typedef pair<ll, ll> llP;
ll mod(ll a, ll b) {
ll ret = a % b;
if (ret < 0)
ret += b;
return ret;
}
ll modpow(ll a, ll b, ll c) {
ll res = 1;
while (b ... | #include <bits/stdc++.h>
#include <fstream>
#include <iostream>
#include <stdlib.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
typedef pair<ll, ll> llP;
ll mod(ll a, ll b) {
ll ret = a % b;
if (ret < 0)
ret += b;
return ret;
}
ll modpow(ll a, ll b, ll c) {
ll res = 1;
while (b ... | [["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]] | 1 | 152 |
#include <stdio.h>
int main(void) {
double n;
long double l;
scanf("%lf", &n);
l = n * (double)3.1415;
printf("%Lf", l);
return 0;
}
| #include <stdio.h>
int main(void) {
double n;
long double l;
scanf("%lf", &n);
l = 2 * n * (double)3.1415;
printf("%.4Lf", l);
return 0;
}
| [["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 47 |
#include <stdio.h>
int main(void) {
int r;
float length;
scanf("%d", r);
printf("%f", 2 * r * 3.1415);
return 0;
} | #include <stdio.h>
int main(void) {
int r;
float length;
scanf("%d", &r);
printf("%f", 2 * r * 3.1415);
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 40 |
#include <math.h>
#include <stdio.h>
void main() {
int r;
float area;
scanf("%d", &r);
area = M_PI * r * r;
printf("%.3f", area);
} | #include <math.h>
#include <stdio.h>
void main() {
int r;
float area;
scanf("%d", &r);
area = M_PI * r * 2;
printf("%.3f", area);
} | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 0 | 43 |
#include <stdio.h>
int main(void) {
int R;
double X;
int a = 3.14;
scanf("%d", &R);
X = (R * 2) * a;
printf("%d", X);
return 0;
} | #include <stdio.h>
int main(void) {
int R;
double X;
double a = 3.14;
scanf("%d", &R);
X = (R * 2) * a;
printf("%.2f", X);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 52 |
#include <stdio.h>
int main(void) {
int a;
double b;
scanf("%d", &a);
b = a * 2 * 3.14;
printf("%d", b);
return 0;
} | #include <stdio.h>
int main(void) {
int a;
double b;
scanf("%d", &a);
b = a * 2 * 3.14;
printf("%f", b);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 45 |
#include <stdio.h>
int main() {
double syu;
int n;
scanf("%d", &n);
syu = n * 3.1415926535;
printf("%f", syu);
return 0;
} | #include <stdio.h>
int main() {
double syu;
int n;
scanf("%d", &n);
n = n * 2;
syu = n * 3.1415926535;
printf("%f", syu);
return 0;
} | [["+", 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 | 42 |
#include <stdio.h>
int main(void) {
int r;
scanf("%d", &r);
printf("%d", 2 * r * 3.14);
return 0;
} | #include <stdio.h>
int main(void) {
int r;
scanf("%d", &r);
printf("%f", 2 * r * 3.14);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 38 |
#include <stdio.h>
int main(void) {
double r;
scanf("%f", &r);
r = 2 * r * 3.14;
printf("%lf", r);
return 0;
} | #include <stdio.h>
int main(void) {
double r;
scanf("%lf", &r);
r = 2 * r * 3.14;
printf("%lf", 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 <stdio.h>
int main() {
int R;
double pi = 3.1416, ans;
scanf("%d", &R);
ans = 2 * pi * R;
printf("%d", ans);
return 0;
}
| #include <stdio.h>
int main() {
int R;
double pi = 3.1416, ans;
scanf("%d", &R);
ans = 2 * pi * R;
printf("%lf", ans);
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 48 |
#include <stdio.h>
int main() {
int R, circumference;
scanf("%d", &R);
circumference = 2 * 3.1416 * R;
printf("%d", circumference);
return 0;
} | #include <stdio.h>
int main()
{
int R;
double circumference;
scanf("%d", &R);
circumference = 2 * 3.1416 * R;
printf("%lf", circumference);
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], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 43 |
#include <math.h>
#include <stdio.h>
int main() {
double p = acos(-1);
int r;
scanf("%d", &r);
printf("%lf", r * p);
return 0;
} | #include <math.h>
#include <stdio.h>
int main() {
double p = acos(-1);
int r;
scanf("%d", &r);
printf("%lf", r * p * 2);
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 0 | 45 |
#include <cmath>
#include <cstdio>
int main() {
int r;
scanf("%d", &r);
double a = (double)r * (double)r * M_PI;
printf("%lf\n", a);
return 0;
}
| #include <cmath>
#include <cstdio>
int main() {
int r;
scanf("%d", &r);
double a = (double)r * 2.0 * M_PI;
printf("%lf\n", a);
return 0;
} | [["-", 49, 50, 51, 16, 31, 16, 12, 74, 0, 24], ["-", 51, 16, 31, 16, 12, 74, 39, 77, 39, 40], ["-", 49, 50, 51, 16, 31, 16, 12, 74, 0, 25], ["-", 49, 50, 51, 16, 31, 16, 12, 74, 51, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 13]] | 1 | 51 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int R;
cin >> R;
float p = 3.14159265;
float Ans;
Ans = R * p;
cout << Ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int R;
cin >> R;
float p = 3.14159265;
float Ans;
Ans = 2 * R * p;
cout << Ans << endl;
}
| [["+", 0, 1, 0, 11, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 17, 48]] | 1 | 39 |
#include <stdio.h>
int main() {
double r;
scanf("%d", &r);
printf("%.20lf", r * 2 * 3.14159265358979323846);
} | #include <stdio.h>
int main() {
int r;
scanf("%d", &r);
printf("%.20lf", r * 2 * 3.14159265358979323846);
}
| [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40]] | 0 | 34 |
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int r;
cin >> r;
cout << setprecision(20) << 2 * M_PI * pow(r, 2) << endl;
return 0;
} | #include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int r;
cin >> r;
cout << setprecision(20) << 2 * M_PI * r << endl;
return 0;
} | [["-", 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 | 60 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double r = scan.nextInt();
System.out.println(r * r * 3.14);
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
double r = scan.nextInt();
System.out.println(r * 2 * 3.14);
}
}
| [["-", 0, 492, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 12, 499]] | 3 | 57 |
a = int(input())
print(2*a*pi) | a = int(input())
print(2*a*3.14)
| [["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 531]] | 5 | 16 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println(sc.nextDouble() * 2D + Math.PI);
}
}
| import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println(sc.nextDouble() * 2D * Math.PI);
}
}
| [["-", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 48]] | 3 | 54 |
import math
R = int(input())
print(math.pi * R**2) | import math
R = int(input())
print(math.pi * R*2) | [["-", 0, 652, 3, 4, 0, 657, 12, 657, 17, 578], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48]] | 5 | 20 |
#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 << double(R * 3.1415) << 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 << double(2 * R * 3.1415) << endl;
return 0;
} | [["+", 12, 2, 3, 4, 0, 16, 31, 16, 31, 13], ["+", 12, 2, 3, 4, 0, 16, 31, 16, 17, 48]] | 1 | 41 |
#include <bits/stdc++.h>
#define f(i, n) for (int i = 0; i < n; i++)
#define P pair<int, int>
#define F first
#define S second
#define int long long
#define mod 1000000007
#define mmod 998244353
#define all(v) v.begin(), v.end()
#define INF LLONG_MAX / 3
#define PI 3.14159265359
using namespace std;
int mypow(int fa, i... | #include <bits/stdc++.h>
#define f(i, n) for (int i = 0; i < n; i++)
#define P pair<int, int>
#define F first
#define S second
#define int long long
#define mod 1000000007
#define mmod 998244353
#define all(v) v.begin(), v.end()
#define INF LLONG_MAX / 3
#define PI 3.14159265359
using namespace std;
int mypow(int fa, i... | [["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 48]] | 1 | 193 |
import math
pi=math.pi()
r=int(input())
len=2*pi*r
print(len)
| import math
pi=math.pi
r=int(input())
len=2*pi*r
print(len) | [["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 28 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <regex>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
double r;
std::cin >> r;
std::cout << r * M_PI;
return EXIT_SUCCESS;
} | #include <algorithm>
#include <cmath>
#include <iostream>
#include <regex>
#include <set>
#include <string>
#include <vector>
using namespace std;
int main() {
double r;
std::cin >> r;
std::cout << 2.0 * r * M_PI;
return EXIT_SUCCESS;
} | [["+", 0, 1, 0, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 1, 0, 16, 12, 16, 31, 16, 17, 48]] | 1 | 44 |
import math
n =int(input())
print(2*n*math.pi()) | import math
n =int(input())
print(2*n*math.pi) | [["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 24], ["-", 3, 4, 0, 657, 12, 652, 3, 4, 0, 25]] | 5 | 22 |
from math import pi
R = int(input())
print(R ** 2 * pi) | from math import pi
R = int(input())
print(2 * R * pi) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 578], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 48], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 12, 22]] | 5 | 20 |
a = int(input())
print(3.14159265 * a *a)
| a = int(input())
print(3.14159265 * a * 2)
| [["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 16 |
#include <iostream>
using namespace std;
int main() {
int R;
cin >> R;
cout << R * 3.14 << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int R;
cin >> R;
cout << R * 2 * 3.14 << endl;
return 0;
}
| [["+", 0, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 48]] | 1 | 30 |
R = int(input())
print (2*(3.141592653589793238)*R*R) | R = int(input())
print (2*(3.141592653589793238)*R) | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 48], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 12, 22]] | 5 | 20 |
<?php
$r = rtrim(fgets(STDIN));
echo $r * 2 * 3;
| <?php
$r = rtrim(fgets(STDIN));
echo $r * 2 * 3.14;
| [["-", 36, 36, 0, 493, 0, 608, 0, 16, 12, 612], ["+", 36, 36, 0, 493, 0, 608, 0, 16, 12, 531]] | 6 | 20 |
<?php
fscanf(STDIN , "&d" , $R);
echo $R * 2 * pi(); | <?php
fscanf(STDIN , "%d" , $R);
echo $R * 2 * pi(); | [["-", 0, 613, 3, 3, 0, 28, 0, 609, 0, 610], ["+", 0, 613, 3, 3, 0, 28, 0, 609, 0, 610]] | 6 | 23 |
from math import pi
r=int(input())
print(pi*r**2) | from math import pi
r=int(input())
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 | 20 |
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.14);
}
} | 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 * 2 * 3.14);
}
} | [["+", 0, 492, 3, 4, 0, 16, 31, 16, 12, 499], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 48]] | 3 | 55 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double pi = 3.1415926535;
int R;
cin >> R;
cout << R * pi << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
double pi = 3.1415926535;
int R;
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 | 35 |
def actual(r):
return 2 * r * math.pi
r = int(input())
print(actual(r)) | import math
def actual(r):
return 2 * r * math.pi
r = int(input())
print(actual(r)) | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 29 |
s = int(input())
import math
print(s*s*math.pi) | s = int(input())
import math
print(2*s*math.pi) | [["-", 0, 652, 3, 4, 0, 657, 31, 657, 31, 22], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 31, 612]] | 5 | 20 |
import java.util.Scanner;
public class Main {
public static void main() {
Scanner sc = new Scanner(System.in);
int R = sc.nextInt();
double circumference;
double PI = 3.14159265;
circumference = 2 * PI * R;
System.out.println(circumference);
}
} | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int R = sc.nextInt();
double circumference;
double PI = 3.14159265;
circumference = 2 * PI * R;
System.out.println(circumference);
}
} | [["-", 36, 36, 0, 493, 0, 235, 0, 494, 0, 259], ["+", 0, 195, 54, 495, 0, 496, 39, 224, 468, 78], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 70], ["+", 54, 495, 0, 496, 39, 224, 497, 497, 0, 73], ["+", 8, 498, 0, 195, 54, 495, 0, 496, 141, 22]] | 3 | 65 |
pi = 3.141592
r = gets.chomp.to_i
puts(pi*r) | pi = 3.141592
r = gets.chomp.to_i
puts(pi * 2 * r) | [["+", 0, 652, 3, 4, 0, 738, 31, 738, 12, 612], ["+", 0, 493, 0, 652, 3, 4, 0, 738, 17, 48]] | 4 | 16 |
#include <iostream>
#include <math.h>
int main() {
int r;
std::cin >> r;
float area;
area = 3.14 * r * r;
std::cout << area;
return 0;
}
| #include <iostream>
#include <math.h>
int main() {
int r;
std::cin >> r;
float area;
area = 3.14 * 2 * r;
std::cout << area;
return 0;
}
| [["-", 0, 1, 0, 11, 12, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 16, 12, 13]] | 1 | 39 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
double r;
cin >> r;
cout << r * 3.141 << endl;
// cout << fixed << setprecision(10);
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
double r;
cin >> r;
cout << 2 * r * 3.141 << endl;
// cout << fixed << setprecision(10);
}
| [["+", 0, 16, 31, 16, 12, 16, 31, 16, 31, 13], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 48]] | 1 | 33 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.