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 LL long long typedef pair<int, int> pii; template <typename T> inline void read(T &x) { static char _c; static bool _f; x = 0; _f = 0; _c = getchar(); while (_c < '0' || '9' < _c) { if (_c == '-') _f = true; _c = getchar(); } while ...
#include <bits/stdc++.h> using namespace std; #define LL long long typedef pair<int, int> pii; template <typename T> inline void read(T &x) { static char _c; static bool _f; x = 0; _f = 0; _c = getchar(); while (_c < '0' || '9' < _c) { if (_c == '-') _f = true; _c = getchar(); } while ...
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
1
977
s,w=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, 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
30
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if (b >= a) { cout << "UNSAFE" << endl; } else { cout << "SAFE" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; if (b >= a) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
53
p gets.split.map(&:to_i).then{_1[0]<=_1[1]? 'un':''}+'safe'
puts gets.split.map(&:to_i).then{_1[0]<=_1[1]? 'un':''}+'safe'
[["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
34
puts gets.split.map(&:to_s).then{_1.first <= _1.last ? 'unsafe' : 'safe'}
puts gets.split.map(&:to_i).then{_1.first <= _1.last ? 'unsafe' : 'safe'}
[["-", 0, 652, 486, 652, 3, 4, 0, 752, 0, 753], ["+", 0, 652, 486, 652, 3, 4, 0, 752, 0, 753]]
4
29
def main(): s, w = map(int, input().split()) if s/2 <= w: print("unsafe") else: print("safe") if __name__ == "__main__": main()
def main(): s, w = map(int, input().split()) if s <= w: print("unsafe") else: print("safe") if __name__ == "__main__": main()
[["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 85], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]]
5
52
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; if (s / 2 <= w) { cout << "unsafe"; } else { cout << "safe"; } }
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; if (s <= w) { 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
48
#include <iostream> #include <math.h> using namespace std; int main() { int s; int w; cin >> s >> w; if (s > 2 * w) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } return 0; }
#include <iostream> #include <math.h> using namespace std; int main() { int s; int w; cin >> s >> w; if (s > w) { cout << "safe" << endl; } else { cout << "unsafe" << 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 <stdio.h> void main() { int s, w; sscanf("%d %d", &s, &w); if (s > w) { printf("safe"); } else if (s <= w) { printf("unsafe"); } }
#include <stdio.h> void main() { int s, w; scanf("%d %d", &s, &w); if (s > w) { printf("safe\n"); } else if (s <= w) { printf("unsafe\n"); } }
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
57
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int N, M; cin >> N >> M; if (N >= M) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } }
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { int N, M; cin >> N >> M; if (N > M) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
52
#include <bits/stdc++.h> using namespace std; #define print(x) cerr << #x << " is " << x << endl; #define int long long int #define ll long long #define vi vector<int> #define vvi vector<vector<int>> #define vpi vector<pair<int, int>> #define all(v) (v).begin(), (v).end() #define pii pair<int, int> #define pb push_bac...
#include <bits/stdc++.h> using namespace std; #define print(x) cerr << #x << " is " << x << endl; #define int long long int #define ll long long #define vi vector<int> #define vvi vector<vector<int>> #define vpi vector<pair<int, int>> #define all(v) (v).begin(), (v).end() #define pii pair<int, int> #define pb push_bac...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
132
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); if (a <= b) printf("unsafe\n"); printf("safe\n"); return 0; }
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); if (a <= b) printf("unsafe\n"); else printf("safe\n"); return 0; }
[["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]]
0
51
#include <bits/stdc++.h> #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL) #define int long long #define endl ...
#include <bits/stdc++.h> #define fio \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL) #define int long long #define endl ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
407
puts gets.split.map(&:to_i).inject(:-) <= 0 ? "safe" : "unsafe"
puts gets.split.map(&:to_i).inject(:-) <= 0 ? "unsafe" : "safe"
[["-", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6]]
4
25
import sys S, W = map(int,input().split(" ")) if S//2 <= W: print('unsafe') sys.exit() print('safe')
import sys S, W = map(int,input().split(" ")) if S <= W: print('unsafe') sys.exit() print('safe')
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 676], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]]
5
45
W,S = [int(x) for x in input().split()] if W >= S: print('unsafe') else: print('safe')
S, W = [int(x) for x in input().split()] if W >= S: print('unsafe') else: print('safe')
[["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22], ["-", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 21], ["+", 0, 656, 0, 1, 0, 662, 31, 684, 0, 22]]
5
39
def Sol(w,s): if s>w: print("safe") else: print("unsafe") return #for t in range(int(input())): n,k = map(int,input().split()) #n = int(input()) #arr = [] #for i in range(n): # time = list(map(int,input().split())) # time = time[0] + (time[1]/60) # arr.append(time)...
def Sol(s,w): if s>w: print("safe") else: print("unsafe") return #for t in range(int(input())): n,k = map(int,input().split()) #n = int(input()) #arr = [] #for i in range(n): # time = list(map(int,input().split())) # time = time[0] + (time[1]/60) # arr.append(time)...
[["-", 36, 36, 0, 656, 0, 14, 54, 54, 0, 22], ["-", 36, 36, 0, 656, 0, 14, 54, 54, 0, 21], ["+", 36, 36, 0, 656, 0, 14, 54, 54, 0, 21], ["+", 36, 36, 0, 656, 0, 14, 54, 54, 0, 22]]
5
60
s,w = map(int,input().split()) if s >= w: print("unsafe") else: print("safe")
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], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
35
#include <bits/stdc++.h> #define _USE_MATH_DEFINES #include <algorithm> #include <math.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() #define acc(v) accumulate(v.begin(), v.end(), 0) using namespace std; typedef long long ll; const int INF = 1e...
#include <bits/stdc++.h> #define _USE_MATH_DEFINES #include <algorithm> #include <math.h> #define rep(i, n) for (int i = 0; i < (n); ++i) #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() #define acc(v) accumulate(v.begin(), v.end(), 0) using namespace std; typedef long long ll; const int INF = 1e...
[["-", 12, 23, 0, 41, 15, 16, 31, 16, 31, 13], ["-", 12, 23, 0, 41, 15, 16, 31, 16, 17, 48]]
1
100
#include <stdio.h> int main(void) { int s, w; scanf("%d %d", &s, &w); if (s >= w) printf("safe"); else printf("unsafe"); return 0; }
#include <stdio.h> int main(void) { int s, w; scanf("%d %d", &s, &w); if (s > w) printf("safe"); else printf("unsafe"); return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47]]
0
51
#include <algorithm> #include <array> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i...
#include <algorithm> #include <array> #include <bitset> #include <cmath> #include <complex> #include <cstdio> #include <deque> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
286
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, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
41
#include <bits/stdc++.h> using namespace std; int main() { int x; int y; cin >> x >> y; if (x < y) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int x; int y; cin >> x >> y; if (x <= y) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
[["-", 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 ALL(v) (v).begin(), (v).end() #define pb push_back #define REP(i, n) for (int i = 0; i < (n); i++) #define REP2(i, x, n) for (int i = x; i < (n); i++) using namespace std; using ll = long long; using ld = long double; using pii = pair<int, int>; using pll = pair<ll, ll>; template <class...
#include <bits/stdc++.h> #define ALL(v) (v).begin(), (v).end() #define pb push_back #define REP(i, n) for (int i = 0; i < (n); i++) #define REP2(i, x, n) for (int i = x; i < (n); i++) using namespace std; using ll = long long; using ld = long double; using pii = pair<int, int>; using pll = pair<ll, ll>; template <class...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
228
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> using namespace std; #define INF 20000...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> using namespace std; #define INF 20000...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
225
#include <stdio.h> int main(void) { int S, W; scanf("%d %d", &S, &W); if (W >= S) { printf("unsefe"); } else { printf("safe"); } return 0; }
#include <stdio.h> int main(void) { int S, W; 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
55
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <s...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <s...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
285
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; if (w > s) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; if (w >= s) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
53
#pragma GCC target("avx2") #pragma GCC optimization("O3") #pragma GCC optimization("unroll-loops") #include <bits/stdc++.h> using namespace std; #define int long long #define double long double #define fo(a, b) for (int a = 0; a < b; a++) #define Sort(a) sort(a.begin(), a.end()) #define rev(a) reverse(a.begin(), a.end(...
#pragma GCC target("avx2") #pragma GCC optimization("O3") #pragma GCC optimization("unroll-loops") #include <bits/stdc++.h> using namespace std; #define int long long #define double long double #define fo(a, b) for (int a = 0; a < b; a++) #define Sort(a) sort(a.begin(), a.end()) #define rev(a) reverse(a.begin(), a.end(...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]]
1
1,860
#include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; cout << ((s < w) ? "unsafe" : "safe") << endl; }
#include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; cout << ((w >= s) ? "unsafe" : "safe") << endl; }
[["-", 12, 23, 0, 41, 15, 23, 0, 16, 31, 22], ["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 18], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 20], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 12, 22]]
1
43
#include <stdio.h> int main() { long long int a, b, c = 0, o, e, d = 1, i, t, j, n, x, y, k, m, l, r = 0; scanf("%lld%lld", &a, &b); if (a >= b) { printf("safe\n"); } else { printf("unsafe\n"); } }
#include <stdio.h> int main() { long long int a, b, c = 0, o, e, d = 1, i, t, j, n, x, y, k, m, l, r = 0; scanf("%lld%lld", &a, &b); if (a > b) { printf("safe\n"); } else { printf("unsafe\n"); } }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47]]
0
89
S, W = map(int, input().split()) if W * 2 >= S : print('unsafe') else : print('safe')
S, W = map(int, input().split()) if W >= S : 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
package main import ( "fmt" ) func main() { var ( sheep, wolves int ) fmt.Scan(&sheep, &wolves) if sheep <= wolves { fmt.Println("safe") } else { fmt.Println("unsafe") } }
package main import ( "fmt" ) func main() { var ( sheep, wolves int ) fmt.Scan(&sheep, &wolves) if sheep <= wolves { fmt.Println("unsafe") } else { fmt.Println("safe") } }
[]
7
65
n=gets.split.map(&:to_i) puts n[0]<n[1]? "unsafe":"safe"
n=gets.split.map(&:to_i) puts n[0]<=n[1]? "unsafe":"safe"
[["-", 0, 652, 3, 4, 0, 754, 15, 738, 17, 18], ["+", 0, 652, 3, 4, 0, 754, 15, 738, 17, 19]]
4
29
#include <iostream> #include <string> using namespace std; int main() { int s, w; cin >> s >> w; if (s < w) { cout << "unsafe"; } else { cout << "safe"; } return 0; }
#include <iostream> #include <string> using namespace std; int main() { int s, w; cin >> s >> w; if (s > w) { cout << "safe"; } else { cout << "unsafe"; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
51
#include <bits/stdc++.h> using namespace std; #define INFTY 1 << 20 typedef long long int ll; const int MOD = 1000000007; int main() { double s, w; cin >> s >> w; if (w >= s / 2) cout << "unsafe" << endl; else cout << "safe" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define INFTY 1 << 20 typedef long long int ll; const int MOD = 1000000007; int main() { double s, w; cin >> s >> w; if (w >= s) cout << "unsafe" << endl; else cout << "safe" << endl; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
66
#include <iostream> using namespace std; int main() { int S; int W; cin >> S >> W; if (W >= S) { cout << "unfair"; } else { cout << "fair"; } return 0; }
#include <iostream> using namespace std; int main() { int S; int W; cin >> S >> W; if (W >= S) { cout << "unsafe"; } else { cout << "safe"; } return 0; }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
50
S, W = 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, 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
30
list = map(int, input().split()) S = list[0] W = list[1] if W >= S: print("unsafe") else: print("safe")
list = list(map(int, input().split())) S = list[0] W = list[1] if W >= S: print("unsafe") else: print("safe")
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
45
"use strict"; const main = arg => { const input = arg.trim().split('\n'); const arr = input.split(" ").map(Number); if (arr[0] <= arr[1]) { console.log("unsafe"); } else { console.log("safe"); } } main(require("fs").readFileSync("/dev/stdin", "utf8"));
"use strict"; const main = arg => { const input = arg.trim().split('\n'); const arr = input[0].split(" ").map(Number); if (arr[0] <= arr[1]) { console.log("unsafe"); } else { console.log("safe"); } } main(require("fs").readFileSync("/dev/stdin", "utf8"));
[["+", 63, 558, 500, 2, 63, 558, 500, 69, 0, 70], ["+", 63, 558, 500, 2, 63, 558, 500, 69, 71, 555], ["+", 63, 558, 500, 2, 63, 558, 500, 69, 0, 73]]
2
100
a = input().split(" ") s = a[0] w = a[1] if w >= s: print("unsafe") else: print("safe")
a = input().split(" ") s = int(a[0]) w = int(a[1]) if w >= s: print("unsafe") else: print("safe")
[["+", 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 <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define ll long long template <class T> using v = std::vector<T>; template <class T> using vv = v<v<T>>; const int mod = 1000000007; const int INF = 1001001001; const ll LINF = 1001002003004005006ll; // const int mod = 9982...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define ll long long template <class T> using v = std::vector<T>; template <class T> using vv = v<v<T>>; const int mod = 1000000007; const int INF = 1001001001; const ll LINF = 1001002003004005006ll; // const int mod = 9982...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 13], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48]]
1
752
// // main.cpp // ABC164 // // // Copyright © 2020 エロやん. All rights reserved. // #include <iostream> using namespace std; int main() { // insert code here... int S, W; cin >> S >> W; if (S >= W) cout << "safe"; else cout << "unsafe"; return 0; }
// // main.cpp // ABC164 // // // Copyright © 2020 エロやん. All rights reserved. // #include <iostream> using namespace std; int main() { // insert code here... int S, W; cin >> S >> W; if (S > W) cout << "safe"; else cout << "unsafe"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
53
#!python3 iim = lambda: map(int, input().rstrip().split()) def resolve(): S, W = iim() print("safe" if S >2*W else "unsafe") if __name__ == "__main__": resolve()
#!python3 iim = lambda: map(int, input().rstrip().split()) def resolve(): S, W = iim() print("safe" if S > W else "unsafe") if __name__ == "__main__": resolve()
[["-", 3, 4, 0, 41, 0, 666, 0, 657, 31, 612], ["-", 3, 4, 0, 41, 0, 666, 0, 657, 17, 48]]
5
59
tems = list(map(lambda x: int(x), input().split())) s = items[0] w = items[1] print('safe' if s > w else 'unsafe')
items = list(map(lambda x: int(x), input().split())) s = items[0] w = items[1] print('safe' if s > w else 'unsafe')
[["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]]
5
49
import java.util.Scanner; public 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 (W * 2 >= S) { System.out.println("unsafe"); } else { System.out.println("safe"); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = Integer.parseInt(sc.next()); int W = Integer.parseInt(sc.next()); if (W >= S) { System.out.println("unsafe"); } else { System.out.println("safe"); } ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 48], ["-", 0, 57, 15, 15, 0, 16, 31, 16, 12, 499]]
3
98
#-Sheep and Wolves S, W = map(int, input().split()) if (S/2 <= (W)): print("unsafe") else: print("safe")
#-Sheep and Wolves S, W = map(int, input().split()) if (S <= (W)): print("unsafe") else: print("safe")
[["-", 0, 57, 15, 23, 0, 666, 0, 657, 17, 85], ["-", 0, 57, 15, 23, 0, 666, 0, 657, 12, 612]]
5
42
#include <bits/stdc++.h> using namespace std; int main() { int sheep, wolf; cin >> sheep, wolf; if (sheep > wolf) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int sheep, wolf; cin >> sheep >> wolf; if (sheep > wolf) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
50
#include <bits/stdc++.h> using namespace std; #define lld long long int #define M 1000000007 #define fors(i, n) for (int i = 0; i < n; ++i) #define fore(i, a, b) for (int i = a; i <= b; ++i) #define fastio \ ios_base::sync_with_stdio(0); ...
#include <bits/stdc++.h> using namespace std; #define lld long long int #define M 1000000007 #define fors(i, n) for (int i = 0; i < n; ++i) #define fore(i, a, b) for (int i = a; i <= b; ++i) #define fastio \ ios_base::sync_with_stdio(0); ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
293
// // main.cpp // contest // // Created by TmpGuest on 2020/4/18. // Copyright © 2020 TmpGuest. All rights reserved. // #include <bits/stdc++.h> #define endl '\n' using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); int s, w; cin >> s >> w; if (s < w) cout << "safe\n"; e...
// // main.cpp // contest // // Created by TmpGuest on 2020/4/18. // Copyright © 2020 TmpGuest. All rights reserved. // #include <bits/stdc++.h> #define endl '\n' using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); int s, w; cin >> s >> w; if (s > w) cout << "safe\n"; e...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
71
#include <iostream> #include <string> #include <vector> using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int s, w; cin >> s >> w; if (s > w) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
#include <iostream> #include <string> #include <vector> using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); 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, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
72
S,W =input().split() if W>=S: print("unsafe") else: print("safe")
S,W =input().split() if int(W)>=int(S): print("unsafe") else: print("safe")
[["+", 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
30
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a; cin >> b; if (a < b) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a; cin >> b; if (a <= b) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
52
import sys int1 = lambda x: int(x) - 1 read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(500000) S, W = map(int, read()) if W >= S: print("unsafe") else: print("safe")
import sys int1 = lambda x: int(x) - 1 read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(500000) S, W = map(int, read().split()) if W >= S: print("unsafe") else: print("safe")
[["+", 12, 652, 3, 4, 0, 652, 63, 319, 0, 131], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]]
5
77
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int W = sc.nextInt(); if (S > W) { System.out.println("safe"); } else if (W > S) { System.out.println("unsafe"); } } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int W = sc.nextInt(); if (S > W) { System.out.println("safe"); } else if (W >= S) { System.out.println("unsafe"); } } }
[["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 20]]
3
91
#include <stdio.h> int main(void) { int s, w; scanf("%d %d", &s, &w); if (s <= w) { printf("unsafe"); } else { printf("unsafe"); } return 0; }
#include <stdio.h> int main(void) { int s, w; scanf("%d %d", &s, &w); if (s <= w) { printf("unsafe"); } else { printf("safe"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
55
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner stdIn = new Scanner(System.in); int S = stdIn.nextInt(); int W = stdIn.nextInt(); if (S <= W) { System.out.println("unsefe"); } else { System.out.prin...
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner stdIn = new Scanner(System.in); int S = stdIn.nextInt(); int W = stdIn.nextInt(); if (S <= W) { System.out.println("unsafe"); } else { System.out.prin...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
87
// Author : amnptl // Godbless #include <bits/stdc++.h> using namespace std; typedef long long ll; #define NeedForSpeed() \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
// Author : amnptl // Godbless #include <bits/stdc++.h> using namespace std; typedef long long ll; #define NeedForSpeed() \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[["-", 0, 1, 0, 41, 15, 23, 0, 16, 17, 47], ["+", 0, 1, 0, 41, 15, 23, 0, 16, 17, 20]]
1
68
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x, to) for (x = 0; x < (to); x++) #define FORR(x, arr) for (auto &x : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++) #define ALL(a) (a.begin()), ...
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x, to) for (x = 0; x < (to); x++) #define FORR(x, arr) for (auto &x : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++) #define ALL(a) (a.begin()), ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
226
#include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; if (w >= s) { cout << "Unsafe"; } else { cout << "Safe"; } return 0; }
#include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; if (w >= s) { cout << "unsafe"; } else { cout << "safe"; } return 0; }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
49
n, m = map(int, input().split()) if n >= m: print('unsafe') else: print('safe')
n, m = map(int, input().split()) if m >= n: print('unsafe') else: print('safe')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]]
5
35
import math s,w = map(int, input().split()) if s < w: print('unsafe') else: print('safe')
import math s,w = 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
37
#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; }
#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; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46]]
1
46
if __name__ == '__main__': S,W = map(int, input().split()) if S >= W: print('safe') elif S < W: print('unsafe')
if __name__ == '__main__': S,W = map(int, input().split()) if S > W: print('safe') elif S <= W: print('unsafe')
[["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 20], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 47], ["-", 64, 196, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 64, 196, 0, 57, 75, 665, 15, 666, 667, 19]]
5
45
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int W = sc.nextInt(); if (S < W) { System.out.println("unsafe"); } else { System.out.println("safe"); ...
import java.util.*; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); int S = sc.nextInt(); int W = sc.nextInt(); if (S <= W) { System.out.println("unsafe"); } else { System.out.println("safe"); ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]]
3
89
S, W = map(int, input().split()) if (S <= W): print('unsafe') else: print('same')
S, W = map(int, input().split()) if (S <= W): 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
37
#include <cstdio> using namespace std; int a, b; int main() { scanf("%d%d", &a, &b); printf("%s", a <= b ? "unsave" : "save"); return 0; }
#include <cstdio> using namespace std; int a, b; int main() { scanf("%d%d", &a, &b); printf("%s", a <= b ? "unsafe" : "safe"); return 0; }
[["-", 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]]
1
52
#include <bits/stdc++.h> #define _LIBCPP_DEBUG 0 using namespace std; typedef long long int ll; ll MOD = 1e9 + 7; int INF = 1 << 30; int main(void) { int S, W; cin >> S >> W; if (W >= S / 2) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
#include <bits/stdc++.h> #define _LIBCPP_DEBUG 0 using namespace std; typedef long long int ll; ll MOD = 1e9 + 7; int INF = 1 << 30; int main(void) { int S, W; cin >> S >> W; if (W >= S) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
76
#include <bits/stdc++.h> using namespace std; int s, w; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin >> s >> w; cout << (s < w ? "safe" : "unsafe"); return 0; }
#include <bits/stdc++.h> using namespace std; int s, w; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); cin >> s >> w; cout << (s <= w ? "unsafe" : "safe"); return 0; }
[["-", 0, 16, 12, 23, 0, 41, 15, 16, 17, 18], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 19], ["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
63
#include <stdio.h> int main(void) { int S, W; scanf("%d %d", &S, &W); if (W >= S / 2) { printf("unsafe\n"); } else { printf("safe\n"); } return 0; }
#include <stdio.h> int main(void) { int S, W; scanf("%d %d", &S, &W); if (W >= S) { printf("unsafe\n"); } else { printf("safe\n"); } return 0; }
[["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13]]
0
59
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <utility> #include <vector> #define MOD 1000000007 using namespace std; int main() { int n, m; cin >> n >> m; if (m >= (n + 1) / 2) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <utility> #include <vector> #define MOD 1000000007 using namespace std; int main() { int n, m; cin >> n >> m; if (m >= n) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
[["-", 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
69
input().split() s = int(a[0]) w = int(a[1]) if w >= s: print('unsafe') else: print('safe')
a = input().split() s = int(a[0]) w = int(a[1]) if w >= s: print('unsafe') else: print('safe')
[["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32]]
5
44
#include <bits/stdc++.h> #include <unordered_map> #include <unordered_set> using namespace std; #define endl "\n" #define ll long long #define sz(s) (int)(s.size()) #define INF 0x3f3f3f3f3f3f3f3fLL #define all(v) v.begin(), v.end() #define watch(x) cout << (#x) << " = " << x << endl const int dr[]{-1, -1, 0, 1, 1, 1, 0...
#include <bits/stdc++.h> #include <unordered_map> #include <unordered_set> using namespace std; #define endl "\n" #define ll long long #define sz(s) (int)(s.size()) #define INF 0x3f3f3f3f3f3f3f3fLL #define all(v) v.begin(), v.end() #define watch(x) cout << (#x) << " = " << x << endl const int dr[]{-1, -1, 0, 1, 1, 1, 0...
[["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6]]
1
245
#include <bits/stdc++.h> using namespace std; int S, W; int main() { cin >> S >> W; if (S < W) cout << "unsafe"; else cout << "safe"; return 0; }
#include <bits/stdc++.h> using namespace std; int S, W; int main() { cin >> S >> W; if (S <= W) 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
45
#pragma region Macros #pragma GCC optimize("O3") #include <bits/stdc++.h> #define ll long long #define ld long double #define rep2(i, a, b) for (ll i = a; i <= b; ++i) #define rep(i, n) for (ll i = 0; i < n; i++) #define rep3(i, a, b) for (ll i = a; i >= b; i--) #define pii pair<int, int> #define pll pair<ll, ll> #defi...
#pragma region Macros #pragma GCC optimize("O3") #include <bits/stdc++.h> #define ll long long #define ld long double #define rep2(i, a, b) for (ll i = a; i <= b; ++i) #define rep(i, n) for (ll i = 0; i < n; i++) #define rep3(i, a, b) for (ll i = a; i >= b; i--) #define pii pair<int, int> #define pll pair<ll, ll> #defi...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
1,752
class Main: s1, s2= int(input().split()); if s1 <= s2: print("unsafe"); else: print("safe");
class Main: s1, s2= map(int,input().split()); if s1 <= s2: print("unsafe"); else: print("safe");
[["-", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 8, 196, 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
39
#include <bits/stdc++.h> using namespace std; int main() { int S; int W; cin >> S; cin >> W; if (W <= S) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int S; int W; cin >> S; cin >> W; if (S <= W) { 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, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
53
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; if (w = s || w > s) { cout << "unsafe"; } else { cout << "safe"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; if (w == s || w > s) { cout << "unsafe"; return 0; } cout << "safe"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 13], ["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 8, 9, 0, 57, 75,...
1
53
#include <iostream> using namespace std; int main() { int wolf, sheep; cin >> sheep; cin >> wolf; if (sheep < wolf) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int wolf, sheep; cin >> sheep; cin >> wolf; if (sheep <= wolf) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
55
#include <bits/stdc++.h> using namespace std; int main() { int S, W; cin >> S >> W; if (S > 2 * W) { cout << "safe" << endl; } else { cout << "unsafe" << 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; } }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]]
1
52
#include <stdio.h> int main(void) { int s, w; scanf("%d %d", &s, &w); if (s <= w) { printf("unsafe/n"); } else { printf("safe"); } printf("\n"); return 0; }
#include <stdio.h> int main(void) { int s, w; scanf("%d %d", &s, &w); if (s <= w) { printf("unsafe"); } else { printf("safe"); } printf("\n"); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
62
n,s= map(int, input().split()) print("sefe") if n>s else print("unsafe")
n, s = map(int, input().split()) print("safe") if n>s else print("unsafe")
[["-", 0, 41, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 41, 0, 652, 3, 4, 0, 557, 0, 6]]
5
33
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int s, w; cin >> s >> w; string ans = "unsafe"; if (w < (s / 2)) ans = "safe"; else ans = "unsafe"; cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int s, w; cin >> s >> w; string ans = "unsafe"; if (w < s) ans = "safe"; else ans = "unsafe"; cout << ans << endl; return 0; }
[["-", 0, 57, 15, 339, 51, 16, 12, 23, 0, 24], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 85], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 23, 0, 25]]
1
70
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { int s; int w; cin >> s >> w; if (s >= w) { cout << "safe" << endl; } else cout << "unsafe" << endl; }
#include <bits/stdc++.h> using namespace std; #define int long long signed main() { int s; int 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], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
52
s, w = gets.strip.split.map(&:to_i) if w >= s p "unsafe" else p "safe" end
s, w = gets.strip.split.map(&:to_i) if w >= s puts "unsafe" else puts "safe" end
[["-", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["-", 0, 493, 0, 121, 75, 95, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 75, 95, 0, 652, 735, 22]]
4
29
#include <bits/stdc++.h> using namespace std; int main() { int S; int W; cin >> S >> W; if (S < W) { cout << "safe" << endl; } if (S >= W) { cout << "unsafe" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int S; int W; cin >> S >> W; if (W < S) { cout << "safe" << endl; } if (W >= S) { cout << "unsafe" << 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, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
56
#include <iostream> using namespace std; int main() { int w, s; cin >> w >> s; if (w >= s) cout << "unsafe" << endl; else cout << "safe" << endl; return 0; }
#include <iostream> using namespace std; int main() { int w, s; cin >> s >> w; if (w >= s) cout << "unsafe" << endl; else cout << "safe" << endl; 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
49
s, w = map(int, input().split()) # 入力 ans = 'safe' if float(w) >= float(s) / 2: ans = 'unsafe' print(ans)
s, w = map(int, input().split()) # 入力 ans = 'safe' if float(w) >= float(s): ans = 'unsafe' print(ans)
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 85], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]]
5
44
N=[int(x) for x in input().split()] if N[0]/2>N[1]: print("safe") else: print("unsafe")
N=[int(x) for x in input().split()] if N[0]>N[1]: print("safe") else: print("unsafe")
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 85], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]]
5
45
#include <bits/stdc++.h> using namespace std; int main() { long long int W, S; scanf("%lld %lld", &W, &S); if (W >= S) printf("unsafe\n"); else printf("safe\n"); }
#include <bits/stdc++.h> using namespace std; int main() { long long int W, S; scanf("%lld %lld", &S, &W); if (W >= S) printf("unsafe\n"); else printf("safe\n"); }
[["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]]
1
55
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 1010000000000000017LL; const ll MOD = 1000000007LL; #define REP(i, n) for (ll i = 0; i < n; i++) //#define DEBUG(fmt, ...) #define DEBUG(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__) int main() { std::cout << std::fixed << std...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 1010000000000000017LL; const ll MOD = 1000000007LL; #define REP(i, n) for (ll i = 0; i < n; i++) //#define DEBUG(fmt, ...) #define DEBUG(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__) int main() { std::cout << std::fixed << std...
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
99
#include <iostream> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repi(i, a, b) for (int i = int(a); i < int(b); ++i) #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) using namespace std; using ll = long long; int main() { // 整数の入力 int s, w; cin >> s >> w; if (s < w) cout...
#include <iostream> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repi(i, a, b) for (int i = int(a); i < int(b); ++i) #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) using namespace std; using ll = long long; int main() { // 整数の入力 int s, w; cin >> s >> w; if (s <= w) cou...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
82
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; cout << ((s >= w) ? "unsafe" : "safe") << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; cout << ((s <= w) ? "unsafe" : "safe") << endl; }
[["-", 12, 23, 0, 41, 15, 23, 0, 16, 17, 20], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 19]]
1
43
#include <iostream> using namespace std; int main() { // 整数の入力 int S, W; cin >> S, W; // スペース区切りの整数の入力 if (S > W) { cout << "safe"; } else { cout << "unsafe"; } return 0; }
#include <iostream> using namespace std; int main() { // 整数の入力 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
51
import java.lang.*; import java.util.*; public class Main { public static void solve(long s, long w) { if (w > s) { System.out.println("unsafe"); } else { System.out.println("safe"); } } public static void gora() { Scanner scn = new Scanner(System.in); // long test = scn.nextLo...
import java.lang.*; import java.util.*; public class Main { public static void solve(long s, long w) { if (w >= s) { System.out.println("unsafe"); } else { System.out.println("safe"); } } public static void gora() { Scanner scn = new Scanner(System.in); // long test = scn.nextL...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20]]
3
130
a=input().split() S = int(a[0]) W = int(a[1]) if S >= W: print("unsafe") else: print("safe")
a = input().split() S = int(a[0]) W = int(a[1]) if S <= W: print("unsafe") else: print("safe")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
46
#include <bits/stdc++.h> using namespace std; int main() { int W, S; cin >> S >> W; if (W <= S) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int W, S; cin >> S >> W; if (W <= S && W != S) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } return 0; }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]]
1
53
#include <iostream> using namespace std; int main() { long long a, b; cin >> a >> b; if (a < b) cout << "safe" << endl; else cout << "unsafe" << endl; }
#include <iostream> using namespace std; int main() { long long a, b; cin >> a >> b; if (a > b) 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]]
1
47
S ,W= list(map(int, input().split())) if W >= S/2 : print('unsafe') else: print('safe')
S ,W= list(map(int, input().split())) if W >= S : print('unsafe') else: print('safe')
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 85], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]]
5
40
inputs = str(input()) S = int(inputs.split()[0]) W = int(inputs.split()[1]) if S < W: print("unsafe") else: print("safe")
inputs = str(input()) S = int(inputs.split()[0]) W = int(inputs.split()[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
53