buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <bits/stdc++.h> using namespace std; #define for_(i, a, b) for (int i = a; i < b; ++i) #define ALL(a) a.begin(), a.end() #define INIT(a, b) memset(a, b, sizeof(a)) using lint = long long int; int main() { int S, W; cin >> S >> W; puts(S <= 2 * W ? "unsafe" : "safe"); }
#include <bits/stdc++.h> using namespace std; #define for_(i, a, b) for (int i = a; i < b; ++i) #define ALL(a) a.begin(), a.end() #define INIT(a, b) memset(a, b, sizeof(a)) using lint = long long int; int main() { int S, W; cin >> S >> W; puts(S <= W ? "unsafe" : "safe"); }
[["-", 3, 4, 0, 41, 15, 16, 12, 16, 31, 13], ["-", 3, 4, 0, 41, 15, 16, 12, 16, 17, 48]]
1
71
#include <algorithm> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <math.h> #include <queue> #include <set> #include <string.h> #include <string> #include <utility> #include <vector> #define rep(i, n) for (int i = 0; i < n; ++i) #...
#include <algorithm> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <math.h> #include <queue> #include <set> #include <string.h> #include <string> #include <utility> #include <vector> #define rep(i, n) for (int i = 0; i < n; ++i) #...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
220
#include <iostream> using namespace std; int main() { long int s, w; cin >> s >> w; if (w > s) cout << "unsafe"; else cout << "safe"; return 0; }
#include <iostream> using namespace std; int main() { long int s, w; cin >> s >> w; if (w >= s) cout << "unsafe"; else cout << "safe"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
46
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); final int S = in.nextInt(); final int W = in.nextInt(); System.out.println((W >= S) ? "usafe" : "safe"); } }
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); final int S = in.nextInt(); final int W = in.nextInt(); System.out.println((W >= S) ? "unsafe" : "safe"); } }
[["-", 0, 492, 3, 4, 0, 510, 64, 5, 0, 491], ["+", 0, 492, 3, 4, 0, 510, 64, 5, 0, 491]]
3
76
#include <bits/stdc++.h> using namespace std; using i64 = long long; #define endl "\n" int main() { i64 S, W; cin >> S >> W; if (W * 2 < S) cout << "safe" << endl; else cout << "unsafe" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; using i64 = long long; #define endl "\n" int main() { i64 S, W; cin >> S >> W; if (W < S) cout << "safe" << endl; else cout << "unsafe" << endl; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]]
1
60
#include <stdio.h> int main() { int s, w; scanf("%d %d"); if (w >= s) printf("unsafe\n"); else printf("safe\n"); return 0; }
#include <stdio.h> int main() { int s, w; scanf("%d %d", &s, &w); if (w >= s) printf("unsafe\n"); else printf("safe\n"); return 0; }
[["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]]
0
46
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; if (s < w) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } return 0; }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; if (s > w) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
55
#include <bits/stdc++.h> using namespace std; int main() { long long n, k; cin >> n, k; if (n <= k) cout << "safe" << endl; else cout << "unsafe" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long n, k; cin >> n >> k; if (n <= k) cout << "unsafe" << endl; else cout << "safe" << endl; return 0; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 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
50
#include <algorithm> #include <iostream> #include <list> #include <math.h> #include <string> #include <vector> using namespace std; // 最大公約数 long long gcd(long long a, long long b) { if (a < 0) a = -a; if (b < 0) b = -b; if (b == 0) return a; else return gcd(b, a % b); } // 最小公倍数 long long lc...
#include <algorithm> #include <iostream> #include <list> #include <math.h> #include <string> #include <vector> using namespace std; // 最大公約数 long long gcd(long long a, long long b) { if (a < 0) a = -a; if (b < 0) b = -b; if (b == 0) return a; else return gcd(b, a % b); } // 最小公倍数 long long lc...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
153
import sys, os if __name__ == '__main__': l = sys.stdin.readline() s, w = [ float(v) for v in l.split() ] if w >= (s/2): print("unsafe") else: print("safe")
import sys, os if __name__ == '__main__': l = sys.stdin.readline() s, w = [ float(v) for v in l.split() ] if w >= s: print("unsafe") else: print("safe")
[["-", 64, 196, 0, 57, 15, 666, 0, 23, 0, 24], ["-", 0, 57, 15, 666, 0, 23, 0, 657, 17, 85], ["-", 0, 57, 15, 666, 0, 23, 0, 657, 12, 612], ["-", 64, 196, 0, 57, 15, 666, 0, 23, 0, 25]]
5
61
arg = list(map(int, input().split())) if arg[0] < arg[1]: print('unsafe') else: print('safe')
arg = list(map(int, input().split())) if arg[0] <= arg[1]: print('unsafe') else: print('safe')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
42
s, w = map(int, input().split()) if s >= w: print("safe") elif s <= w: print("unsafe") elif s == w: print("unsafe")
s, w = map(int, input().split()) if s == w: print("unsafe") elif s <= w: print("unsafe") elif s >= w: print("safe")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 20]]
5
49
#include <bits/stdc++.h> using namespace std; #define ll long long #define REP(i, n) for (ll i = 0; i < n; ++i) #define FOR(i, j, n) for (ll i = j; i < n; ++i) #define MOD (1e9 + 7) int main(void) { ll S, W; cin >> S >> W; if (W >= S) { cout << 'unsafe' << endl; } else { cout << 'safe' << endl; } }
#include <bits/stdc++.h> using namespace std; #define ll long long #define REP(i, n) for (ll i = 0; i < n; ++i) #define FOR(i, j, n) for (ll i = j; i < n; ++i) #define MOD (1e9 + 7) int main(void) { ll S, W; cin >> S >> W; if (W >= S) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125], ["-", 0, 16, 31, 16, 12, 103, 0, 42, 0, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
77
#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
51
#include <bits/stdc++.h> #define rep(l, r) for (int i = (l); i < (r); i++) typedef long long ll; using namespace std; void solve() { int s, w; cin >> s >> w; cout << ((s / 2) <= w ? "unsafe" : "safe") << endl; } int main() { solve(); return 0; }
#include <bits/stdc++.h> #define rep(l, r) for (int i = (l); i < (r); i++) typedef long long ll; using namespace std; void solve() { int s, w; cin >> s >> w; cout << (s <= w ? "unsafe" : "safe") << endl; } int main() { solve(); return 0; }
[["-", 12, 23, 0, 41, 15, 16, 31, 23, 0, 24], ["-", 0, 41, 15, 16, 31, 23, 0, 16, 17, 85], ["-", 0, 41, 15, 16, 31, 23, 0, 16, 12, 13], ["-", 12, 23, 0, 41, 15, 16, 31, 23, 0, 25]]
1
71
#include <iostream> using namespace std; int main() { int s, w; cin >> s; cin >> w; if (w >= s) cout << "insafe" << endl; else cout << "safe" << endl; return 0; }
#include <iostream> using namespace std; int main() { int s, w; cin >> s; cin >> w; if (w >= s) cout << "unsafe" << endl; else cout << "safe" << endl; return 0; }
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
51
#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 (S > W) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
50
#include <bits/stdc++.h> using namespace std; int main() { int s; int w; cin >> s >> w; if (s <= w) cout << "usafe"; else cout << "safe"; }
#include <bits/stdc++.h> using namespace std; int main() { int s; int w; cin >> s >> w; if (s <= w) cout << "unsafe"; else cout << "safe"; }
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]]
1
43
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { int S, W; cin >> S >> W; string Answer = "unsafe"; if (W >= S) { Answer = "safe"; } cout << Answer << endl; }
#include <algorithm> #include <iostream> #include <string> using namespace std; int main() { int S, W; cin >> S >> W; string Answer = "safe"; if (W >= S) { Answer = "unsafe"; } cout << Answer << endl; }
[["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
54
import numpy as np from collections import defaultdict from math import gcd import time import sys from collections import Counter read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines start = time.time() N, M = map(int, input().split(' ')) if N < M: print('safe') ...
import numpy as np from collections import defaultdict from math import gcd import time import sys from collections import Counter read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines start = time.time() N, M = map(int, input().split(' ')) if N > M: print('safe') ...
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]]
5
92
#include <stdio.h> int main() { int S, W; scanf("%d\n", &S, &W); if (W >= S) printf("unsafe"); else printf("safe"); return (0); }
#include <stdio.h> int main() { int S, W; scanf("%d %d\n", &S, &W); if (W >= S) 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], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
53
#include <bits/stdc++.h> using namespace std; int main() { int S, N; cin >> S >> N; if (S >= N) cout << "unsafe" << endl; else cout << "safe" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int S, N; cin >> S >> N; if (S <= N) 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
46
s,w = map(int,input().split()) print("unsafe" if w > s//2 else "safe")
s,w = map(int,input().split()) print("unsafe" if w >= s else "safe")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 47], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 20], ["-", 3, 4, 0, 41, 0, 666, 0, 657, 17, 676], ["-", 3, 4, 0, 41, 0, 666, 0, 657, 12, 612]]
5
32
import java.io.*; public class Main { final static long MOD = 1000000007; public static String[] Ws = null; public static int wsIndx = 0; public static BufferedReader in = null; public static void main(String[] args) throws Exception { int S = nextInt(); int W = nextInt(); if ((S + 1) / 2 <= W)...
import java.io.*; public class Main { final static long MOD = 1000000007; public static String[] Ws = null; public static int wsIndx = 0; public static BufferedReader in = null; public static void main(String[] args) throws Exception { int S = nextInt(); int W = nextInt(); if (S <= W) { S...
[["-", 15, 15, 0, 16, 31, 16, 31, 23, 0, 24], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 17, 72], ["-", 0, 16, 31, 16, 31, 23, 0, 16, 12, 499], ["-", 15, 15, 0, 16, 31, 16, 31, 23, 0, 25], ["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 15, 0, 16, 31, 16, 12, 499]]
3
488
#include <stdio.h> int main() { int a, b; scanf("%d,%d", &a, &b); if (a > b) { printf("safe\n"); } else { printf("unsafe\n"); } return 0; }
#include <stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); if (a > b) { printf("safe\n"); } else { printf("unsafe\n"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
56
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); if (2 * a > b) { printf("safe"); } else { printf("unsafe"); } return 0; }
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); if (a > b) { printf("safe"); } else { printf("unsafe"); } return 0; }
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 31, 13], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 48]]
0
56
s, w = input().split() s = int(s) w = int(w) if s < w: print("unsafe") else : print("safe")
s, w = input().split() s = int(s) w = int(w) if s <= w: print("unsafe") else : print("safe")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
42
arr = input().split(" ") S = arr[0] W = arr[1] if W < S: print('safe') else: print('unsafe')
arr = input().split(" ") S = int(arr[0]) W = int(arr[1]) if W < S: print('safe') else: print('unsafe')
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
43
#include <iostream> int main(void) { int S, W; std::cin >> S >> W; if (S > 2 * W) std::cout << "safe" << std::endl; else std::cout << "unsafe" << std::endl; return 0; }
#include <iostream> int main(void) { int S, W; std::cin >> S >> W; if (S > W) std::cout << "safe" << std::endl; else std::cout << "unsafe" << std::endl; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]]
1
58
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> w >> w; if (w >= s) cout << "unsafe\n"; else cout << "safe\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; if (w >= s) cout << "unsafe\n"; else cout << "safe\n"; return 0; }
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
47
#include <bits/stdc++.h> using namespace std; int main() { int A, B; cin >> A >> B; if (A < B) cout << "unsafe"; if (A >= B) cout << "safe"; }
#include <bits/stdc++.h> using namespace std; int main() { int A, B; cin >> A >> B; if (A <= B) cout << "unsafe"; if (A > B) cout << "safe"; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
47
#include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; cout << (w > s ? "unsafe" : "safe"); return 0; }
#include <iostream> using namespace std; int main() { 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
42
#include <bits/stdc++.h> using namespace std; 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; int main() { int s, w; cin >> s >> w; if (w >= s) cout << "unsafe"; else cout << "safe"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
45
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define ent cout << "\n" #define pb push_back #define mp make_pair #define sz(x) x.size() #define pair <ll, ll> pp #define f(a, b) for (auto i = a; i < b; i++) #define rev_f(a, b) for (auto i = b; i >= a; i--) #define fastio() ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define ent cout << "\n" #define pb push_back #define mp make_pair #define sz(x) x.size() #define pair <ll, ll> pp #define f(a, b) for (auto i = a; i < b; i++) #define rev_f(a, b) for (auto i = b; i >= a; i--) #define fastio() ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
380
#include <bits/stdc++.h> using namespace std; using P = pair<int, int>; using G = vector<vector<int>>; 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; using P = pair<int, int>; using G = vector<vector<int>>; int main() { int s, w; cin >> s >> w; if (w >= s) cout << "unsafe" << endl; else cout << "safe" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
67
from math import factorial as fact import math import fractions import sys import itertools import numpy as np from collections import Counter import datetime #入力:N(int:整数) def input1(): return int(input()) #入力:N,M(int:整数) def input2(): return map(int,input().split()) #入力:[n1,n2,...nk](int:整数配列) def input_array(): ...
from math import factorial as fact import math import fractions import sys import itertools import numpy as np from collections import Counter import datetime #入力:N(int:整数) def input1(): return int(input()) #入力:N,M(int:整数) def input2(): return map(int,input().split()) #入力:[n1,n2,...nk](int:整数配列) def input_array(): ...
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]]
5
418
#include <iostream> using namespace std; long long int S, W; int main(void) { cin >> S >> W; if (2 * W < S) cout << "safe" << endl; else cout << "unsafe" << endl; return 0; }
#include <iostream> using namespace std; long long int S, W; int main(void) { cin >> S >> W; if (W < S) cout << "safe" << endl; else cout << "unsafe" << endl; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 13], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48]]
1
54
num=list(map(int,input().split())) if num[0]>=num[1]: print("safe") else: print("unsafe")
num=list(map(int,input().split())) if num[0]>num[1]: 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
42
#include <cstdio> int main() { int s, w; scanf("%d%d", &s, &w); if (s >= w) printf("safe"); else printf("unsafe"); }
#include <cstdio> int main() { int s, w; scanf("%d%d", &s, &w); if (s > w) printf("safe"); else printf("unsafe"); }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
47
S,W=map(int,input().split()) print('unsafe') if S<W else print('safe')
S,W=map(int,input().split()) 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
33
S, W = map(int, input().split()) print("unsafe" if S < W else "safe")
S, W = map(int, input().split()) print("unsafe" if S <=W else "safe")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 19]]
5
30
#include <stdio.h> int main() { int W, S; scanf("%d %d", &S, &W); if (W >= S) { printf("unsafe"); } else { printf("unsafe"); } return 0; }
#include <stdio.h> int main() { int W, S; scanf("%d %d", &S, &W); if (W >= S) { printf("unsafe"); } else { printf("safe"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
54
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll n, k; cin >> n >> k; n < k ? cout << "unsafe\n" : cout << "safe\n"; return 0; }
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { ll n, k; cin >> n >> k; k >= n ? cout << "unsafe\n" : cout << "safe\n"; return 0; }
[["-", 8, 9, 0, 1, 0, 41, 15, 16, 31, 22], ["-", 8, 9, 0, 1, 0, 41, 15, 16, 17, 18], ["+", 8, 9, 0, 1, 0, 41, 15, 16, 17, 20], ["+", 8, 9, 0, 1, 0, 41, 15, 16, 12, 22]]
1
47
# coding: utf-8 S, W = map(float, input().split()) if (W <= S): print('safe') else: print('unsafe')
# coding: utf-8 S, W = map(float, input().split()) if (W < S): print('safe') else: print('unsafe')
[["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 19], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 18]]
5
38
line = input().split(" ") if line[0]>line[1]: print("safe") else: print("unsafe")
line = input().split(" ") if int(line[0])>int(line[1]): print("safe") else: print("unsafe")
[["+", 0, 656, 0, 57, 15, 666, 0, 652, 63, 22], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 57, 15, 666, 0, 652, 3, 4, 0, 25]]
5
37
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int s, w; cin >> s >> w; if (w > s) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int s, w; cin >> s >> w; if (w >= s) { 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
56
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pl; #define all(a) (a).begin(), (a).end() #define overload4(_1, _2, _3, _4, name, ...) name #define rep1(n) for (ll i = 0; i < (n); i++) #define rep2(i, n) for (ll i = 0; i < (n); i++) #define rep3(i, a, b) for (ll i = (a); i < (b)...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pl; #define all(a) (a).begin(), (a).end() #define overload4(_1, _2, _3, _4, name, ...) name #define rep1(n) for (ll i = 0; i < (n); i++) #define rep2(i, n) for (ll i = 0; i < (n); i++) #define rep3(i, a, b) for (ll i = (a); i < (b)...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
373
#include <cmath> #include <iostream> #include <vector> using namespace std; int main(void) { // Your code here! double S, W; cin >> S >> W; cout << (((S / 2) <= W) ? "unsafe" : "safe") << endl; }
#include <cmath> #include <iostream> #include <vector> using namespace std; int main(void) { // Your code here! double S, W; cin >> S >> W; cout << ((S <= W) ? "unsafe" : "safe") << endl; }
[["-", 0, 41, 15, 23, 0, 16, 31, 23, 0, 24], ["-", 15, 23, 0, 16, 31, 23, 0, 16, 17, 85], ["-", 15, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["-", 0, 41, 15, 23, 0, 16, 31, 23, 0, 25]]
1
53
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { ...
#include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
423
def main(): s,w = map(int, input().split()) if s > w: print('safe') else: print('unsefe') if __name__ == "__main__": main()
def main(): s,w = map(int, input().split()) if s > w: print('safe') else: print('unsafe') 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
nums = input().split() S = int(nums[0]) W = int(nums[1]) if (S < W ): print("unsafe") else: print("safe")
nums = input().split() S = int(nums[0]) W = int(nums[1]) if (S > W ): print("safe") else: print("unsafe")
[["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 47], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
48
s, w = input().split(' ') s = int(s) w = int(w) if s > w : print('safe') else: pritn('unsafe')
s, w = input().split(' ') s = int(s) w = int(w) if s > w : print('safe') else: print('unsafe')
[["-", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22]]
5
45
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; i++) #define RFOR(i, a, n) for (ll i = (ll)n - 1; i >= (ll)a; i--) #define rep(i, n) FOR(i, 0, n) #define rrep(i, n) RFOR(i, 0, n) #define ALL(v) v.begin(), v.end() #define bra(first, second) '(' << fi...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; i++) #define RFOR(i, a, n) for (ll i = (ll)n - 1; i >= (ll)a; i--) #define rep(i, n) FOR(i, 0, n) #define rrep(i, n) RFOR(i, 0, n) #define ALL(v) v.begin(), v.end() #define bra(first, second) '(' << fi...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
180
#include <bits/stdc++.h> using namespace std; const int mod = 1e9 + 7; const int INF = 0x3f3f3f3f; const int N = 100005; #define ll long long int cmp(int a, int b) { return a > b; } int gcd(int x, int y) { while (y ^= x ^= y ^= x %= y) ; return x; } int main() { int n, k; cin >> n >> k; if (n < k) cou...
#include <bits/stdc++.h> using namespace std; const int mod = 1e9 + 7; const int INF = 0x3f3f3f3f; const int N = 100005; #define ll long long int cmp(int a, int b) { return a > b; } int gcd(int x, int y) { while (y ^= x ^= y ^= x %= y) ; return x; } int main() { int n, k; cin >> n >> k; if (n <= k) co...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
111
#include <stdio.h> int main(void) { int s, w; scanf("%d %d", &s, &w); if (w > s) { printf("unsafe"); } else { printf("safe"); } }
#include <stdio.h> int main(void) { 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
52
def main(): s, w = map(int, input().split()) if w >= 0: 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()
[["-", 0, 14, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 14, 8, 196, 0, 57, 15, 666, 0, 22]]
5
50
a,b = input().split() print("safe" if a>b else "unsafe")
a,b = map(int,input().split()) print("safe" if a>b else "unsafe")
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
25
S, W = map(int, input().split()) if S <= W*2: print('unsafe') else: print('safe')
S, W = map(int, input().split()) if S <= W: print('unsafe') else: print('safe')
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 48], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]]
5
37
#include <bits/stdc++.h> using namespace std; int main() { int S, W = 0; cin >> S >> W; if (S <= W * 2) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int S, W = 0; cin >> S >> W; if (S <= W) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
57
#include <iostream> using namespace std; int main() { double s, w; cin >> s >> w; if (s >= w * 2) { 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; } }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
52
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines def main(): S, W = map(int, read().split()) print('safe' if S < W else 'unsafe') return if __name__ == '__main__': main()
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines def main(): S, W = map(int, read().split()) print('safe' if S > W else 'unsafe') return if __name__ == '__main__': main()
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 47]]
5
75
a,b=(int(i)for i in input().split()) print("unsafe" if a<b else "safe")
a,b=(int(i)for i in input().split()) print("unsafe" if a<=b else "safe")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 19]]
5
34
S,W = list(map(int,input().split())) if S < W: print("unsafe") else: print("safe")
S,W = list(map(int,input().split())) if S <= W: print("unsafe") else: print("safe")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
38
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; #define rep(i, a, b) for (ll i = a; i < b; i++) #define ml cout << endl #define pii pair<ll, ll> #define vi vector<ll> #define vii vector<pii> #define mi map<ll, ll> #define all(a) (a).begin(), (a).end() #define pb push_ba...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; #define rep(i, a, b) for (ll i = a; i < b; i++) #define ml cout << endl #define pii pair<ll, ll> #define vi vector<ll> #define vii vector<pii> #define mi map<ll, ll> #define all(a) (a).begin(), (a).end() #define pb push_ba...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
176
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int s = sc.nextInt(); int w = sc.nextInt(); String ans = ""; if (s >= w) { ans = "safe"; } else { ans = "unsafe"; } System.out.println(ans); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int s = sc.nextInt(); int w = sc.nextInt(); String ans = ""; if (s > w) { ans = "safe"; } else { ans = "unsafe"; } System.out.println(ans); } }
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47]]
3
91
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; if (w > s) { cout << "safe"; } if (s <= w) { cout << "unsafe"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; if (w < s) { cout << "safe"; } if (s <= w) { cout << "unsafe"; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
54
#pragma warning(disable : 6031) #include <algorithm> #include <map> #include <math.h> #include <queue> #include <stdio.h> #include <string> #include <vector> int minimum(int a, int b) { return a < b ? a : b; } int maximum(int a, int b) { return a > b ? a : b; } const long long mod = 1000000007; // const long long mod ...
#pragma warning(disable : 6031) #include <algorithm> #include <map> #include <math.h> #include <queue> #include <stdio.h> #include <string> #include <vector> int minimum(int a, int b) { return a < b ? a : b; } int maximum(int a, int b) { return a > b ? a : b; } const long long mod = 1000000007; // const long long mod ...
[["-", 0, 2, 3, 4, 0, 41, 15, 16, 17, 18], ["+", 0, 2, 3, 4, 0, 41, 15, 16, 17, 19]]
1
126
#include <iostream> using namespace std; int main() { long int s, w; cin >> s >> w; if (s >= w) cout << "unsafe" << endl; else cout << "safe" << endl; }
#include <iostream> using namespace std; int main() { long int s, w; cin >> s >> w; if (w >= s) cout << "unsafe" << endl; else cout << "safe" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
47
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string.h> #include <string> #include <vector> using namespace std; // #define for(i,a,b) for (int i=(a);i<(b);++i) typedef long long ll; typedef pair<ll, ll> P; #defin...
#include <algorithm> #include <bitset> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string.h> #include <string> #include <vector> using namespace std; // #define for(i,a,b) for (int i=(a);i<(b);++i) typedef long long ll; typedef pair<ll, ll> P; #defin...
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
111
#include <bits/stdc++.h> using namespace std; typedef long long ll; // template<class itr> void cins(itr first, itr last){ for(auto i = first; i != // last; i++){ cin >> (*i); } } /* string S_str[H]; cins(S_str, S_str + H); S_str[i][j]; */ inline int at(ll x, int k) { return (x >> k) & 1; } #define rep(i, n) for (ll i ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; // template<class itr> void cins(itr first, itr last){ for(auto i = first; i != // last; i++){ cin >> (*i); } } /* string S_str[H]; cins(S_str, S_str + H); S_str[i][j]; */ inline int at(ll x, int k) { return (x >> k) & 1; } #define rep(i, n) for (ll i ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 13], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48]]
1
90
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <set> #include <string> #include <vector> #define ll long long #define rep(i, n) for (ll i = 0; i < n; ++i) #define rep1(i, n) for (ll i = 1; i < n; ++i) #define mrep(i, n) for (ll i = n; i >= 0; --i...
#include <algorithm> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <set> #include <string> #include <vector> #define ll long long #define rep(i, n) for (ll i = 0; i < n; ++i) #define rep1(i, n) for (ll i = 1; i < n; ++i) #define mrep(i, n) for (ll i = n; i >= 0; --i...
[["-", 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
120
#include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <iostream> #include <map> #include <stdio.h> #include <string> #include <vector> #define INF INT_MAX using namespace std; int N, M; int A, B, C; int sum, ans; string S; int main() { cin >> A >> B; if ((A / 2) <= B) { cout << ...
#include <algorithm> #include <cctype> #include <climits> #include <cmath> #include <iostream> #include <map> #include <stdio.h> #include <string> #include <vector> #define INF INT_MAX using namespace std; int N, M; int A, B, C; int sum, ans; string S; int main() { cin >> A >> B; if (A <= B) { cout << "unsaf...
[["-", 0, 57, 15, 339, 51, 16, 31, 23, 0, 24], ["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 85], ["-", 15, 339, 51, 16, 31, 23, 0, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25]]
1
91
#include <iostream> using namespace std; int main() { int s, w; scanf("%d %d", &s, &w); if (s < w) printf("unsafe\n"); else printf("safe\n"); return 0; }
#include <iostream> using namespace std; int main() { int s, w; scanf("%d %d", &s, &w); if (s > w) printf("safe\n"); else printf("unsafe\n"); return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 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, 6]]
1
56
#include <algorithm> #include <cstdint> #include <cstdlib> #include <iomanip> #include <iostream> template <typename T> void fin(T const &t) { std::cout << t << std::endl; exit(0); } int main() { int S, W; std::cin >> S >> W; if (W >= (S + 1) / 2) fin("unsafe"); fin("safe"); return 0; }
#include <algorithm> #include <cstdint> #include <cstdlib> #include <iomanip> #include <iostream> template <typename T> void fin(T const &t) { std::cout << t << std::endl; exit(0); } int main() { int S, W; std::cin >> S >> W; if (W >= S) fin("unsafe"); fin("safe"); return 0; }
[["-", 15, 339, 51, 16, 12, 16, 31, 23, 0, 24], ["-", 51, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["-", 51, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["-", 15, 339, 51, 16, 12, 16, 31, 23, 0, 25], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
88
#include <stdio.h> int main() { int s; int w; scanf("%d %d", s, w); if (s > w) { printf("safe"); } else { printf("unsafe"); } return 0; }
#include <stdio.h> int main() { int s; int 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
53
#include <bits/stdc++.h> using namespace std; int main() { int w, s; cin >> w; cin >> s; if (w > s) { cout << "unsafe"; } else { cout << "safe"; } }
#include <bits/stdc++.h> using namespace std; int main() { int w, s; cin >> s; cin >> w; if (w >= s) { cout << "unsafe"; } else { cout << "safe"; } }
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
48
#include <stdio.h> #include <stdlib.h> int main(void) { int s, w; scanf("%d %d", &s, &w); if (s <= w * 2) printf("unsafe\n"); else printf("safe\n"); return 0; }
#include <stdio.h> #include <stdlib.h> int main(void) { int s, w; scanf("%d %d", &s, &w); if (s <= w) printf("unsafe\n"); else printf("safe\n"); return 0; }
[["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 48], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13]]
0
57
#include <algorithm> #include <cassert> #include <iostream> #include <string> #include <vector> using namespace std; int S, W; vector<int> vec; string s; bool solve() { return (W >= S); } int main() { cin >> s; // vec.resize(N); // for (int i = 0; i < N; i++) { // cin >> vec.at(i); //} if (solve()) ...
#include <algorithm> #include <cassert> #include <iostream> #include <string> #include <vector> using namespace std; int S, W; vector<int> vec; string s; bool solve() { return (W >= S); } int main() { cin >> S >> W; // vec.resize(N); // for (int i = 0; i < N; i++) { // cin >> vec.at(i); //} if (solv...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 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, 12, 22]]
1
85
#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 s, w; void solve() { if (w >= s / 2) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } } int main() { cin >> s >> w; solve();...
#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 s, w; void solve() { if (w >= s) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } } int main() { cin >> s >> w; solve(); r...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
83
#include <iostream> using namespace std; int main() { int S, W; cin >> S >> W; if (W <= S / 2) cout << "safe" << endl; else cout << "unsafe" << endl; }
#include <iostream> using namespace std; int main() { int S, W; cin >> S >> W; if (W < S) 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, 18], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
48
#include <bits/stdc++.h> #define INF 2e9 #define MOD 1000000007 using namespace std; typedef long long llong; typedef long double ldouble; using Graph = vector<vector<int>>; // int ctoi(const char c){ // if('0' <= c && c <= '9') return (c-'0'); // return -1; // } // int gcd(int a, int b){ // int ma = max(a,b);...
#include <bits/stdc++.h> #define INF 2e9 #define MOD 1000000007 using namespace std; typedef long long llong; typedef long double ldouble; using Graph = vector<vector<int>>; // int ctoi(const char c){ // if('0' <= c && c <= '9') return (c-'0'); // return -1; // } // int gcd(int a, int b){ // int ma = max(a,b);...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
85
#include <cstdio> #include <iostream> using namespace std; int main() { int s, m; scanf("%d%d", &s, &m); if (s > m) printf("unsafe\n"); else printf("safe\n"); return 0; }
#include <cstdio> #include <iostream> using namespace std; int main() { int s, m; scanf("%d%d", &s, &m); if (s <= m) printf("unsafe\n"); else printf("safe\n"); return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
58
#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 (S > W) cout << "safe" << endl; else cout << "unsafe" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 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
46
com =list(map(int,input().split())) S = com[0] W = com[1] if S < W: print("unsafe") else: print("safe")
com =list(map(int,input().split())) S = com[0] W = com[1] if S <= W: print("unsafe") else: print("safe")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
48
#include <algorithm> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <stdlib.h> #include <string> #include <vector> #define PI 3.14159265358979 #define MOD 1000000007 // fixed << setprecision(15) << using namespace std; int main(void) { long long int a, b, l, ...
#include <algorithm> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <stdlib.h> #include <string> #include <vector> #define PI 3.14159265358979 #define MOD 1000000007 // fixed << setprecision(15) << using namespace std; int main(void) { long long int a, b, l, ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
112
// MD. HASNAIN ALI (UNSOLVED) #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX(a, b) (a > b ? a : b) #define SWAP(a, b) \ { \ a = a + b; ...
// MD. HASNAIN ALI (UNSOLVED) #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX(a, b) (a > b ? a : b) #define SWAP(a, b) \ { \ a = a + b; ...
[["-", 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, 6]]
0
82
// HYSO SERIOUS? WHY SO SERIOUS RIOUS? WHY //SO SERIOUS? WHYSO SERIO ERIOUS? WHY SO SERIOUS ? WHY WHY SO SERIOUS? WHY //SOSERIOUSWHYS OSERIOUS? WHY SO SERIOU SERIOUS ERIOUS? WHY SO //SERIOUS? WHYS WHY SO SERIOUS? WHY SOSERIOUS? WHYSOSERIOUS? WHY SO SER...
// HYSO SERIOUS? WHY SO SERIOUS RIOUS? WHY //SO SERIOUS? WHYSO SERIO ERIOUS? WHY SO SERIOUS ? WHY WHY SO SERIOUS? WHY //SOSERIOUSWHYS OSERIOUS? WHY SO SERIOU SERIOUS ERIOUS? WHY SO //SERIOUS? WHYS WHY SO SERIOUS? WHY SOSERIOUS? WHYSOSERIOUS? WHY SO SER...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
311
#include <bits/stdc++.h> using namespace std; int main(void) { int a, b; cin >> a >> b; if (a < b) cout << "unsafe\n"; else cout << "safe\n"; }
#include <bits/stdc++.h> using namespace std; int main(void) { int a, b; cin >> a >> b; if (a <= b) cout << "unsafe\n"; else cout << "safe\n"; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
45
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define vi vector<int> #define mem(dp, a) memset(dp, a, sizeof dp) #define sonic \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define vi vector<int> #define mem(dp, a) memset(dp, a, sizeof dp) #define sonic \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
132
S,W=[int(i) for i in input().split()] print("unsafe" if S<W else "safe")
S,W=[int(i) for i in input().split()] print("unsafe" if S<=W else "safe")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 19]]
5
34
import java.util.*; public class Main { public static void main(String[] args) throws Exception { 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"); } } }
import java.util.*; public class Main { public static void main(String[] args) throws Exception { 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"); } } }
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20]]
3
88
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) int main() { int s, w; cin >> s >> w; if (s / 2 <= w) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) int main() { int s, w; cin >> s >> w; if (s <= w) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]]
1
77
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define debug(x) cerr << "[(" << __LINE__ << ") " << (#x) << "]: " << x << endl; int main() { cin.tie(0); ios::sync_with_stdio(0); int s, w; cin >> s >> w; cout << (s < w ? "safe" : "unsafe") << "\n"; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define debug(x) cerr << "[(" << __LINE__ << ") " << (#x) << "]: " << x << endl; int main() { cin.tie(0); ios::sync_with_stdio(0); int s, w; cin >> s >> w; cout << (w < s ? "safe" : "unsafe") << "\n"; }
[["-", 31, 16, 12, 23, 0, 41, 15, 16, 31, 22], ["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 18], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 18], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 12, 22]]
1
68
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if (a / 2 <= b) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if (a <= b) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]]
1
55
#include <stdio.h> int main() { int S, W; scanf("%d %d", &S, &W); if (S < W) printf("unsafe\n"); else printf("safe\n"); return 0; }
#include <stdio.h> int main() { int S, W; scanf("%d %d", &S, &W); if (S <= W) printf("unsafe\n"); else printf("safe\n"); return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]]
0
52
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define all(a) a.begin(), a.end() #define pb push_back #define mp make_pair typedef long long ll; typedef pair<ll, ll> P; typedef pair<ll, int> pli; typedef pair<int, int> pii; #define rep(i, a, b) for (ll i = a; i < b; i++) #define qrep(q...
#include <bits/stdc++.h> using namespace std; #define fi first #define se second #define all(a) a.begin(), a.end() #define pb push_back #define mp make_pair typedef long long ll; typedef pair<ll, ll> P; typedef pair<ll, int> pli; typedef pair<int, int> pii; #define rep(i, a, b) for (ll i = a; i < b; i++) #define qrep(q...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
785
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; int main() { int S, W; cin >> S >> W; if (W >= S / 2) cout << "unsafe"; else cout << "safe"; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; int main() { int S, W; cin >> S >> W; if (W >= S) cout << "unsafe"; else cout << "safe"; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
60
S,W = map(int, input().split()) if (S / 2) > W: print("safe") else: print("unsafe")
S,W = map(int, input().split()) if S > W: print("safe") else: print("unsafe")
[["-", 0, 656, 0, 57, 15, 666, 0, 23, 0, 24], ["-", 0, 57, 15, 666, 0, 23, 0, 657, 17, 85], ["-", 0, 57, 15, 666, 0, 23, 0, 657, 12, 612], ["-", 0, 656, 0, 57, 15, 666, 0, 23, 0, 25]]
5
39
#include <bits/stdc++.h> #define mxn 200005 using namespace std; typedef long long ll; int N, M; int main() { // freopen("a.in", "r", stdin); // freopen("a.out", "w", stdout); cin >> N >> M; if (N >= M) cout << "unsafe\n"; else cout << "safe\n"; return 0; }
#include <bits/stdc++.h> #define mxn 200005 using namespace std; typedef long long ll; int N, M; int main() { // freopen("a.in", "r", stdin); // freopen("a.out", "w", stdout); cin >> M >> N; if (N >= M) cout << "unsafe\n"; else cout << "safe\n"; return 0; }
[["-", 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
57
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. ******************************************...
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. ******************************************...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
62