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
/* author: Salam_35 Created at : */ #include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define sc(n) scanf("%d", &n) #define Max 100005 #define scan(n) scanf("%lld", &n) #define pi acos(-1.0) #define _fastio ...
/* author: Salam_35 Created at : */ #include <bits/stdc++.h> using namespace std; #define ll long long int #define pb push_back #define sc(n) scanf("%d", &n) #define Max 100005 #define scan(n) scanf("%lld", &n) #define pi acos(-1.0) #define _fastio ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
179
s, w = [int(i) for i in input().spli()] if s <= w: print("unsafe") else: print("safe")
s, w = [int(i) for i in input().split()] if s <= w: print("unsafe") else: print("safe")
[["-", 12, 658, 0, 659, 12, 652, 63, 319, 319, 22], ["+", 12, 658, 0, 659, 12, 652, 63, 319, 319, 22]]
5
39
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<ll> vl; #define pb push_back #define mp make_pair #define ff first #define ss second #define SQR(x) ((x) * (x)) #define loop(i, y) for (int i = 0; i < int(y); i++) #define FOR(i, x, y) for (int i = int(...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<ll> vl; #define pb push_back #define mp make_pair #define ff first #define ss second #define SQR(x) ((x) * (x)) #define loop(i, y) for (int i = 0; i < int(y); i++) #define FOR(i, x, y) for (int i = int(...
[["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 47], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 20]]
1
798
s,w=[int(x) for x in input().splir()] if(s>w): print("safe") else: print("unsafe")
s,w=[int(x) for x in input().split()] if(s>w): print("safe") else: print("unsafe")
[["-", 12, 658, 0, 659, 12, 652, 63, 319, 319, 22], ["+", 12, 658, 0, 659, 12, 652, 63, 319, 319, 22]]
5
41
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> pii; #define mem(dp, a) memset(dp, a, sizeof dp) #define ninja \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> pii; #define mem(dp, a) memset(dp, a, sizeof dp) #define ninja \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
91
import java.io.*; import java.util.Arrays; import java.util.StringTokenizer; public class Main { static class Task { public void solve(int testNumber, InputReader in, PrintWriter out) { int s = in.nextInt(); int w = in.nextInt(); out.println(w >= s ? "unsafe" : "saft"); } } private s...
import java.io.*; import java.util.Arrays; import java.util.StringTokenizer; public class Main { static class Task { public void solve(int testNumber, InputReader in, PrintWriter out) { int s = in.nextInt(); int w = in.nextInt(); out.println(w >= s ? "unsafe" : "safe"); } } private s...
[["-", 0, 492, 3, 4, 0, 510, 75, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 510, 75, 5, 0, 491]]
3
547
#include <bits/stdc++.h> #define maxn 200005 #define INF 0x3f3f3f3f #define mod 1000000007 #define rep(i, a, n) for (int i = (a); i < (n); i++) #define per(i, a, n) for (int i = (a); i > (n); i--) typedef long long ll; using namespace std; void slove() { int w, a; cin >> w >> a; if (w > a) cout << "unsafe"; ...
#include <bits/stdc++.h> #define maxn 200005 #define INF 0x3f3f3f3f #define mod 1000000007 #define rep(i, a, n) for (int i = (a); i < (n); i++) #define per(i, a, n) for (int i = (a); i > (n); i--) typedef long long ll; using namespace std; void slove() { int w, a; cin >> w >> a; if (w <= a) cout << "unsafe";...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
128
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = Integer.parseInt(sc.next()); int W = Integer.parseInt(sc.next()); if (S <= W) { System.out.println("unsafe"); } else { System.out.println("sage"); } } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = Integer.parseInt(sc.next()); int W = Integer.parseInt(sc.next()); if (S <= W) { System.out.println("unsafe"); } else { System.out.println("safe"); } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
95
#include <bits/stdc++.h> using namespace std; inline void read(int &x) { char ch = getchar(); int f = 0; x = 0; while (!isdigit(ch)) { if (ch == '-') f = 1; ch = getchar(); } while (isdigit(ch)) x = x * 10 + ch - 48, ch = getchar(); if (f) x = -x; } signed main() { int s, w; read...
#include <bits/stdc++.h> using namespace std; inline void read(int &x) { char ch = getchar(); int f = 0; x = 0; while (!isdigit(ch)) { if (ch == '-') f = 1; ch = getchar(); } while (isdigit(ch)) x = x * 10 + ch - 48, ch = getchar(); if (f) x = -x; } signed main() { int s, w; read...
[["-", 8, 9, 0, 1, 0, 41, 15, 16, 17, 20], ["+", 8, 9, 0, 1, 0, 41, 15, 16, 17, 19]]
1
134
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long #define X first #define Y second #define all(x) x.begin(), x.end() #define ordered_set ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define ll long long #define X first #define Y second #define all(x) x.begin(), x.end() #define ordered_set ...
[["-", 0, 124, 49, 65, 0, 53, 0, 42, 0, 22], ["+", 0, 124, 49, 65, 0, 53, 0, 42, 0, 22]]
1
469
S, W = map(int, input().split()) print(["unsafe", "safe"][S < W])
S, W = map(int, input().split()) print(["unsafe", "safe"][S > W])
[["-", 0, 652, 3, 4, 0, 206, 206, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 206, 206, 666, 667, 47]]
5
33
#include <bits/stdc++.h> using namespace std; using l1 = long long; #define rep(i, n) for (int i = 0, i < (n); ++i) int main() { int s, w; cin >> s >> w; if (s >= w) { cout << "unsafe"; } else { cout << "safe"; } return 0; }
#include <bits/stdc++.h> using namespace std; using l1 = long long; #define rep(i, n) for (int i = 0, i < (n); ++i) int main() { int s, w; cin >> s >> w; if (s <= w) { cout << "unsafe"; } else { cout << "safe"; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
63
// Bismillahir Rahmanir Rahim // S. M. Shakir Ahsan Romeo #include <bits/stdc++.h> using namespace std; const double PI = acos(-1.0); const int dx4[] = {-1, 0, 1, 0}; // 4 direction i const int dy4[] = {0, 1, 0, -1}; // 4 direction j const int dx8[] = {-1, -1, -1, 0, 0, 1, 1, 1}; // 8 di...
// Bismillahir Rahmanir Rahim // S. M. Shakir Ahsan Romeo #include <bits/stdc++.h> using namespace std; const double PI = acos(-1.0); const int dx4[] = {-1, 0, 1, 0}; // 4 direction i const int dy4[] = {0, 1, 0, -1}; // 4 direction j const int dx8[] = {-1, -1, -1, 0, 0, 1, 1, 1}; // 8 di...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
944
#include <stdio.h> int main() { int S; int W; scanf("%d", &S); scanf("%d", &W); if (S > W) { printf("safe"); } else { printf("unnsafe"); } return 0; }
#include <stdio.h> int main() { int S; int W; scanf("%d", &S); scanf("%d", &W); if (S > W) { printf("safe"); } else { printf("unsafe"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
62
def inp(): return int(input()) #一個だけ読み取り def inpm(): return map(int,input().split()) #mapオブジェクトで呼び出し def inpl(): return list(map(int, input().split())) #数字リストをintで def inpls(): return list(input().split()) #数字リストをstrで S, W = inpl() print("unsafe") if S < W else print("safe")
def inp(): return int(input()) #一個だけ読み取り def inpm(): return map(int,input().split()) #mapオブジェクトで呼び出し def inpl(): return list(map(int, input().split())) #数字リストをintで def inpls(): return list(input().split()) #数字リストをstrで S, W = inpl() print("unsafe") if S <= W else print("safe")
[["-", 0, 656, 0, 1, 0, 41, 0, 666, 667, 18], ["+", 0, 656, 0, 1, 0, 41, 0, 666, 667, 19]]
5
95
#include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; if (s <= w) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } }
#include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; if (s > w) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
50
#include <bits/stdc++.h> using namespace std; #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++) int main() { int n, m; cin >> n >> m; if (n >= m) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
#include <bits/stdc++.h> using namespace std; #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++) int main() { int n, m; cin >> n >> m; if (n <= m) { 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
68
#include <bits/stdc++.h> using namespace std; #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define ll long ...
#include <bits/stdc++.h> using namespace std; #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define ll long ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
245
#include <iostream> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(0); cin.tie(0); ll t, n, a, b, sum = 0; cin >> a >> b; if (a < b) { cout << "safe"; return 0; } cout << "unsafe"; return 0; }
#include <iostream> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(0); cin.tie(0); ll t, n, a, b, sum = 0; cin >> a >> b; if (a > b) { cout << "safe"; return 0; } cout << "unsafe"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
76
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll n, t, a, b, c, d, e, cnt = 0; map<ll, ll> mp; vector<ll> vec; string s, s1, s2; cin >> a >> b; if (b > a) { cout << "unsafe" << endl; } else cout << "safe" << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { ll n, t, a, b, c, d, e, cnt = 0; map<ll, ll> mp; vector<ll> vec; string s, s1, s2; cin >> a >> b; if (b >= a) { cout << "unsafe" << endl; } else cout << "safe" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
89
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
33
#include <iostream> #include <vector> using namespace std; int main() { long S, W; cin >> S >> W; if (W / 2 >= S) { cout << "unsafe"; } else { cout << "safe"; } }
#include <iostream> #include <vector> using namespace std; int main() { long S, W; cin >> S >> W; if (W >= S) { cout << "unsafe"; } else { cout << "safe"; } }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]]
1
50
s, w = int(input().split()) if s<=w: print('unsafe') else: print('safe')
s, w = map(int, input().split()) if s<=w: print('unsafe') else: print('safe')
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
33
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> pi; typedef pair<int, int> vi; #define F first #define S second #define PB push_back #define MK make_pair #define REP(i, a, b) for (int i = a; i < b; i++) bool sort_by(vi c, vi d) { return c.S < d.S; } int main() { int s, w; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> pi; typedef pair<int, int> vi; #define F first #define S second #define PB push_back #define MK make_pair #define REP(i, a, b) for (int i = a; i < b; i++) bool sort_by(vi c, vi d) { return c.S < d.S; } int main() { int s, w; ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
105
#include <bits/stdc++.h> #define mod 998244353 #define db(a) cout << a << endl #define db2(a, b) cout << a << " " << b << endl #define dbp(a) cout << a.first << " " << a.second << endl #define adb(a) \ for (auto i : a) ...
#include <bits/stdc++.h> #define mod 998244353 #define db(a) cout << a << endl #define db2(a, b) cout << a << " " << b << endl #define dbp(a) cout << a.first << " " << a.second << endl #define adb(a) \ for (auto i : a) ...
[["-", 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, 16, 12, 5, 0, 6]]
1
93
s,w = gets.split(" ").map(&:to_i) puts s < w ? 'unsafe' : 'safe'
s,w = gets.split(" ").map(&:to_i) puts w >= s ? 'unsafe' : 'safe'
[["-", 0, 652, 3, 4, 0, 754, 15, 738, 31, 22], ["-", 0, 652, 3, 4, 0, 754, 15, 738, 17, 18], ["+", 0, 652, 3, 4, 0, 754, 15, 738, 17, 20], ["+", 0, 652, 3, 4, 0, 754, 15, 738, 12, 22]]
4
30
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <utility> #include <vector> ...
#define _CRT_SECURE_NO_WARNINGS #include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <utility> #include <vector> ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
214
""" Template written to be used by Python Programmers. Use at your own risk!!!! Owned by enraged(rating - 5 star at CodeChef and Specialist at Codeforces). """ import sys from functools import lru_cache, cmp_to_key from heapq import merge, heapify, heappop, heappush, nlargest, nsmallest, _heapify_max, _heap...
""" Template written to be used by Python Programmers. Use at your own risk!!!! Owned by enraged(rating - 5 star at CodeChef and Specialist at Codeforces). """ import sys from functools import lru_cache, cmp_to_key from heapq import merge, heapify, heappop, heappush, nlargest, nsmallest, _heapify_max, _heap...
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]]
5
294
#include <bits/stdc++.h> using namespace std; #define int long long int #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ co...
#include <bits/stdc++.h> using namespace std; #define int long long int #define fastio \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ co...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
97
s, w = map(int, input().split("")) res = "safe" if w >= s: res = "unsafe" print(res)
s, w = map(int, input().split(" ")) res = "safe" if w >= s: res = "unsafe" print(res)
[["+", 3, 4, 0, 652, 3, 4, 0, 557, 0, 6]]
5
37
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; #define setbits(x) __builtin_popcount(x) #define setbitsll(x) __builtin_popcountll(x) //#define endl '\n' #define all(x) (x).begin(), (x).end() #define pb push_back #define se second #define fi first #define pai acos(-1)...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; #define setbits(x) __builtin_popcount(x) #define setbitsll(x) __builtin_popcountll(x) //#define endl '\n' #define all(x) (x).begin(), (x).end() #define pb push_back #define se second #define fi first #define pai acos(-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
300
package main import ( "bufio" "fmt" "os" "strconv" ) func getScanner(fp *os.File) *bufio.Scanner { scanner := bufio.NewScanner(fp) scanner.Split(bufio.ScanWords) scanner.Buffer(make([]byte, 1000005), 1000005) return scanner } func getNextString(scanner *bufio.Scanner) string { scanner.Scan() return scanner...
package main import ( "bufio" "fmt" "os" "strconv" ) func getScanner(fp *os.File) *bufio.Scanner { scanner := bufio.NewScanner(fp) scanner.Split(bufio.ScanWords) scanner.Buffer(make([]byte, 1000005), 1000005) return scanner } func getNextString(scanner *bufio.Scanner) string { scanner.Scan() return scanner...
[["-", 0, 57, 64, 196, 0, 436, 12, 432, 0, 433], ["+", 0, 57, 64, 196, 0, 436, 12, 432, 0, 433], ["-", 0, 435, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 435, 8, 196, 0, 57, 15, 16, 17, 47]]
7
451
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int mod = 1e9 + 7; int main() { #ifdef local freopen("in.txt", "r", stdin); #endif ios::sync_with_stdio(false); cin.tie(0), cout.tie(0); int s, w; cin >> s >> w; if (w > s) cout << "unsafe\n"; else cout << "safe\n"; retur...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int mod = 1e9 + 7; int main() { #ifdef local freopen("in.txt", "r", stdin); #endif ios::sync_with_stdio(false); cin.tie(0), cout.tie(0); int s, w; cin >> s >> w; if (w >= s) cout << "unsafe\n"; else cout << "safe\n"; retu...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
97
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") using namespace std; using namespace __gnu_pbds; typedef tree<int, null_...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") using namespace std; using namespace __gnu_pbds; typedef tree<int, null_...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
844
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <set> #include <vector> using namespace std; #define ll long long const int N = 2e5 + 5; int main() { int x, y; cin >> x >> y; if (y >= x) cout << "Unsafe" << endl; else cout << "Safe" << endl; }
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <set> #include <vector> using namespace std; #define ll long long const int N = 2e5 + 5; int main() { int x, y; cin >> x >> y; if (y >= x) cout << "unsafe" << endl; else cout << "safe" << endl; }
[["-", 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, 16, 12, 5, 0, 6]]
1
67
#include <iostream> using namespace std; int s, w; int main() { cin >> s >> w; if (w >= w) cout << "unsafe"; else cout << "safe"; }
#include <iostream> using namespace std; int s, w; int main() { cin >> s >> w; if (w >= s) cout << "unsafe"; else cout << "safe"; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
42
#include <bits/stdc++.h> using namespace std; int main() { std::ios::sync_with_stdio(false); std::cin.tie(NULL); int S, W; cin >> S, W; if (S > W) cout << "safe"; else cout << "unsafe"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { std::ios::sync_with_stdio(false); std::cin.tie(NULL); int S, W; cin >> S >> W; if (S > W) cout << "safe"; else cout << "unsafe"; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
63
#include <bits/stdc++.h> using namespace std; typedef long long llint; const llint MOD = 998'244'353; int main() { int S, W; cin >> S >> W; if (W > S) { cout << "unsafe"; } else { cout << "safe"; } }
#include <bits/stdc++.h> using namespace std; typedef long long llint; const llint MOD = 998'244'353; int main() { int S, W; cin >> S >> W; if (W >= S) { cout << "unsafe"; } else { cout << "safe"; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
57
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<bool> vb; typedef map<int, int> mii; typedef pair<int, int> ii; #define INF 0x3f3f3f3f #define INFLL 0x3f3f3f3f3f3f3f3f #define each(x, s) for (auto &x : s) #define loop(x) for (...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector<int> vi; typedef vector<bool> vb; typedef map<int, int> mii; typedef pair<int, int> ii; #define INF 0x3f3f3f3f #define INFLL 0x3f3f3f3f3f3f3f3f #define each(x, s) for (auto &x : s) #define loop(x) for (...
[["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 47], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 20]]
1
165
#pragma GCC optimize("Ofast") #include "bits/stdc++.h" using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define IOS \ { ...
#pragma GCC optimize("Ofast") #include "bits/stdc++.h" using namespace std; #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; #define IOS \ { ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
301
#include <bits/stdc++.h> #define f(i, a, b) for (ll i = a; i < (ll)b; i++) #define af(i, a, b) for (ll i = a; i >= (ll)b; i--) #define rep(i, a, b, k) for (ll i = a; i < b; i += k) #define arep(i, a, b, k) for (ll i = a; i >= b; i -= k) #define fs first #define sc second #define pb push_back #define mp make_pair #defi...
#include <bits/stdc++.h> #define f(i, a, b) for (ll i = a; i < (ll)b; i++) #define af(i, a, b) for (ll i = a; i >= (ll)b; i--) #define rep(i, a, b, k) for (ll i = a; i < b; i += k) #define arep(i, a, b, k) for (ll i = a; i >= b; i -= k) #define fs first #define sc second #define pb push_back #define mp make_pair #defi...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
174
#include <bits/stdc++.h> using namespace std; template <class TH> void _dbg(const char *sdbg, TH h) { cerr << sdbg << "=" << h << "\n"; } template <class TH, class... TA> void _dbg(const char *sdbg, TH h, TA... a) { while (*sdbg != ',') cerr << *sdbg++; cerr << "=" << h << ","; _dbg(sdbg + 1, a...); } te...
#include <bits/stdc++.h> using namespace std; template <class TH> void _dbg(const char *sdbg, TH h) { cerr << sdbg << "=" << h << "\n"; } template <class TH, class... TA> void _dbg(const char *sdbg, TH h, TA... a) { while (*sdbg != ',') cerr << *sdbg++; cerr << "=" << h << ","; _dbg(sdbg + 1, a...); } te...
[["-", 0, 2, 3, 4, 0, 41, 15, 16, 17, 18], ["+", 0, 2, 3, 4, 0, 41, 15, 16, 17, 19]]
1
265
a, b = map(int, input().split()) if b > a: print("unsafe") else: print("safe")
a, b = map(int, input().split()) if b >= a: print("unsafe") else: print("safe")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]]
5
35
#include <bits/stdc++.h> #pragma GCC optimize("Ofast") #define F first #define S second #define PB push_back #define MP make_pair #define endl "\n" #define sz(u) (int)(u.size()) typedef long long ll; using namespace std; void solve() { int a, b; cin >> a >> b; if (a < b) cout << "unsafe"; else cout << "...
#include <bits/stdc++.h> #pragma GCC optimize("Ofast") #define F first #define S second #define PB push_back #define MP make_pair #define endl "\n" #define sz(u) (int)(u.size()) typedef long long ll; using namespace std; void solve() { int a, b; cin >> a >> b; if (a <= b) cout << "unsafe"; else cout << ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
101
#include <bits/stdc++.h> #define ll long long #define endl "\n" #define pb push_back #define f(i, n) for (int i = 0; i < n; i++) #define f1(i, n) for (int i = 1; i < n; i++) #define rf(i, n) for (int i = n - 1; i >= 0; i--) #define PI 3.1415926535897932384626433832795 #define fi first #define se second #define mp(x, y)...
#include <bits/stdc++.h> #define ll long long #define endl "\n" #define pb push_back #define f(i, n) for (int i = 0; i < n; i++) #define f1(i, n) for (int i = 1; i < n; i++) #define rf(i, n) for (int i = n - 1; i >= 0; i--) #define PI 3.1415926535897932384626433832795 #define fi first #define se second #define mp(x, y)...
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
321
#include <bits/stdc++.h> #define rep0(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i <= (int)(n); i++) #define all(x) (x).begin(), (x).end() #define debug(a) \ if (flagdebug) { ...
#include <bits/stdc++.h> #define rep0(i, n) for (int i = 0; i < (int)(n); i++) #define rep1(i, n) for (int i = 1; i <= (int)(n); i++) #define all(x) (x).begin(), (x).end() #define debug(a) \ if (flagdebug) { ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
153
def main(): s,w = map(int,input().split()) if s <= w: print('unsafe') else: print('sfe') if __name__=='__main__': main()
def main(): s,w = map(int,input().split()) if s <= w: print('unsafe') else: print('safe') if __name__=='__main__': main()
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
50
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; typedef long long ll; typedef pair<int, int> pii; const ll mod = 1000000007; ll powmod(ll a, ll b) { ll res = 1; a %= mod; assert(b >= 0); for (; b; b >>= 1) { if (b & 1) res = res * a % mod; a = a * a % mod; } return res; }...
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; typedef long long ll; typedef pair<int, int> pii; const ll mod = 1000000007; ll powmod(ll a, ll b) { ll res = 1; a %= mod; assert(b >= 0); for (; b; b >>= 1) { if (b & 1) res = res * a % mod; a = a * a % mod; } return res; }...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
209
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int s, w; cin >> s >> w; if (w > s) cout << "unsafe\n"; else cout << "safe\n"; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int s, w; cin >> s >> w; if (w >= s) cout << "unsafe\n"; else cout << "safe\n"; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
49
#include <bits/stdc++.h> #define llu unsigned long long #define ll long long #define INF 0x3f3f3f3f #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> #define llu unsigned long long #define ll long long #define INF 0x3f3f3f3f #define fast \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
150
#include <stdio.h> int main(int argc, char const *argv[]) { int s, w; scanf("%d%d", &s, &w); printf("%s\n", (s < w) ? "unsafe" : "safe"); return 0; }
#include <stdio.h> int main(int argc, char const *argv[]) { int s, w; scanf("%d%d", &s, &w); printf("%s\n", (s > w) ? "safe" : "unsafe"); return 0; }
[["-", 3, 4, 0, 41, 15, 23, 0, 16, 17, 18], ["+", 3, 4, 0, 41, 15, 23, 0, 16, 17, 47], ["-", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 64, 5, 0, 6], ["-", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6], ["+", 0, 2, 3, 4, 0, 41, 75, 5, 0, 6]]
0
60
/* Simplicity and Goodness */ #include <bits/stdc++.h> using namespace std; #define scn(n) scanf("%d", &n) #define lscn(n) scanf("%lld", &n) #define lpri(n) printf("%lld ", n) #define pri(n) printf("%d ", (int)n) #define prin(n) printf("%d\n", (int)n) #define lprin(n) printf("%lld\n", n) #define deb(x) cout << #x << '...
/* Simplicity and Goodness */ #include <bits/stdc++.h> using namespace std; #define scn(n) scanf("%d", &n) #define lscn(n) scanf("%lld", &n) #define lpri(n) printf("%lld ", n) #define pri(n) printf("%d ", (int)n) #define prin(n) printf("%d\n", (int)n) #define lprin(n) printf("%lld\n", n) #define deb(x) cout << #x << '...
[["-", 0, 2, 3, 4, 0, 41, 15, 16, 17, 47], ["+", 0, 2, 3, 4, 0, 41, 15, 16, 17, 20]]
1
156
// OPTIMIZATONS #pragma GCC optimize("02") // CODE #include <bits/stdc++.h> #define int long long #define float double #define endl "\n" #define debug cout << "Good uptill here" << endl << flush; #define deb(x) cout << #x << ":" << x << endl << flush; using namespace std; int32_t main() { ios_base::sync_with_stdio(...
// OPTIMIZATONS #pragma GCC optimize("02") // CODE #include <bits/stdc++.h> #define int long long #define float double #define endl "\n" #define debug cout << "Good uptill here" << endl << flush; #define deb(x) cout << #x << ":" << x << endl << flush; using namespace std; int32_t main() { ios_base::sync_with_stdio(...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
95
#include <bits/stdc++.h> using namespace std; #define pii pair<int, int> #define ll long long #define s second #define f first int a, b; int main() { cin >> a >> b; if (a < b) { cout << "unsafe"; } else { cout << "safe"; } return 0; }
#include <bits/stdc++.h> using namespace std; #define pii pair<int, int> #define ll long long #define s second #define f first int a, b; int main() { cin >> a >> b; if (a <= b) { cout << "unsafe"; } else { cout << "safe"; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
61
import numpy as np import sys import math s , w = map(int,input().split()) if s >= w : print("safe") else: print("unsafe")
import numpy as np import sys import math s , w = map(int,input().split()) if s > w : print("safe") else: print("unsafe")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]]
5
43
// #pragma GCC optimize("Ofast") // #pragma GCC // target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native") // #pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define FAST ...
// #pragma GCC optimize("Ofast") // #pragma GCC // target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native") // #pragma GCC optimize("unroll-loops") #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define FAST ...
[["-", 0, 16, 12, 23, 0, 41, 15, 16, 17, 47], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 20]]
1
623
/* Author- Aasav Badera Time- Sun Apr 26 17:28:29 2020 */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; struct custom_hash { static uint64_t splitmix64(uint64_t x) { // http://xorshift.di.unimi.it/splitmix64....
/* Author- Aasav Badera Time- Sun Apr 26 17:28:29 2020 */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; struct custom_hash { static uint64_t splitmix64(uint64_t x) { // http://xorshift.di.unimi.it/splitmix64....
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
383
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int a, b; cin >> a >> b; if (a >= b) { cout << "unsafe"; } else { cout << "safe"; } return 0; }
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int a, b; cin >> a >> b; if (a <= b) { cout << "unsafe"; } else { cout << "safe"; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
73
#include <bits/stdc++.h> using namespace std; #define int long long #define ii pair<int, int> #define fi first #define sc second #define set unordered_set #define map unordered_map #define all(x) (x).begin(), (x).end() signed main() { #ifdef _DEBUG freopen("in", "r", stdin); #endif ios::sync_with_stdio(0); cin...
#include <bits/stdc++.h> using namespace std; #define int long long #define ii pair<int, int> #define fi first #define sc second #define set unordered_set #define map unordered_map #define all(x) (x).begin(), (x).end() signed main() { #ifdef _DEBUG freopen("in", "r", stdin); #endif ios::sync_with_stdio(0); cin...
[["-", 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
96
S,W=[int(i) for i in input().split(" ")] if W>=S: print("unsage") else: print("safe")
S,W=[int(i) for i in input().split(" ")] if W>=S: print("unsafe") else: print("safe")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
42
#include <bits/stdc++.h> using namespace std; using lint = long long; constexpr lint mod = 998244353; #define all(x) (x).begin(), (x).end() #define bitcount(n) __builtin_popcountl((lint)(n)) #define fcout cout << fixed << setprecision(15) #define highest(x) (63 - __builtin_clzl(x)) #define rep(i, n) for (int i = 0; i <...
#include <bits/stdc++.h> using namespace std; using lint = long long; constexpr lint mod = 998244353; #define all(x) (x).begin(), (x).end() #define bitcount(n) __builtin_popcountl((lint)(n)) #define fcout cout << fixed << setprecision(15) #define highest(x) (63 - __builtin_clzl(x)) #define rep(i, n) for (int i = 0; i <...
[["-", 0, 57, 64, 9, 0, 1, 0, 16, 17, 151], ["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]]
1
1,104
#include <bits/stdc++.h> using namespace std; const int N = 200005; int s, w; int solve() { scanf("%d %d", &s, &w); if (w >= s) printf("unsafe\n"); else printf("safe\n"); return 0; } int main() { int t; // scanf("%d", &t); for (int tc = 0; tc < t; ++tc) { // printf("Case #%d: ", tc+1); ...
#include <bits/stdc++.h> using namespace std; const int N = 200005; int s, w; int solve() { scanf("%d %d", &s, &w); if (w >= s) printf("unsafe\n"); else printf("safe\n"); return 0; } int main() { int t = 1; // scanf("%d", &t); for (int tc = 0; tc < t; ++tc) { // printf("Case #%d: ", tc+1)...
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
96
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const int N = 2e5 + 9; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int s, w; cin >> s >> w; cout << (w > s ? "unsafe" : "safe"); return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const int N = 2e5 + 9; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int s, w; cin >> s >> w; cout << (w >= s ? "unsafe" : "safe"); return 0; }
[["-", 0, 16, 12, 23, 0, 41, 15, 16, 17, 47], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 20]]
1
70
#include <bits/stdc++.h> /* #include<boost/multiprecision/cpp_int.hpp> namespace mp=boost::multiprecision; */ using namespace std; #define ll long long int #define lo mp::cpp_int #define pb push_back #define pob pop_back //#define mp make_pair #define endl "\n" #define ce(x) cout << x << "\n" #define fill(s, v) memset(...
#include <bits/stdc++.h> /* #include<boost/multiprecision/cpp_int.hpp> namespace mp=boost::multiprecision; */ using namespace std; #define ll long long int #define lo mp::cpp_int #define pb push_back #define pob pop_back //#define mp make_pair #define endl "\n" #define ce(x) cout << x << "\n" #define fill(s, v) memset(...
[["-", 0, 14, 8, 9, 0, 14, 49, 53, 49, 22], ["-", 8, 9, 0, 14, 49, 53, 54, 55, 0, 24], ["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["-", 8, 9, 0, 14, 49, 53, 54, 55, 0, 25], ["-", 0, 14, 8, 9, 0, 14, 8, 9, 0, 45], ["-", 0, 14, 8, 9, 0, 14, 8, 9, 0, 46]]
1
1,515
/* Subarna Lamsal (Subarna578) 26.04.2020 17:22:06 IST */ ///====================== TEMPLATE STARTS HERE =====================/// #include <bits/stdc++.h> using namespace std; //#include <ext/pb_ds/assoc_container.hpp> // Include for built in treap //#include <ext/pb_ds/tree_policy.hpp> // using namespace __...
/* Subarna Lamsal (Subarna578) 26.04.2020 17:22:06 IST */ ///====================== TEMPLATE STARTS HERE =====================/// #include <bits/stdc++.h> using namespace std; //#include <ext/pb_ds/assoc_container.hpp> // Include for built in treap //#include <ext/pb_ds/tree_policy.hpp> // using namespace __...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
892
#include <bits/stdc++.h> #define mp make_pair #define eb emplace_back #define fi first #define se second #define bit(n) 1 << n using namespace std; using cd = complex<double>; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<pair<int, int>> vii; typedef map<int, int> mii; const int Inf = 1000000007;...
#include <bits/stdc++.h> #define mp make_pair #define eb emplace_back #define fi first #define se second #define bit(n) 1 << n using namespace std; using cd = complex<double>; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<pair<int, int>> vii; typedef map<int, int> mii; const int Inf = 1000000007;...
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
173
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() using namespace std; using ll = long long; using vpii = vector<pair<int, int>>; using vpll = vector<pair<ll, ll>>; // ceil() 切り上げ, floor() 切り捨て // next_permutation(all(x)) int main(void) { ...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() using namespace std; using ll = long long; using vpii = vector<pair<int, int>>; using vpll = vector<pair<ll, ll>>; // ceil() 切り上げ, floor() 切り捨て // next_permutation(all(x)) int main(void) { ...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
95
S, W = map(int, input().split()) print('unsafe' if S / 2 <= W else 'safe')
S, W = map(int, input().split()) print('unsafe' if S <= W else 'safe')
[["-", 3, 4, 0, 41, 0, 666, 0, 657, 17, 85], ["-", 3, 4, 0, 41, 0, 666, 0, 657, 12, 612]]
5
32
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> const double PI = acos(-1); using namespace std; typedef long long ll; typedef long double ld; const ll MOD = ll(1e9 + 7); const ll INF = l...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> const double PI = acos(-1); using namespace std; typedef long long ll; typedef long double ld; const ll MOD = ll(1e9 + 7); const ll INF = l...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]]
1
768
from sys import stdin from sys import setrecursionlimit setrecursionlimit(10 ** 7) a,b = map(int,stdin.readline().rstrip().split()) if b <= a: print("unsafe") else: print("safe")
from sys import stdin from sys import setrecursionlimit setrecursionlimit(10 ** 7) a,b = map(int,stdin.readline().rstrip().split()) if b >= a: print("unsafe") else: print("safe")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]]
5
55
#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 rep1(i, n) for (int i = 1; i <= (n); i++) #define rrep1(i, n) for (int i = (n); i > 0; i--) #define ll long long #define pi pair<int, int> #define pll pair<ll, ll> #define MOD 10000000...
#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 rep1(i, n) for (int i = 1; i <= (n); i++) #define rrep1(i, n) for (int i = (n); i > 0; i--) #define ll long long #define pi pair<int, int> #define pll pair<ll, ll> #define MOD 10000000...
[["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
94
#include <bits/stdc++.h> #define DAU \ ios::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define PLEC return 0; using namespac...
#include <bits/stdc++.h> #define DAU \ ios::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define PLEC return 0; using namespac...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
54
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(false); cin.tie(0); int w, s; cin >> s >> w; cout << (w >= s ? "safe" : "unsafe") << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(false); cin.tie(0); int w, s; cin >> s >> w; cout << (w >= s ? "unsafe" : "safe") << endl; }
[["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
60
#include <bits/stdc++.h> using namespace std; inline int ctoi(char c) { if (c < '0' || '9' < c) throw invalid_argument("ctoi error"); return c - '0'; } #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define REP(i, k, n) for (int i = (int)(k); i < (int)(n); i++) #define all(x) (x).begin(), (x).end() tem...
#include <bits/stdc++.h> using namespace std; inline int ctoi(char c) { if (c < '0' || '9' < c) throw invalid_argument("ctoi error"); return c - '0'; } #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define REP(i, k, n) for (int i = (int)(k); i < (int)(n); i++) #define all(x) (x).begin(), (x).end() tem...
[["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
234
#include <bits/stdc++.h> using namespace std; int main() { int S, W; cin >> S >> W; if (W >= (double)S / 2) cout << "unsafe"; else cout << "safe"; cout << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int S, W; cin >> S >> W; if (W >= S) cout << "unsafe"; else cout << "safe"; cout << endl; }
[["-", 15, 339, 51, 16, 12, 16, 31, 74, 0, 24], ["-", 51, 16, 12, 16, 31, 74, 39, 77, 39, 40], ["-", 15, 339, 51, 16, 12, 16, 31, 74, 0, 25], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
51
#include <bits/stdc++.h> using namespace std; #define go(i, a, n) for (ll i = a; i < n; i++) #define gor(i, a, n) for (int i = n - 1; i >= a; i--) #define show(x) cout << x << '\n' #define ll long long #define ull unsigned long long #define ld long double #define pb push_back #define mp make_pair #define mt make_tuple ...
#include <bits/stdc++.h> using namespace std; #define go(i, a, n) for (ll i = a; i < n; i++) #define gor(i, a, n) for (int i = n - 1; i >= a; i--) #define show(x) cout << x << '\n' #define ll long long #define ull unsigned long long #define ld long double #define pb push_back #define mp make_pair #define mt make_tuple ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
850
#include <algorithm> #include <array> #include <atomic> #include <bitset> #include <ccomplex> #include <cctype> #include <cerrno> #include <cfenv> #include <cfloat> #include <chrono> #include <cinttypes> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <complex> #include <condition_var...
#include <algorithm> #include <array> #include <atomic> #include <bitset> #include <ccomplex> #include <cctype> #include <cerrno> #include <cfenv> #include <cfloat> #include <chrono> #include <cinttypes> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <complex> #include <condition_var...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
515
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; constexpr int N = 202020; vector<int> g[N]; int a[N]; int v[N]; stack<int> st[N]; int updated[N]; int ans[N]; void dfs(int cur, int par) { int p = upper_bound(v, v + N, a[cur]) - v; st[p].push(v[p]); v[p] = a[cur]; ans[cur] = lower_bound(v,...
#define _USE_MATH_DEFINES #include <bits/stdc++.h> using namespace std; constexpr int N = 202020; vector<int> g[N]; int a[N]; int v[N]; stack<int> st[N]; int updated[N]; int ans[N]; void dfs(int cur, int par) { int p = lower_bound(v, v + N, a[cur]) - v; st[p].push(v[p]); v[p] = a[cur]; ans[cur] = lower_bound(v,...
[["-", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22]]
1
332
#pragma region Macros #include <bits/stdc++.h> #define SORT(x) sort((x).begin(), (x).end()) #define RSORT(x) sort((x).rbegin(), (x).rend()) #define ALL(x) (x).begin(), (x).end() #define REV(x) reverse(ALL(x)) #define rep(i, n) for (ll i = 0; i < n; i++) #define reps(i, m, n) for (ll i = m; i < n; i++) #define repr(i, m...
#pragma region Macros #include <bits/stdc++.h> #define SORT(x) sort((x).begin(), (x).end()) #define RSORT(x) sort((x).rbegin(), (x).rend()) #define ALL(x) (x).begin(), (x).end() #define REV(x) reverse(ALL(x)) #define rep(i, n) for (ll i = 0; i < n; i++) #define reps(i, m, n) for (ll i = m; i < n; i++) #define repr(i, m...
[["-", 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
1,041
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(obj) (obj).begin(), (obj).end() typedef pair<int, int> P; const int mod = 1e9 + 7; vector<int> dp, ans, a, g[200005]; void dfs(int v, int p = -1) { int i = lower_bound(all(dp), a[v]) - ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(obj) (obj).begin(), (obj).end() typedef pair<int, int> P; const int mod = 1e9 + 7; vector<int> dp, ans, a, g[200005]; void dfs(int v, int p = -1) { int i = lower_bound(all(dp), a[v]) - ...
[["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]]
1
317
#include <algorithm> #include <array> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <...
#include <algorithm> #include <array> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <...
[["-", 8, 9, 0, 43, 49, 50, 51, 69, 28, 22], ["-", 0, 43, 49, 50, 51, 69, 341, 342, 0, 70], ["-", 0, 43, 49, 50, 51, 69, 341, 342, 0, 22], ["-", 0, 43, 49, 50, 51, 69, 341, 342, 0, 73], ["+", 8, 9, 0, 43, 49, 50, 51, 66, 17, 48], ["+", 8, 9, 0, 43, 49, 50, 51, 66, 28, 22]]
1
955
#include <bits/stdc++.h> #define endl '\n' #define pb push_back #define fr first #define sc second #define ll long long int #define bit(idx) idx &(-idx) #define bin(x, a) bitset<a>(x) #define all(A) A.begin(), A.end() #define debug(x) cout << #x << " = " << x << endl; using namespace std; const int MAXN = 2e5 + 5; ll...
#include <bits/stdc++.h> #define endl '\n' #define pb push_back #define fr first #define sc second #define ll long long int #define bit(idx) idx &(-idx) #define bin(x, a) bitset<a>(x) #define all(A) A.begin(), A.end() #define debug(x) cout << #x << " = " << x << endl; using namespace std; const int MAXN = 2e5 + 5; ll...
[["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 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, 25]]
1
595
#include <bits/stdc++.h> using namespace std; typedef long long ll; struct Node { vector<ll> connections; void add(ll n) { connections.push_back(n); } }; vector<ll> A; vector<ll> LIS; vector<Node> Nodes; vector<ll> ANS; void solve(ll n, ll p) { // update ANS, LIS // back LIS ll update_index, previous_value...
#include <bits/stdc++.h> using namespace std; typedef long long ll; struct Node { vector<ll> connections; void add(ll n) { connections.push_back(n); } }; vector<ll> A; vector<ll> LIS; vector<Node> Nodes; vector<ll> ANS; void solve(ll n, ll p) { // update ANS, LIS // back LIS ll update_index, previous_value...
[["-", 0, 1, 0, 11, 12, 69, 341, 342, 0, 13], ["+", 0, 1, 0, 11, 12, 69, 341, 342, 0, 13]]
1
438
#include "algorithm" #include "bitset" #include "cstring" #include "ctime" #include "iomanip" #include "iostream" #include "map" #include "math.h" #include "numeric" #include "queue" #include "set" #include "stack" #include "string" #include "vector" #include "ext/pb_ds/assoc_container.hpp" // Common file #include "ex...
#include "algorithm" #include "bitset" #include "cstring" #include "ctime" #include "iomanip" #include "iostream" #include "map" #include "math.h" #include "numeric" #include "queue" #include "set" #include "stack" #include "string" #include "vector" #include "ext/pb_ds/assoc_container.hpp" // Common file #include "ex...
[["-", 12, 16, 31, 69, 341, 342, 0, 69, 28, 22], ["-", 31, 69, 341, 342, 0, 69, 341, 342, 0, 70], ["-", 31, 69, 341, 342, 0, 69, 341, 342, 0, 22], ["-", 31, 69, 341, 342, 0, 69, 341, 342, 0, 73], ["+", 51, 16, 12, 16, 31, 69, 341, 342, 0, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 1...
1
634
// RAKSHIT KADAM // ALWAYS USE &IT FOR ITERATING USING AUTO ... #include <bits/stdc++.h> // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; // #define ordered_set tree< int , null_type , less<int> , rb_tree_tag , // tree_order_statistics_node_update> #...
// RAKSHIT KADAM // ALWAYS USE &IT FOR ITERATING USING AUTO ... #include <bits/stdc++.h> // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; // #define ordered_set tree< int , null_type , less<int> , rb_tree_tag , // tree_order_statistics_node_update> #...
[["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 64, 1, 0, 11, 31, 69, 341, 342, 0, 22], ["+", 64, 1, 0, 11, 31, 69, 341, 342, 0, 22]]
1
477
package main import ( "bufio" "fmt" "math" "os" "strconv" ) func getScanner(fp *os.File) *bufio.Scanner { scanner := bufio.NewScanner(fp) scanner.Split(bufio.ScanWords) scanner.Buffer(make([]byte, 1000005), 1000005) return scanner } func getNextString(scanner *bufio.Scanner) string { scanner.Scan() return...
package main import ( "bufio" "fmt" "math" "os" "strconv" ) func getScanner(fp *os.File) *bufio.Scanner { scanner := bufio.NewScanner(fp) scanner.Split(bufio.ScanWords) scanner.Buffer(make([]byte, 1000005), 1000005) return scanner } func getNextString(scanner *bufio.Scanner) string { scanner.Scan() return...
[["-", 0, 7, 8, 196, 0, 57, 15, 16, 17, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 16, 17, 20], ["-", 36, 36, 36, 36, 36, 36, 0, 434, 0, 165], ["+", 36, 36, 36, 36, 36, 36, 0, 434, 0, 165]]
7
870
#include <bits/stdc++.h> #define INF 0x7f7f7f7f using namespace std; const int N = 2e5 + 5; vector<int> G[N] = {}; int val[N] = {}; int n; stack<int> ls[N]; int ans[N] = {}; bool ha[N] = {}; int t = 0; int bs(int x) { int l = 1, r = t, mid; while (l <= r) { mid = (l + r) >> 1; if (ls[mid].top() <= x) ...
#include <bits/stdc++.h> #define INF 0x7f7f7f7f using namespace std; const int N = 2e5 + 5; vector<int> G[N] = {}; int val[N] = {}; int n; stack<int> ls[N]; int ans[N] = {}; bool ha[N] = {}; int t = 0; int bs(int x) { int l = 1, r = t, mid; while (l <= r) { mid = (l + r) >> 1; if (ls[mid].top() < x) l...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
442
#include <bits/stdc++.h> // __builtin_ctz : no of trailing zeros #define int long long #define ll long long #define pp pair<int, int> #define mod 1000000007 #define trace(x) cerr << #x << ": " << x << " " << endl #define trace2(x, y) cerr << #x << ": " << x << " | " << #y << ": " << y << endl #define trace3(x, y, z) ...
#include <bits/stdc++.h> // __builtin_ctz : no of trailing zeros #define int long long #define ll long long #define pp pair<int, int> #define mod 1000000007 #define trace(x) cerr << #x << ": " << x << " " << endl #define trace2(x, y) cerr << #x << ": " << x << " | " << #y << ": " << y << endl #define trace3(x, y, z) ...
[["-", 0, 43, 49, 50, 51, 2, 63, 118, 119, 120], ["+", 0, 43, 49, 50, 51, 2, 63, 118, 119, 120], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 27, 17, 29]]
1
491
#include <bits/stdc++.h> using namespace std; typedef long long ll; vector<int> g[200005]; int a[200005], b[200005], f[200005], c[200005], root[200006], tot, n; int ls[4000005], rs[4000005], mx[4000005], ans[200005]; int Query(int p, int l, int r, int x) { if (!p || !x) return 0; if (r <= x) return mx[p]; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; vector<int> g[200005]; int a[200005], b[200005], f[200005], root[200006], tot, n; int ls[4000005], rs[4000005], mx[4000005], ans[200005]; int Query(int p, int l, int r, int x) { if (!p || !x) return 0; if (r <= x) return mx[p]; int mid = ...
[["-", 36, 36, 0, 30, 0, 43, 49, 80, 49, 22], ["-", 36, 36, 0, 30, 0, 43, 49, 80, 0, 70], ["-", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13], ["-", 36, 36, 0, 30, 0, 43, 49, 80, 0, 73], ["-", 36, 36, 36, 36, 0, 30, 0, 43, 0, 21], ["-", 0, 11, 12, 2, 3, 4, 0, 69, 28, 22], ["+", 0, 11, 12, 2, 3, 4, 0, 69, 28, 22]]
1
615
/***************************************** START OF TEMPLATE * *********************************************/ #include <bits/stdc++.h> using namespace std; #define SPEED \ ios::sync_with_stdio(0); \...
/***************************************** START OF TEMPLATE * *********************************************/ #include <bits/stdc++.h> using namespace std; #define SPEED \ ios::sync_with_stdio(0); \...
[["-", 36, 36, 36, 36, 0, 30, 0, 43, 0, 21], ["-", 36, 36, 0, 30, 0, 43, 49, 80, 49, 22], ["-", 36, 36, 0, 30, 0, 43, 49, 80, 0, 70], ["-", 36, 36, 0, 30, 0, 43, 49, 80, 81, 22], ["-", 36, 36, 0, 30, 0, 43, 49, 80, 0, 73], ["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 25], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0...
1
850
#include <bits/stdc++.h> #include <stdlib.h> using namespace std; typedef long long ll; typedef vector<ll> vec; typedef vector<vec> mat; typedef pair<ll, ll> P; typedef priority_queue<P, vector<P>, greater<P>> P_queue; #define REP(i, a, b) for (int i = (int)a; i < (int)b; i++) #define rep(i, n) REP(i, 0, n) #define pb...
#include <bits/stdc++.h> #include <stdlib.h> using namespace std; typedef long long ll; typedef vector<ll> vec; typedef vector<vec> mat; typedef pair<ll, ll> P; typedef priority_queue<P, vector<P>, greater<P>> P_queue; #define REP(i, a, b) for (int i = (int)a; i < (int)b; i++) #define rep(i, n) REP(i, 0, n) #define pb...
[["-", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 2, 63, 22]]
1
619
#include <bits/stdc++.h> using namespace std; #define eb emplace_back #define ii pair<int, int> #define OK (cerr << "OK" << endl) #define debug(x) cerr << #x " = " << (x) << endl #define ff first #define ss second #define int long long #define tt tuple<int, int, int, int> #define all(x) x.begin(), x.end() #define Mat...
#include <bits/stdc++.h> using namespace std; #define eb emplace_back #define ii pair<int, int> #define OK (cerr << "OK" << endl) #define debug(x) cerr << #x " = " << (x) << endl #define ff first #define ss second #define int long long #define tt tuple<int, int, int, int> #define all(x) x.begin(), x.end() #define Mat...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
443
from heapq import * import sys from collections import * from itertools import * from decimal import * import copy from bisect import * import math sys.setrecursionlimit(4100000) def gcd(a,b): if(a%b==0):return(b) return (gcd(b,a%b)) input=lambda :sys.stdin.readline().rstrip() N=int(input()) A=list(map(int,inp...
from heapq import * import sys from collections import * from itertools import * from decimal import * import copy from bisect import * import math sys.setrecursionlimit(4100000) def gcd(a,b): if(a%b==0):return(b) return (gcd(b,a%b)) input=lambda :sys.stdin.readline().rstrip() N=int(input()) A=list(map(int,inp...
[["-", 75, 76, 8, 196, 0, 1, 0, 666, 667, 60], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32]]
5
505
#include <bits/stdc++.h> using namespace std; const int MAXN = 200005; struct LIS { const int INF = 2e9; vector<pair<int, int>> history; int ans[MAXN]; LIS() { for (int i = 0; i < MAXN; i++) { ans[i] = INF; } ans[0] = -INF; history.clear(); } void Insert(int x) { int lb = uppe...
#include <bits/stdc++.h> using namespace std; const int MAXN = 200005; struct LIS { const int INF = 2e9; vector<pair<int, int>> history; int ans[MAXN]; LIS() { for (int i = 0; i < MAXN; i++) { ans[i] = INF; } ans[0] = -INF; history.clear(); } void Insert(int x) { int lb = lowe...
[["-", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22]]
1
410
/* Charlotteまだ見てない人は見ような!!!!!!! /  /:/              \:ヽ \         /  /                     \  ヽ      \__L 彡                    ヽ  ',        フ /   /  /  /   ,         ヽ  ',  j        レ    /  /  /                ',  ヽ j         //     ! /_l_/__ノ   { \}       ',  ',/       ...
/* Charlotteまだ見てない人は見ような!!!!!!! /  /:/              \:ヽ \         /  /                     \  ヽ      \__L 彡                    ヽ  ',        フ /   /  /  /   ,         ヽ  ',  j        レ    /  /  /                ',  ヽ j         //     ! /_l_/__ノ   { \}       ',  ',/       ...
[["+", 49, 50, 51, 69, 341, 342, 0, 69, 28, 22], ["+", 51, 69, 341, 342, 0, 69, 341, 342, 0, 70], ["+", 51, 69, 341, 342, 0, 69, 341, 342, 0, 73]]
1
1,954
#include <bits/stdc++.h> using namespace std; typedef int64_t Int; #define fi first #define se second #define all(x) (x).begin(), (x).end() const double EPS = 1e-10; const Int INF = 1e18; const int inf = 1e9; const Int mod = 1e9 + 7; bool print_space_enable = false; void print() { cout << endl; print_space_enabl...
#include <bits/stdc++.h> using namespace std; typedef int64_t Int; #define fi first #define se second #define all(x) (x).begin(), (x).end() const double EPS = 1e-10; const Int INF = 1e18; const int inf = 1e9; const Int mod = 1e9 + 7; bool print_space_enable = false; void print() { cout << endl; print_space_enabl...
[["-", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22]]
1
501
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const ll inf = 1e9; const ll MAXN = 2e5 + 5; vector<vector<ll>> adj(MAXN, vector<ll>()); vector<ll> d(MAXN, inf), a(MAXN); vector<ll> ans(MAXN, 1); void dfs(ll u, ll p) { for (auto to : adj[u]) { if (to != p) { ll tmp = -1; i...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const ll inf = 1e9; const ll MAXN = 2e5 + 5; vector<vector<ll>> adj(MAXN, vector<ll>()); vector<ll> d(MAXN, inf), a(MAXN); vector<ll> ans(MAXN, 1); void dfs(ll u, ll p) { for (auto to : adj[u]) { if (to != p) { ll tmp = -1; i...
[["+", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46]]
1
387
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> #define MOD 1000000007 #define INF 1e10 #define MIN -1001001001 #define rep(i, k, N) for (int i = k; i < N; i++) #define MP m...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <vector> #define MOD 1000000007 #define INF 1e10 #define MIN -1001001001 #define rep(i, k, N) for (int i = k; i < N; i++) #define MP m...
[["-", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22]]
1
381
#include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <set> #include <string> #include <vector> using namespace std; #define LL long long const int dx[4] = {1, -1, 0, 0}; const int dy[4] = {0, 0, 1, -1}; LL mod(LL x, LL md) { return ((x % md) + md) ...
#include <algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <set> #include <string> #include <vector> using namespace std; #define LL long long const int dx[4] = {1, -1, 0, 0}; const int dy[4] = {0, 0, 1, -1}; LL mod(LL x, LL md) { return ((x % md) + md) ...
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 14, 8, 9, 0, 37, 0, 16, 17, 33], ["+", 0, 14, 8, 9, 0, 37, 0, 16, 12, 13]]
1
2,221
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef long long int lli; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<lli> vli; typedef vector<pii> vii; typedef tree<int, null_type, less<int>, rb_tree_tag, tree_orde...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using namespace std; typedef long long int lli; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<lli> vli; typedef vector<pii> vii; typedef tree<int, null_type, less<int>, rb_tree_tag, tree_orde...
[["-", 0, 43, 49, 50, 51, 2, 63, 118, 119, 120], ["+", 0, 43, 49, 50, 51, 2, 63, 118, 119, 120], ["+", 8, 9, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 27, 17, 29]]
1
1,038