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 <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define M_PI 3.14159265358979... | #include <algorithm>
#include <bitset>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define M_PI 3.14159265358979... | [["-", 3, 4, 0, 83, 0, 91, 28, 69, 28, 22], ["+", 3, 4, 0, 83, 0, 91, 28, 69, 28, 22], ["-", 0, 11, 31, 69, 341, 342, 0, 69, 28, 22], ["+", 0, 11, 31, 69, 341, 342, 0, 69, 28, 22]] | 1 | 4,388 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 200005;
int st[4 * N];
void upd(int p, int L, int R, int i, int val) {
if (i > R or i < L)
return;
if (L == R) {
st[p] = val;
return;
}
int mid = (L + R) / 2;
upd(2 * p, L, mid, i, val);
upd(2 * p + 1, mid + 1,... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int N = 200005;
int st[4 * N];
void upd(int p, int L, int R, int i, int val) {
if (i > R or i < L)
return;
if (L == R) {
st[p] = val;
return;
}
int mid = (L + R) / 2;
upd(2 * p, L, mid, i, val);
upd(2 * p + 1, mid + 1,... | [["+", 0, 43, 49, 50, 51, 4, 0, 16, 17, 72], ["+", 0, 43, 49, 50, 51, 4, 0, 16, 12, 13]] | 1 | 595 |
#include <bits/stdc++.h>
using namespace std;
#define TRACE(x) x
#define WATCH(x) TRACE(cout << #x " = " << x << endl)
#define PRINT(x) TRACE(printf(x))
#define WATCHR(a, b) \
TRACE(for (auto c = a; c != b;) cout << *(c++) << " "; cout << endl)
#define WATCHC(... | #include <bits/stdc++.h>
using namespace std;
#define TRACE(x) x
#define WATCH(x) TRACE(cout << #x " = " << x << endl)
#define PRINT(x) TRACE(printf(x))
#define WATCHR(a, b) \
TRACE(for (auto c = a; c != b;) cout << *(c++) << " "; cout << endl)
#define WATCHC(... | [["-", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 75, 76, 0, 9, 0, 43, 39, 40], ["+", 75, 76, 0, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 43, 49, 50, 51, 69, 341, 342, 0, 22], ["+", 0, 43, 49, 50, 51, 69, 341, 342, 0, 22], ["-", 0, 1, 0, 11, 31, 69, 341, 342, 0, 22], ["+", 0, 1, 0, 11, 31, 69, 341, 342, 0, 22]] | 1 | 614 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ii = pair<int, int>;
using i3 = pair<int, ii>;
using li = pair<ll, int>;
using lii = pair<ll, ii>;
using pll = pair<ll, ll>;
using vi = vector<int>;
using vl = vector<ll>;
using vii = vector<ii>;
using vli = vector<li>;
using vpll = vector<pll... |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ii = pair<int, int>;
using i3 = pair<int, ii>;
using li = pair<ll, int>;
using lii = pair<ll, ii>;
using pll = pair<ll, ll>;
using vi = vector<int>;
using vl = vector<ll>;
using vii = vector<ii>;
using vli = vector<li>;
using vpll = vector<pll... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 69, 28, 22], ["+", 0, 1, 0, 11, 12, 69, 341, 342, 0, 70], ["+", 0, 1, 0, 11, 12, 69, 341, 342, 0, 13], ["+", 0, 1, 0, 11, 12, 69, 341, 342, 0, 73]] | 1 | 763 |
/*
confirm 0LL and 1LL
confirm cornercases such as 0
confirm times of cin < 10^6
*/
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<ll, ll>;
using Pld = pair<ld, ld>;
using Vec = vector<ll>;
using VecP = vector<P>;
using VecB = vector<bool>;
using VecC = vector... | /*
confirm 0LL and 1LL
confirm cornercases such as 0
confirm times of cin < 10^6
*/
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<ll, ll>;
using Pld = pair<ld, ld>;
using Vec = vector<ll>;
using VecP = vector<P>;
using VecB = vector<bool>;
using VecC = vector... | [["-", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22]] | 1 | 817 |
#include <bits/stdc++.h>
const int INF = 1e9;
const int MOD = 1e9 + 7;
using namespace std;
typedef long long ll;
#define REP(i, n) for (int i = 0; i < int(n); i++)
#define REPD(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (int i = a; i < int(b); i++)
#define FORD(i, a, b) for (int i = b - 1; i >... | #include <bits/stdc++.h>
const int INF = 1e9;
const int MOD = 1e9 + 7;
using namespace std;
typedef long long ll;
#define REP(i, n) for (int i = 0; i < int(n); i++)
#define REPD(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (int i = a; i < int(b); i++)
#define FORD(i, a, b) for (int i = b - 1; i >... | [["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 411 |
#include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;
#define ll long long
int n, MAX, sz;
int segmax[800005];
void init() {
sz = 1;
while (sz < MAX)
sz *= 2;
}
int getMax(int i) { return segmax[i += sz]; }
void updateMax(int i, int v) {
i += sz;
segmax[i] = v;
while (i ... | #include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;
#define ll long long
int n, MAX, sz;
int segmax[800005];
void init() {
sz = 1;
while (sz < MAX)
sz *= 2;
}
int getMax(int i) { return segmax[i += sz]; }
void updateMax(int i, int v) {
i += sz;
segmax[i] = v;
while (i ... | [["-", 49, 50, 51, 2, 3, 4, 0, 16, 17, 72], ["-", 49, 50, 51, 2, 3, 4, 0, 16, 12, 13]] | 1 | 648 |
#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
using ull = uint64_t;
const ll INF = 9e18;
const int inf = 2e9;
void print() { cout << endl; }
template <typename Head, typename... Tail> void print(Head head, Tail... tail) {
int size = sizeof...(Tail);
cout << head;
if (size > 0) {
cout << "... | #include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
using ull = uint64_t;
const ll INF = 9e18;
const int inf = 2e9;
void print() { cout << endl; }
template <typename Head, typename... Tail> void print(Head head, Tail... tail) {
int size = sizeof...(Tail);
cout << head;
if (size > 0) {
cout << "... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["-", 51, 16, 12, 23, 0, 16, 12, 16, 17, 47], ["+", 51, 16, 12, 23, 0, 16, 12, 16, 17, 20]] | 1 | 897 |
#include <bits/stdc++.h>
using namespace std;
long long ara[200003], val[200003], len = 1, mx = 1, vis[200003];
vector<long long> adj[200003];
long long binsrc(long long zz, long long nm) {
long long lo, hi, mid;
lo = 1;
hi = zz;
while (lo < hi) {
mid = (lo + hi) / 2LL;
if (ara[mid] > nm) {
... | #include <bits/stdc++.h>
using namespace std;
long long ara[200003], val[200003], len = 1, mx = 1, vis[200003];
vector<long long> adj[200003];
long long binsrc(long long zz, long long nm) {
long long lo, hi, mid;
lo = 1;
hi = zz;
while (lo < hi) {
mid = (lo + hi) / 2LL;
if (ara[mid] >= nm) {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 473 |
N = gets.to_i
A = gets.split.map(&:to_i)
E = Hash.new { |h, k| h[k] = [] }
(N - 1).times do
u, v = gets.split.map(&:to_i)
E[u] << v
E[v] << u
end
ANS = Array.new(N + 1, -Float::INFINITY)
def dfs(v, nums, visited)
n = nums.size
a = A[v - 1]
visited[v] = true
before_v = -1
idx = nums.bsearch_index { ... | N = gets.to_i
A = gets.split.map(&:to_i)
E = Hash.new { |h, k| h[k] = [] }
(N - 1).times do
u, v = gets.split.map(&:to_i)
E[u] << v
E[v] << u
end
ANS = Array.new(N + 1, -Float::INFINITY)
def dfs(v, nums, visited)
n = nums.size
a = A[v - 1]
visited[v] = true
before_v = -1
idx = nums.bsearch_index { ... | [["-", 0, 735, 8, 736, 0, 662, 12, 738, 31, 22], ["-", 0, 735, 8, 736, 0, 662, 12, 738, 17, 72], ["-", 0, 735, 8, 736, 0, 662, 12, 738, 12, 612], ["+", 0, 735, 8, 736, 0, 662, 12, 652, 486, 22], ["+", 0, 735, 8, 736, 0, 662, 12, 652, 17, 131], ["+", 0, 735, 8, 736, 0, 662, 12, 652, 735, 22]] | 4 | 219 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
using namespace __gnu_pbds;
using namespace std;
typedef tree<pair<int, int>, null_type, less_equal<pair<int, int>>, rb_tree_tag,
tree_order_statistics_node_update>
ordered_set;
... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
using namespace __gnu_pbds;
using namespace std;
typedef tree<pair<int, int>, null_type, less_equal<pair<int, int>>, rb_tree_tag,
tree_order_statistics_node_update>
ordered_set;
... | [["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22]] | 1 | 485 |
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
#define r... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
#define r... | [["-", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22]] | 1 | 400 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
#define rep(i, n) for (int i... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
#define rep(i, n) for (int i... | [["-", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22]] | 1 | 416 |
#include <bits/stdc++.h>
using namespace std;
template <typename T> void print(T t) { cout << t << endl; }
template <typename T, typename... Args> void print(T t, Args... args) {
cout << t << " ";
print(args...);
}
#define IOS \
ios::sync_with_s... | #include <bits/stdc++.h>
using namespace std;
template <typename T> void print(T t) { cout << t << endl; }
template <typename T, typename... Args> void print(T t, Args... args) {
cout << t << " ";
print(args...);
}
#define IOS \
ios::sync_with_s... | [["-", 8, 9, 0, 1, 0, 11, 12, 69, 28, 22], ["-", 0, 1, 0, 11, 12, 69, 341, 342, 0, 70], ["-", 0, 1, 0, 11, 12, 69, 341, 342, 0, 22], ["-", 0, 1, 0, 11, 12, 69, 341, 342, 0, 73], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["-", 8, 9, 0, 1... | 1 | 660 |
#include "bits/stdc++.h"
using namespace std;
#define sim template <class c
#define ris return *this
#define dor > debug &operator<<
#define eni(x) \
sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( \
c i) {
sim > ... | #include "bits/stdc++.h"
using namespace std;
#define sim template <class c
#define ris return *this
#define dor > debug &operator<<
#define eni(x) \
sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator<<( \
c i) {
sim > ... | [["-", 0, 43, 49, 50, 51, 2, 63, 118, 119, 120], ["+", 0, 43, 49, 50, 51, 2, 63, 118, 119, 120], ["+", 0, 57, 15, 339, 51, 16, 31, 27, 17, 29]] | 1 | 778 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pi;
typedef complex<double> cp;
#define debug(a) cout << #a << ":" << a << endl;
#define fr freopen("in.txt", "r", stdin);
#define for0(i, a, b) for (ll i = a; (i < b); i++)
#define for1(i, a, b) for (ll i = a; (i <= b); i++)
#defi... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pi;
typedef complex<double> cp;
#define debug(a) cout << #a << ":" << a << endl;
#define fr freopen("in.txt", "r", stdin);
#define for0(i, a, b) for (ll i = a; (i < b); i++)
#define for1(i, a, b) for (ll i = a; (i <= b); i++)
#defi... | [["-", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22], ["+", 0, 1, 0, 11, 12, 16, 31, 2, 63, 22]] | 1 | 490 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define repn(i, n) for (int i = 1; i <= n; i++)
#define LL long long
#define pii pair<int, int>
#define fi first
#define se second
#define pb push_back
#define mpr make_pair
using namespace std;
const LL MOD = 1e9 + 7;
int n, a[200010], x, y, n2... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define repn(i, n) for (int i = 1; i <= n; i++)
#define LL long long
#define pii pair<int, int>
#define fi first
#define se second
#define pb push_back
#define mpr make_pair
using namespace std;
const LL MOD = 1e9 + 7;
int n, a[200010], x, y, n2... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 693 |
#include <bits/stdc++.h>
#include <string.h>
#define ll long long
#define pf printf
#define sf scanf
#define ff first
#define ss second
#define clr clear()
#define sz size()
#define pb push_back
#define mk make_pair
#define pi acos(-1)
#define inf 20000000000000000
#define mod 998244353
#define ull unsigned long long i... | #include <bits/stdc++.h>
#include <string.h>
#define ll long long
#define pf printf
#define sf scanf
#define ff first
#define ss second
#define clr clear()
#define sz size()
#define pb push_back
#define mk make_pair
#define pi acos(-1)
#define inf 20000000000000000
#define mod 998244353
#define ull unsigned long long i... | [["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 69, 28, 22], ["+", 0, 1, 0, 11, 12, 69, 341, 342, 0, 70], ["+", 0, 1, 0, 11, 12, 69, 341, 342, 0, 13], ["+", 0, 1, 0, 11, 12, 69, 341, 342, 0, 73]] | 1 | 834 |
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <tuple>
#include <unordered_map>
#include <vector>
using namespace std;
#define sim template <class c
#define ris... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string.h>
#include <string>
#include <tuple>
#include <unordered_map>
#include <vector>
using namespace std;
#define sim template <class c
#define ris... | [["-", 12, 16, 31, 2, 3, 4, 0, 69, 28, 22], ["-", 31, 2, 3, 4, 0, 69, 341, 342, 0, 70], ["-", 31, 2, 3, 4, 0, 69, 341, 342, 0, 22], ["-", 31, 2, 3, 4, 0, 69, 341, 342, 0, 73], ["+", 0, 11, 12, 16, 31, 2, 3, 4, 0, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 72], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 12, 13]] | 1 | 955 |
import java.util.*;
public class Main {
static ArrayList<ArrayList<Integer>> graph = new ArrayList<>();
;
static int[] values;
static int[] longest;
static int[] ans;
static boolean[] used;
static int n;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
n = sc.nextIn... | import java.util.*;
public class Main {
static ArrayList<ArrayList<Integer>> graph = new ArrayList<>();
;
static int[] values;
static int[] longest;
static int[] ans;
static boolean[] used;
static int n;
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
n = sc.nextIn... | [["-", 8, 196, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 196, 0, 1, 0, 11, 12, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 1, 0, 11, 12, 22]] | 3 | 465 |
#from collections import deque,defaultdict
printn = lambda x: print(x,end='')
inn = lambda : int(input())
inl = lambda: list(map(int, input().split()))
inm = lambda: map(int, input().split())
ins = lambda : input().strip()
DBG = True # and False
BIG = 10**12
R = 10**9 + 7
#R = 998244353
def ddprint(x):
if D... | #from collections import deque,defaultdict
printn = lambda x: print(x,end='')
inn = lambda : int(input())
inl = lambda: list(map(int, input().split()))
inm = lambda: map(int, input().split())
ins = lambda : input().strip()
DBG = True # and False
BIG = 10**12
R = 10**9 + 7
#R = 998244353
def ddprint(x):
if D... | [["+", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["+", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22]] | 5 | 368 |
#include <bits/stdc++.h>
using namespace std;
const int N = 500005, INF = 0x3f3f3f3f;
int n, a[N], dp[N], len, ans[N];
int v[N], nxt[N], head[N];
void dfs(int x, int fa) {
// cout<<x<<' '<<fa<<endl;
int L = 1, R = n, id, ls;
while (L <= R) {
int mid = (L + R) >> 1;
if (dp[mid] <= a[x])
L = mid + 1... | #include <bits/stdc++.h>
using namespace std;
const int N = 500005, INF = 0x3f3f3f3f;
int n, a[N], dp[N], len, ans[N];
int v[N], nxt[N], head[N];
void dfs(int x, int fa) {
// cout<<x<<' '<<fa<<endl;
int L = 1, R = n, id, ls;
while (L <= R) {
int mid = (L + R) >> 1;
if (dp[mid] < a[x])
L = mid + 1;... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 398 |
#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 2;
// compress A[i] first
// so that we can use LIS via Segment tree
long long s;
long long e;
long long val;
long long segtree[N << 2];
void update(int P, int L, int R) {
if (L > e || R < s) {
return;
} else if (s <= L && R <= e) {
segt... | #include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 2;
// compress A[i] first
// so that we can use LIS via Segment tree
long long s;
long long e;
long long val;
long long segtree[N << 2];
void update(int P, int L, int R) {
if (L > e || R < s) {
return;
} else if (s <= L && R <= e) {
segt... | [["+", 0, 1, 0, 34, 12, 11, 12, 16, 17, 33], ["+", 0, 1, 0, 34, 12, 11, 12, 16, 12, 13]] | 1 | 747 |
//#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ch = char;
typedef pair<ll, ll> P;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<P> vP;
typedef vector<ch> vc;
typedef vector<vc> vvc;
#define FOR(i, a, b) for (ll i = a; i < b; i++... | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ch = char;
typedef pair<ll, ll> P;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<P> vP;
typedef vector<ch> vc;
typedef vector<vc> vvc;
#define FOR(i, a, b) for (ll i = a; i < b; i++... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 552 |
import bisect as bs
import sys
sys.setrecursionlimit(2*10**5+1)
def dfs(i, nbr, A, prv, done, history, B, ans):#深さ優先探索(再帰)
j = bs.bisect_right(B,A[i]) #Bへの挿入予定位置
#print(i,A[i],j,B)
#A[i]をhistoryの適当な位置に挿入
if j < len(B):
history[i] = (B[j], A[i], j) # 更新前の値、更新後の値、更新位置
B[j] = A[i]
else:
histo... | import bisect as bs
import sys
sys.setrecursionlimit(2*10**5+1)
def dfs(i, nbr, A, prv, done, history, B, ans):#深さ優先探索(再帰)
j = bs.bisect_left(B,A[i]) #Bへの挿入予定位置
#print(i,A[i],j,B)
#A[i]をhistoryの適当な位置に挿入
if j < len(B):
history[i] = (B[j], A[i], j) # 更新前の値、更新後の値、更新位置
B[j] = A[i]
else:
histor... | [["-", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22]] | 5 | 393 |
import sys
import math
import heapq
import bisect
sys.setrecursionlimit(10**7)
INTMAX = 9223372036854775807
INTMIN = -9223372036854775808
DVSR = 1000000007
def POW(x, y): return pow(x, y, DVSR)
def INV(x, m=DVSR): return pow(x, m - 2, m)
def DIV(x, y, m=DVSR): return (x * INV(y, m)) % m
def LI(): return map(int, sys.st... | import sys
import math
import heapq
import bisect
sys.setrecursionlimit(10**7)
INTMAX = 9223372036854775807
INTMIN = -9223372036854775808
DVSR = 1000000007
def POW(x, y): return pow(x, y, DVSR)
def INV(x, m=DVSR): return pow(x, m - 2, m)
def DIV(x, y, m=DVSR): return (x * INV(y, m)) % m
def LI(): return map(int, sys.st... | [["+", 0, 656, 0, 1, 0, 662, 12, 206, 51, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 70], ["+", 0, 656, 0, 1, 0, 662, 12, 206, 0, 73]] | 5 | 428 |
/*
URL:
https://atcoder.jp/contests/abc165/tasks/abc165_f
*/
package main
import (
"bufio"
"errors"
"fmt"
"io"
"math"
"os"
"strconv"
)
/********** FAU standard libraries **********/
//fmt.Sprintf("%b\n", 255) // binary expression
/********** I/O usage **********/
//str := ReadString()
//i := ReadInt()
//X... | /*
URL:
https://atcoder.jp/contests/abc165/tasks/abc165_f
*/
package main
import (
"bufio"
"errors"
"fmt"
"io"
"math"
"os"
"strconv"
)
/********** FAU standard libraries **********/
//fmt.Sprintf("%b\n", 255) // binary expression
/********** I/O usage **********/
//str := ReadString()
//i := ReadInt()
//X... | [["-", 8, 196, 0, 37, 0, 432, 0, 16, 17, 18], ["+", 8, 196, 0, 37, 0, 432, 0, 16, 17, 19]] | 7 | 1,651 |
#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 9;
const int MAX = 2e5 + 3;
void dfs(int node, int parent, vector<int> &a, vector<vector<int>> &to,
vector<int> &dp, vector<int> &lenLIS) {
int ok = MAX, ng = -1;
while (ok - ng > 1) {
int mid = (ok + ng) >> 1;
(dp[mid] > a[node... | #include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 9;
const int MAX = 2e5 + 3;
void dfs(int node, int parent, vector<int> &a, vector<vector<int>> &to,
vector<int> &dp, vector<int> &lenLIS) {
int ok = MAX, ng = -1;
while (ok - ng > 1) {
int mid = (ok + ng) >> 1;
(dp[mid] >= a[nod... | [["-", 0, 11, 31, 23, 0, 41, 15, 16, 17, 47], ["+", 0, 11, 31, 23, 0, 41, 15, 16, 17, 20]] | 1 | 416 |
#include <bits/stdc++.h>
using namespace std;
const int inf = 1000000037;
const int maxn = 200005;
int n, from, to;
int a[maxn], lis[maxn], ans[maxn];
vector<int> g[maxn];
void dfs(int u, int p = -1) {
int j = upper_bound(lis, lis + n, a[u]) - lis;
int w = lis[j];
lis[j] = a[u], ans[u] = int(lower_bound(lis, l... | #include <bits/stdc++.h>
using namespace std;
const int inf = 1000000037;
const int maxn = 200005;
int n, from, to;
int a[maxn], lis[maxn], ans[maxn];
vector<int> g[maxn];
void dfs(int u, int p = -1) {
int j = lower_bound(lis, lis + n, a[u]) - lis;
int w = lis[j];
lis[j] = a[u], ans[u] = int(lower_bound(lis, l... | [["-", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22]] | 1 | 312 |
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(a) (a).begin(), (a).end()
#define sz(a) (int)(a).size()
#define x first
#define y second
const int inf = 2e9 + 100;
const int maxn = 2e5 + 100;
int a[maxn], ans[maxn], d[... | #pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(a) (a).begin(), (a).end()
#define sz(a) (int)(a).size()
#define x first
#define y second
const int inf = 2e9 + 100;
const int maxn = 2e5 + 100;
int a[maxn], ans[maxn], d[... | [["-", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22]] | 1 | 391 |
#include <bits/stdc++.h>
using namespace std;
const int inf = 2e9;
int n;
int a[200000];
vector<int> g[200000];
int dp[200001];
int ans[200001];
void rec(int from, int prev, int curr) {
auto it = upper_bound(dp, dp + n + 1, a[from]);
int saved = *it;
*it = a[from];
int nxt = max<int>(curr, it - dp + 1);
ans... | #include <bits/stdc++.h>
using namespace std;
const int inf = 2e9;
int n;
int a[200000];
vector<int> g[200000];
int dp[200001];
int ans[200000];
void rec(int from, int prev, int curr) {
auto it = lower_bound(dp, dp + n + 1, a[from]);
int saved = *it;
*it = a[from];
int nxt = max<int>(curr, it - dp + 1);
ans... | [["-", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]] | 1 | 278 |
#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... | [["-", 0, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 0, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 2, 63, 118, 28, 22], ["+", 0, 1, 0, 11, 12, 2, 63, 118, 17, 131], ["+", 0, 1, 0, 11, 12, 2, 63, 118, 119, 120], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 11,... | 1 | 804 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; ++i) {
cin >> a[i];
}
vector<vector<int>> g(n);
for (int i = 0; i < n - 1; ++i) {
int u, v;
cin >> u >> v;
--u;
--v;
g[u].p... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; ++i) {
cin >> a[i];
}
vector<vector<int>> g(n);
for (int i = 0; i < n - 1; ++i) {
int u, v;
cin >> u >> v;
--u;
--v;
g[u].p... | [["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]] | 1 | 352 |
#pragma region kyopro_template
#include <bits/stdc++.h>
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define each(x, v) for (auto &x : v)
#define all(v) (v).begin(), (v).end()
#define sz(v) ((int)(v).size())
#define mem(a, val) memset(a, val, sizeof(a))
#define ini(...) ... | #pragma region kyopro_template
#include <bits/stdc++.h>
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define each(x, v) for (auto &x : v)
#define all(v) (v).begin(), (v).end()
#define sz(v) ((int)(v).size())
#define mem(a, val) memset(a, val, sizeof(a))
#define ini(...) ... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13], ["+", 8, 9, 0, 1, 0, 11, 12, 2, 63, 22], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 24], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 22], ["+", 0, 1, 0, 11, 12, 2, 3, 4, 0, 21], ["+", 0, 1, 0, 11, 12, 2, 3, 4, ... | 1 | 2,059 |
//#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
using namespace std;
using ll = int64_t;
using ld = long double;
using P = pair<int, int>;
using vs = vector<string>;
using vi = vector<int>;
using vvi =... | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
using namespace std;
using ll = int64_t;
using ld = long double;
using P = pair<int, int>;
using vs = vector<string>;
using vi = vector<int>;
using vvi =... | [["-", 3, 4, 0, 2, 3, 4, 0, 69, 28, 22], ["-", 0, 2, 3, 4, 0, 69, 341, 342, 0, 70], ["-", 0, 2, 3, 4, 0, 69, 341, 342, 0, 22], ["-", 0, 2, 3, 4, 0, 69, 341, 342, 0, 73], ["+", 12, 2, 3, 4, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 360 |
package main
import (
"bufio"
"fmt"
"math"
"os"
"sort"
"strconv"
)
const maxN = 2e6 + 10
const inf = 1e11
var (
a = make([]int, maxN)
ans = make([]int, maxN)
dp = make([]int, maxN)
to = make([][]int, maxN)
)
var (
scanner = bufio.NewScanner(os.Stdin)
w = bufio.NewWriter(os.Stdout)
)
func read... | package main
import (
"bufio"
"fmt"
"math"
"os"
"sort"
"strconv"
)
const maxN = 2e6 + 10
const inf = 1e11
var (
a = make([]int, maxN)
ans = make([]int, maxN)
dp = make([]int, maxN)
to = make([][]int, maxN)
)
var (
scanner = bufio.NewScanner(os.Stdin)
w = bufio.NewWriter(os.Stdout)
)
func read... | [["-", 8, 196, 0, 37, 0, 432, 0, 16, 17, 47], ["+", 8, 196, 0, 37, 0, 432, 0, 16, 17, 20]] | 7 | 505 |
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque
sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7
DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(... | import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque
sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7
DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(... | [["-", 8, 196, 0, 1, 0, 662, 12, 206, 206, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 206, 206, 22]] | 5 | 433 |
from bisect import bisect_left, bisect_right
import sys
def main():
input = sys.stdin.readline
N=int(input())
*A,=map(int, input().split())
G=[[] for _ in range(N)]
for _ in range(N-1):
u,v=map(int, input().split())
u,v=u-1,v-1
G[u].append(v)
G[v].append(u)
INF=1... | from bisect import bisect_left
import sys
def main():
input = sys.stdin.readline
N=int(input())
*A,=map(int, input().split())
G=[[] for _ in range(N)]
for _ in range(N-1):
u,v=map(int, input().split())
u,v=u-1,v-1
G[u].append(v)
G[v].append(u)
INF=10**10
ans=... | [["-", 36, 36, 36, 36, 0, 656, 0, 686, 0, 21], ["-", 36, 36, 0, 656, 0, 686, 141, 673, 0, 22], ["-", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 662, 12, 652, 63, 22]] | 5 | 267 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define int ll
#define all(v) v.begin(), v.end()
#define reps(__i, a, b) for (int __i = a; i < b; i++)
#define rep(__i, n) reps(__i, 0, n)
const ll INF = (1ll << 60);
const ll MOD = (ll)1e9 + 7;
signed main() {
double a, b, n;
cin >> a >> b >> ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define int ll
#define all(v) v.begin(), v.end()
#define reps(__i, a, b) for (int __i = a; i < b; i++)
#define rep(__i, n) reps(__i, 0, n)
const ll INF = (1ll << 60);
const ll MOD = (ll)1e9 + 7;
signed main() {
double a, b, n;
cin >> a >> b >> ... | [["-", 0, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 31, 22], ["-", 3, 4, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 31, 22]] | 1 | 145 |
//#include <bits/stdc++.h>
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <unordered_map>
#include <vecto... | //#include <bits/stdc++.h>
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <unordered_map>
#include <vecto... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 33], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 2,017 |
import math
def func(A, B, x):
return math.floor(A*x/B)-A*math.floor(x/B)
A, B, N = list(map(int, input().split()))
"""
i = 1
max_x = -9999999
max = -9999999
while (i <= N):
ans =func(A, B, i)
if (ans > max):
max = ans
max_x = i
i += 1
print(max)
"""
print(func(A, B, B-1)) | import math
def func(A, B, x):
return math.floor(A*x/B)-A*math.floor(x/B)
A, B, N = list(map(int, input().split()))
"""
i = 1
max_x = -9999999
max = -9999999
while (i <= N):
ans =func(A, B, i)
if (ans > max):
max = ans
max_x = i
i += 1
print(max)
"""
print(func(A, B, min(B-1, N))) | [["+", 3, 4, 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, 21], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 71 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n, a, b;
cin >> a >> b >> n;
if (n > b)
n = b - 1;
cout << ((a * n) / b) - (a * (n / b));
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll n, a, b;
cin >> a >> b >> n;
if (n >= b)
n = b - 1;
cout << ((a * n) / b) - (a * (n / b));
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 66 |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
long long int a, b, n, ans, x;
scanf("%lld %lld %lld", &a, &b, &n);
if (b < n) {
x = b - 1;
} else {
x = n;
}
ans = a * x / b;
printf("%lld\n", ans);
return 0;
}
| #include <stdio.h>
#include <stdlib.h>
int main(void) {
long long int a, b, n, ans, x;
scanf("%lld %lld %lld", &a, &b, &n);
if (b <= n) {
x = b - 1;
} else {
x = n;
}
ans = a * x / b;
printf("%lld\n", ans);
return 0;
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 82 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, x) for (ll i = 0; i < (ll)(x); i++)
#define rrep(i, x) for (ll i = (ll)(x)-1; 0 <= i; i--)
#define reps(i, x) for (ll i = 1; i < (ll)(x) + 1; i++)
#define rreps(i, x) for (ll i = (ll)(x); 1 <= i; i--)
#define debug(x) cerr << #x << ": "... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, x) for (ll i = 0; i < (ll)(x); i++)
#define rrep(i, x) for (ll i = (ll)(x)-1; 0 <= i; i--)
#define reps(i, x) for (ll i = 1; i < (ll)(x) + 1; i++)
#define rreps(i, x) for (ll i = (ll)(x); 1 <= i; i--)
#define debug(x) cerr << #x << ": "... | [["+", 0, 11, 12, 2, 3, 4, 0, 16, 17, 33], ["+", 0, 11, 12, 2, 3, 4, 0, 16, 12, 13]] | 1 | 233 |
a,b,c=map(float,input().split())
x=max(b-1,c)
import math
print(math.floor(a*x/c)-a*math.floor(x/c)) | a,b,c=map(float,input().split())
x=min(b-1,c)
import math
print(int(math.floor(a*x/b)-a*math.floor(x/b))) | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["-", 0, 657, 31, 652, 3, 4, 0, 657, 12, 22], ["+", 0, 657, 31, 652, 3, 4, 0, 657, 12, 22], ["-", 12, 657, 12, 652, 3, 4, 0, 657, 12, 22], ["+... | 5 | 54 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;
using P = pair<int, int>;
using PL = pair<ll, ll>;
using vp = vector<P>;
using vpl = vector<PL>;
#define pqueue priority_queue
template <typename T> constexp... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;
using P = pair<int, int>;
using PL = pair<ll, ll>;
using vp = vector<P>;
using vpl = vector<PL>;
#define pqueue priority_queue
template <typename T> constexp... | [["-", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 12, 16, 12, 16, 12, 23, 0, 16, 31, 22], ["+", 12, 16, 12, 16, 12, 23, 0, 16, 31, 22]] | 1 | 1,774 |
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const long long MOD = 1e9 + 7, MAX = 1e18, larg = 1e5, INF = -1e9;
long long A, B, C, D, E, F, G, H, I, J, K, L, N, M, O, P, Q, R, S, T, U, V, W;
typedef long long ll;
typedef pair<ll, ll> Pa;
int arr[10];
int main() {
... | #include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const long long MOD = 1e9 + 7, MAX = 1e18, larg = 1e5, INF = -1e9;
long long A, B, C, D, E, F, G, H, I, J, K, L, N, M, O, P, Q, R, S, T, U, V, W;
typedef long long ll;
typedef pair<ll, ll> Pa;
int arr[10];
int main() {
... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 16, 17, 85]] | 1 | 141 |
// g++ -std=c++11 a.cpp
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <typeinfo>
#incl... | // g++ -std=c++11 a.cpp
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <typeinfo>
#incl... | [["-", 49, 50, 51, 16, 31, 16, 31, 16, 12, 22], ["+", 49, 50, 51, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 16, 12, 22]] | 1 | 722 |
#!/usr/bin/env python3
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1
a,b,n = map(int,input().split())
if b-1 >= n:
x = b-1
else:
x = n
print((a*x//b)-(a*(x//b))) | #!/usr/bin/env python3
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1
a,b,n = map(int,input().split())
if b-1 <= n:
x = b-1
else:
x = n
print((a*x//b)-(a*(x//b))) | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]] | 5 | 121 |
#include <stdio.h>
int main(void) {
int S, W;
scanf("%d", &S, &W);
if (S < W) {
printf("unsafe");
} else {
printf("safe");
}
}
| #include <stdio.h>
int main(void) {
int S, W;
scanf("%d %d", &S, &W);
if (S <= W) {
printf("unsafe");
} else {
printf("safe");
}
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 52 |
#include <stdio.h>
int main(void) {
int S, W;
scanf("%d %d", S, W);
if (S > W)
printf("safe");
if (S <= W)
printf("unsafe");
}
| #include <stdio.h>
int main(void) {
int S, W;
scanf("%d %d", &S, &W);
if (S > W)
printf("safe");
if (S <= W)
printf("unsafe");
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 14, 8, 9, 0, 57, 64, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 0 | 51 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <stdlib.h>
using namespace std;
#define INF 1e9
#define PI 3.141592653589793238
typedef long long ll;
int main() {
int s, w;
cin >> s, w;
if (w >= s)
cout << "unsafe" << endl;
else
cout << "safe" << endl;
return 0;
} | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <stdlib.h>
using namespace std;
#define INF 1e9
#define PI 3.141592653589793238
typedef long long ll;
int main() {
int s, w;
cin >> s >> w;
if (w < s)
cout << "safe" << endl;
else
cout << "unsafe" << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31,... | 1 | 66 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int W, S;
cin >> W >> S;
if (W >= S)
cout << "unsafe" << endl;
else
cout << "safe" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int W, S;
cin >> S >> W;
if (W >= S)
cout << "unsafe" << endl;
else
cout << "safe" << endl;
} | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 46 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int S, W;
cin >> S >> W;
if (S <= W)
cout << "unsafe" << endl;
cout << "safe" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int S, W;
cin >> S >> W;
if (S <= W)
cout << "unsafe" << endl;
else
cout << "safe" << endl;
}
| [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 45 |
#include <iostream>
using namespace std;
int main(void) {
// Your code here!
int s;
int w;
cin >> s;
cin >> w;
if (s < w) {
cout << "unsafe";
} else {
cout << "safe";
}
}
| #include <iostream>
using namespace std;
int main(void) {
// Your code here!
int s;
int w;
cin >> s;
cin >> w;
if (s < w || s == w) {
cout << "unsafe";
} else {
cout << "safe";
}
}
| [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 51 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int s, w;
cin >> s >> w;
if (s >> w) {
cout << "safe";
} else {
cout << "unsafe";
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int s, w;
cin >> s >> w;
if (s > w) {
cout << "safe";
} else {
cout << "unsafe";
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 152], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 46 |
input_line = input()
S = int(input_line[0])
W = int(input_line[1])
if S > W:
print("safe")
else:
print("unsafe")
| input_line = input().split(" ")
S = int(input_line[0])
W = int(input_line[1])
if S > W:
print("safe")
else:
print("unsafe") | [["+", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 63, 319, 319, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 662, 12, 652, 3, 4, 0, 557, 0, 655], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 42 |
a = list.map(int,input().split())
if a[1] >= a[0]:
print("unsafe")
else:
print("safe") | a = list(map(int,input().split()))
if a[1] >= a[0]:
print("unsafe")
else:
print("safe") | [["-", 0, 1, 0, 662, 12, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 41 |
s, w = map(int, input().split())
if s > w:
print(safe)
else:
print(unsafe) | s, w = map(int, input().split())
if s > w:
print("safe")
else:
print("unsafe") | [["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 31 |
// Hail god Yato
#include <bits/stdc++.h>
using namespace std;
#define hs \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0... | // Hail god Yato
#include <bits/stdc++.h>
using namespace std;
#define hs \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0... | [["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 20], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 19]] | 1 | 113 |
def main():
s, w = map(int, input())
if w >= s:
print('unsafe')
else:
print('safe')
if __name__ == "__main__":
main()
|
def main():
s, w = map(int, input().split())
if w >= s:
print('unsafe')
else:
print('safe')
if __name__ == "__main__":
main()
| [["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 46 |
sw = gets.split(" ")
sw = sw.map { |a|
a.to_i
}
puts(sw)
if sw[0] <= sw[1]
puts("unsafe")
else
puts("safe")
end | sw = gets.split(" ")
sw = sw.map { |a|
a.to_i
}
if sw[0] <= sw[1]
puts("unsafe")
else
puts("safe")
end | [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 24], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 22], ["-", 36, 36, 0, 493, 0, 652, 3, 4, 0, 25]] | 4 | 51 |
#include <stdio.h>
int main(void) {
int S, W;
scanf("%d %d", S, W);
if (S > W) {
printf("safe\n");
} else {
printf("unsafe\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int S, W;
scanf("%d %d", &S, &W);
if (S > W) {
printf("safe\n");
} else {
printf("unsafe\n");
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 55 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int wolf;
int sheep;
cin >> sheep;
cin >> wolf;
if (wolf <= sheep) {
cout << "safe";
} else {
cout << "unsafe";
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int wolf;
int sheep;
cin >> sheep;
cin >> wolf;
if (wolf < sheep) {
cout << "safe";
} else {
cout << "unsafe";
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 52 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int S, W;
cin >> S >> W;
if (S >= W) {
cout << "unsafe" << endl;
}
else {
cout << "safe" << endl;
}
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int S, W;
cin >> S >> W;
if (S <= W) {
cout << "unsafe" << endl;
}
else {
cout << "safe" << endl;
}
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 91 |
#include <bits/stdc++.h>
#define MOD 1000000007LL
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int s, w;
int main(void) {
scanf("%d%d", &s, &w);
printf("%s\n", s > w ? "safe" : "unfase");
return 0;
}
| #include <bits/stdc++.h>
#define MOD 1000000007LL
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int s, w;
int main(void) {
scanf("%d%d", &s, &w);
printf("%s\n", s > w ? "safe" : "unsafe");
return 0;
}
| [["-", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6]] | 1 | 71 |
s, w = map(int, input().split())
ans = "safe" if s > w * 2 else 'unsafe'
print(ans)
| s, w = map(int, input().split())
ans = "safe" if s > w else 'unsafe'
print(ans)
| [["-", 0, 662, 12, 41, 0, 666, 0, 657, 17, 48], ["-", 0, 662, 12, 41, 0, 666, 0, 657, 12, 612]] | 5 | 35 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
if (A - B > 0) {
System.out.println("unsafe");
} else {
System.out.println("safe");
}
}
} | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
if (A - B > 0) {
System.out.println("safe");
} else {
System.out.println("unsafe");
}
}
} | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 88 |
#include <stdio.h>
int main() {
int s, w;
scanf("%d%d", &s, &w);
if (w > s)
printf("unsafe");
else
printf("safe");
} | #include <stdio.h>
int main() {
int s, w;
scanf("%d%d", &s, &w);
if (w >= s)
printf("unsafe");
else
printf("safe");
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20]] | 0 | 47 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int s, w;
cin >> s >> w;
if (w >= s) {
cout << "Unsafe";
} else {
cout << "Safe";
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int s, w;
cin >> s >> w;
if (w >= s) {
cout << "unsafe";
} else {
cout << "safe";
}
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 46 |
#include <stdio.h>
int main(void) {
int sheep;
int wolf;
scanf("%d %d", &sheep, &wolf);
if (wolf >= sheep) {
printf("safe");
} else {
printf("unsafe");
}
return 0;
}
| #include <stdio.h>
int main(void) {
int sheep;
int wolf;
scanf("%d %d", &sheep, &wolf);
if (wolf >= sheep) {
printf("unsafe\n");
} else {
printf("safe\n");
}
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, 5, 0, 44]] | 0 | 56 |
#include <stdio.h>
int main() {
int s = 0, w = 0;
scanf("%d %d", &s, &w);
if (s >= w) {
printf("safe");
} else {
printf("unsafe");
}
} | #include <stdio.h>
int main() {
int s = 0, w = 0;
scanf("%d %d", &s, &w);
if (s > w) {
printf("safe");
} else {
printf("unsafe");
}
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47]] | 0 | 55 |
#include <stdio.h>
int main(void) {
int s, w;
scanf("%d %d", &s, w);
if (s <= w)
printf("unsafe");
else
printf("safe");
return 0;
}
| #include <stdio.h>
int main(void) {
int s, w;
scanf("%d %d", &s, &w);
if (s <= w)
printf("unsafe");
else
printf("safe");
return 0;
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 50 |
#include <stdio.h>
int main(void) {
int s, w;
scanf("%d%d", s, w);
if (s > w)
printf("safe");
else
printf("unsafe");
return 0;
} | #include <stdio.h>
int main(void) {
int s, w;
scanf("%d%d", &s, &w);
if (s > w)
printf("safe");
else
printf("unsafe");
return 0;
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 49 |
#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define ll long long
#define ull unsigned long long
#define si set<ll>
#define vi vector<ll>
#define popcount(x) __builtin_popcountll(x)
#define mii map<ll, ll>
#define vpi vector<pair<ll, ll>>
#define sz(c) (int)c.size()
#define fr first
#define ll l... | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define ll long long
#define ull unsigned long long
#define si set<ll>
#define vi vector<ll>
#define popcount(x) __builtin_popcountll(x)
#define mii map<ll, ll>
#define vpi vector<pair<ll, ll>>
#define sz(c) (int)c.size()
#define fr first
#define ll l... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 309 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int s = sc.nextInt();
int w = sc.nextInt();
if (w * 2 >= s)
System.out.println("unsafe");
else
System.out.println("safe");
sc.close();
}
} | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int s = sc.nextInt();
int w = sc.nextInt();
if (w >= s)
System.out.println("unsafe");
else
System.out.println("safe");
sc.close();
}
} | [["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 15, 0, 16, 31, 16, 12, 499]] | 3 | 90 |
#include <stdio.h>
int main() {
int S, W;
scanf("%d %d", &S, &W);
if (S > W) {
printf("unsafe");
} else {
printf("safe");
}
return 0;
}
| #include <stdio.h>
int main() {
int S, W;
scanf("%d %d", &S, &W);
if (W >= S) {
printf("unsafe");
} else {
printf("safe");
}
return 0;
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22]] | 0 | 54 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int s, w;
cin >> s >> w;
if (s < w) {
string message = "unsafe";
cout << message << endl;
} else {
string message = "safe";
cout << message << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int s, w;
cin >> s >> w;
if (s <= w) {
string message = "unsafe";
cout << message << endl;
} else {
string message = "safe";
cout << message << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 60 |
#include <stdio.h>
int main() {
int s, w;
scanf("%d %d", &s, &w);
if (s / 2 < w) {
printf("unsafe");
} else {
printf("safe");
}
return 0;
}
| #include <stdio.h>
int main() {
int s, w;
scanf("%d %d", &s, &w);
if (s <= w) {
printf("unsafe");
} else {
printf("safe");
}
return 0;
} | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]] | 0 | 56 |
#include <bits/stdc++.h>
#define rep(i, x, n) for (int i = x; i < n; i++)
#define repr(i, x, n) for (int i = x; i > n; i--)
#define pii pair<int, int>
#define ll long long
#define pb push_back
#define yes puts("YES")
#define no puts("NO")
#define PI 3.141592653589793238462643383279
const long long iinf = INT64_MAX - 1;... | #include <bits/stdc++.h>
#define rep(i, x, n) for (int i = x; i < n; i++)
#define repr(i, x, n) for (int i = x; i > n; i--)
#define pii pair<int, int>
#define ll long long
#define pb push_back
#define yes puts("YES")
#define no puts("NO")
#define PI 3.141592653589793238462643383279
const long long iinf = INT64_MAX - 1;... | [["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 299 |
#include <stdio.h>
int main() {
int S, W;
scanf("%d %d", &S, &W);
if (W >= 2 * S)
printf("unsafe");
else
printf("safe");
return 0;
} | #include <stdio.h>
int main() {
int S, W;
scanf("%d %d", &S, &W);
if (W < S)
printf("safe");
else
printf("unsafe");
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 31, 13], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 48], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 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 | 52 |
#include <stdio.h>
int main() {
int S, W;
scanf("%d %d", &S, &W);
if (W >= 2 * S)
printf("unsafe");
else
printf("safe");
return 0;
} | #include <stdio.h>
int main() {
int S, W;
scanf("%d %d", &S, &W);
if (W >= S)
printf("unsafe");
else
printf("safe");
return 0;
} | [["-", 0, 57, 15, 23, 0, 16, 12, 16, 31, 13], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 48]] | 0 | 52 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int s, w;
cin >> s, w;
if (w >= s) {
cout << "unsafe";
} else {
cout << "safe";
}
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int s, w;
cin >> s >> w;
if (w >= s) {
cout << "unsafe";
} else {
cout << "safe";
}
} | [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]] | 1 | 48 |
#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
//#include <functional> // for less
// using namespace __gnu_pbds;
using namespace std;
typedef long long L;
#define max_(x, y) (((x) > (y)) ? (x) : (y))
#define min_(x, y) (((x) < (y)) ? (x) : (y))
#define ___ ... | #include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
//#include <functional> // for less
// using namespace __gnu_pbds;
using namespace std;
typedef long long L;
#define max_(x, y) (((x) > (y)) ? (x) : (y))
#define min_(x, y) (((x) < (y)) ? (x) : (y))
#define ___ ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 248 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define RREP(i, s, n) for (int i = s; i < (n); i++)
#define ALL(a) a.begin(), a.end()
#define RALL(a) a.rbegin(), a.rend()
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class ... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define RREP(i, s, n) for (int i = s; i < (n); i++)
#define ALL(a) a.begin(), a.end()
#define RALL(a) a.rbegin(), a.rend()
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class ... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]] | 1 | 206 |
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#l = list(map(int, input().split()))
s, w = map(int, input().split())
if (w >= s // 2):
print("unsafe")
else:
print("safe")
| #k = int(input())
#s = input()
#a, b = map(int, input().split())
#l = list(map(int, input().split()))
s, w = map(int, input().split())
if (w >= s):
print("unsafe")
else:
print("safe")
| [["-", 0, 57, 15, 23, 0, 666, 0, 657, 17, 676], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 12, 612]] | 5 | 43 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int S, W;
cin >> S >> W;
if (W * 2 >= S)
cout << "unsafe";
else
cout << "safe";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int S, W;
cin >> S >> W;
if (W >= S)
cout << "unsafe";
else
cout << "safe";
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 47 |
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstdio>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstdio>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 446 |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println(sc.nextInt() < sc.nextInt() ? "safe" : "unsafe");
}
} | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println(sc.nextInt() > sc.nextInt() ? "safe" : "unsafe");
}
}
| [["-", 0, 492, 3, 4, 0, 510, 15, 16, 17, 18], ["+", 0, 492, 3, 4, 0, 510, 15, 16, 17, 47]] | 3 | 61 |
W,S = map(int, input().split())
print('safe' if W < S else 'unsafe') | S,W = map(int, input().split())
print('safe' if W < S else 'unsafe') | [["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22]] | 5 | 30 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int S, W;
cin >> S >> W;
if (S < W) {
cout << "safe" << endl;
return 0;
}
cout << "unsafe" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int S, W;
cin >> S >> W;
if (S > W) {
cout << "safe" << endl;
return 0;
}
cout << "unsafe" << endl;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 50 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
string s = a > b ? "safe\n" : "safe\n";
cout << s << "\n";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
string s = a > b ? "safe\n" : "unsafe\n";
cout << s << "\n";
}
| [["-", 0, 43, 49, 50, 51, 41, 75, 5, 0, 6], ["+", 0, 43, 49, 50, 51, 41, 75, 5, 0, 6]] | 1 | 48 |
#include <iostream>
using namespace std;
int main() {
int s, w;
cin >> s >> w;
if (s < w) {
cout << "unsafe" << endl;
} else {
cout << "safe" << endl;
}
return (0);
} | #include <iostream>
using namespace std;
int main() {
int s, w;
cin >> s >> w;
if (s <= w) {
cout << "unsafe" << endl;
} else {
cout << "safe" << endl;
}
return (0);
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 55 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int S, W;
cin >> S >> W;
if (S < W) {
cout << "unsafe" << endl;
} else {
cout << "safe" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int S, W;
cin >> S >> W;
if (W - S < 0) {
cout << "safe" << endl;
} else {
cout << "unsafe" << endl;
}
} | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 33], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 50 |
S,W = input().split()
if int(S) >= int(S):
print('unsafe')
else:
print('safe') | S,W = input().split()
if int(W) >= int(S):
print('unsafe')
else:
print('safe') | [["-", 0, 57, 15, 666, 0, 652, 3, 4, 0, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 22]] | 5 | 36 |
A,B=map(int,input().split())
print("safe" if S>W else "unsafe") | A,B=map(int,input().split())
print("safe" if A>B else "unsafe") | [["-", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 0, 22]] | 5 | 30 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int S, W;
cin >> S >> W;
cout << (W * 2 >= S ? "unsafe" : "safe") << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int S, W;
cin >> S >> W;
cout << (W >= S ? "unsafe" : "safe") << endl;
}
| [["-", 12, 23, 0, 41, 15, 16, 31, 16, 17, 48], ["-", 12, 23, 0, 41, 15, 16, 31, 16, 12, 13]] | 1 | 43 |
a, b = map(int, input().split())
print("unsafe" if (a < b) else "safe") | a, b = map(int, input().split())
print("unsafe" if (a <= b) else "safe") | [["-", 3, 4, 0, 41, 0, 23, 0, 666, 667, 18], ["+", 3, 4, 0, 41, 0, 23, 0, 666, 667, 19]] | 5 | 32 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner stdIn = new Scanner(System.in);
int x = stdIn.nextInt();
int y = stdIn.nextInt();
if (x < y) {
System.out.println("unsafe");
} else {
System.out.println("safe");
}
}
}... | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner stdIn = new Scanner(System.in);
int x = stdIn.nextInt();
int y = stdIn.nextInt();
if (x <= y) {
System.out.println("unsafe");
} else {
System.out.println("safe");
}
}
... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]] | 3 | 88 |
#include <stdio.h>
int main() {
int a, b;
scanf("%d", &a);
scanf("%d", &b);
if (b >= a)
printf("unsafe/n");
else
printf("safe\n");
return 0;
}
| #include <stdio.h>
int main() {
int a, b;
scanf("%d", &a);
scanf("%d", &b);
if (b >= a)
printf("unsafe\n");
else
printf("safe\n");
return 0;
}
| [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 58 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.