buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> ...
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> ...
[["-", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22], ["+", 0, 43, 49, 50, 51, 16, 31, 2, 63, 22]]
1
970
#include <stdio.h> int main() { int S, W; scanf("%d %d", &S, &W); if (W > S) printf("unsafe"); else printf("safe"); return 0; }
#include <stdio.h> int main() { int S, W; scanf("%d%d", &S, &W); if (W >= S) { printf("unsafe"); } else { printf("safe"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, ...
0
50
#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; }
#include <stdio.h> int main() { 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, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
56
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int s, w; cin >> s >> w; if (w >= s) cout << "ubsafe" << 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; }
[["-", 36, 36, 36, 36, 0, 30, 0, 134, 0, 157], ["-", 36, 36, 0, 30, 0, 134, 39, 86, 0, 96], ["-", 36, 36, 36, 36, 0, 30, 0, 134, 49, 78], ["-", 36, 36, 36, 36, 0, 30, 0, 134, 0, 35], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
54
#include <bits/stdc++.h> using namespace std; int S, W; int main() { cin >> S >> W; if (W >= S) cout << "Unsafe" << endl; else cout << "Safe" << endl; }
#include <bits/stdc++.h> using namespace std; int S, W; int main() { cin >> S >> W; if (W >= S) cout << "unsafe" << endl; else cout << "safe" << endl; }
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
46
#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; }
#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; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
54
#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; }
#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; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
0
54
#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; }
[["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
49
s,w = map(int,input().split()) if w >= s//2: 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, 676], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]]
5
37
a, b = map(int, input().split()) if a <= b: print('safe') else: print('unsafe')
a, b = map(int, input().split()) if a > b: print('safe') else: print('unsafe')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]]
5
35
// ABC164A.cpp #include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; if (s > w) { cout << "safe" << endl; } else { cout << "unsage" << endl; } }
// ABC164A.cpp #include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; if (s > w) { cout << "safe" << endl; } else { cout << "unsafe" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
51
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define FOR(i, n) for (int i = 0; i < n; i++) #define PRN(n) printf("%d\n", n) #define PRF(n) printf("%lf\n", n) #define PRL(n) printf("%lld\n", n) #define PRS(s) printf("%s\n", s) #define PRC(c) printf("%c", c) #define INI(n...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define FOR(i, n) for (int i = 0; i < n; i++) #define PRN(n) printf("%d\n", n) #define PRF(n) printf("%lf\n", n) #define PRL(n) printf("%lld\n", n) #define PRS(s) printf("%s\n", s) #define PRC(c) printf("%c", c) #define INI(n...
[["-", 3, 4, 0, 69, 71, 23, 0, 16, 17, 18], ["+", 3, 4, 0, 69, 71, 23, 0, 16, 17, 19]]
0
715
#define LOCAL #undef _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(false); \ cin.tie(0) #define all(x) x.begin(), x.end() #define ff first #define ...
#define LOCAL #undef _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(false); \ cin.tie(0) #define all(x) x.begin(), x.end() #define ff first #define ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
856
#include <iostream> using namespace std; int main() { int w; int s; cin >> s; cin >> w; if (w >= s) { cout << "Notsafe"; } else { cout << "safe"; } return 0; }
#include <iostream> using namespace std; int main() { int w; int s; cin >> s; cin >> 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]]
1
52
#include <bits/stdc++.h> #define ll long long #define PI 3.14159265358979323846 using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); /// https://ideone.com/Fd5s8n int s, w; cin >> w >> s; if (w >= s) cout << "unsafe" << endl; else cout << "safe" << endl; }
#include <bits/stdc++.h> #define ll long long #define PI 3.14159265358979323846 using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); /// https://ideone.com/Fd5s8n int s, w; cin >> s >> w; if (w >= s) cout << "unsafe" << endl; else cout << "safe" << endl; }
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]]
1
74
#include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; if (s <= 2 * 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; }
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 48]]
1
51
#include <bits/stdc++.h> using namespace std; int main() { int S, W; cin >> S >> W; if (S > W) { cout << "sefe" << 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, 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> #define fir first #define sec second #define pb push_back #define ll long long #define mp make_pair #define all(x) (x).begin(), (x).end() #define pii pair<int, int> #define debug(x) cerr << #x << " =: " << x << endl; #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using nam...
#include <bits/stdc++.h> #define fir first #define sec second #define pb push_back #define ll long long #define mp make_pair #define all(x) (x).begin(), (x).end() #define pii pair<int, int> #define debug(x) cerr << #x << " =: " << x << endl; #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; using nam...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
311
#include <algorithm> #include <cmath> #include <iostream> #include <numeric> #include <regex> #include <set> #include <string> #include <vector> using namespace std; struct Elem { int x; int y; }; int main() { int s, w; std::cin >> s >> w; if (2 * s <= w) { std::cout << "unsafe"; } else { std::c...
#include <algorithm> #include <cmath> #include <iostream> #include <numeric> #include <regex> #include <set> #include <string> #include <vector> using namespace std; struct Elem { int x; int y; }; int main() { int s, w; std::cin >> s >> w; if (s <= w) { std::cout << "unsafe"; } else { std::cout ...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 13], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48]]
1
82
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(0); cin.tie(0); int s, w; cin >> s >> w; cout << ((w >= s) ? "unsafe\n" : "save\n"); return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(0); cin.tie(0); int s, w; cin >> s >> w; cout << ((w >= s) ? "unsafe\n" : "safe\n"); return 0; }
[["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]]
1
65
#include <bits/stdc++.h> using namespace std; int n, m, i, j, k; int main() { scanf("%d", &n, &m); if (n < m || n == m) { printf("unsafe"); } else printf("safe"); return 0; }
#include <bits/stdc++.h> using namespace std; int n, m, i, j, k; int main() { scanf("%d%d", &n, &m); if (n < m || n == m) { 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]]
1
66
#include <stdio.h> int main() { int S, W; scanf("%d %d", &S, &W); if (W >= 2 * S) { printf("unsafe"); } else { printf("safe"); } }
#include <stdio.h> int main() { int S, W; scanf("%d %d", &S, &W); if (W >= S) { printf("unsafe"); } else { printf("safe"); } }
[["-", 0, 57, 15, 23, 0, 16, 12, 16, 31, 13], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 48]]
0
53
line = gets.split(' ').map(&:to_i) ss = line[1] ww = line[2] if ss > ww then answer = 'safe' else answer = 'unsafe' end print answer
line = gets.split(' ').map(&:to_i) ss = line[0] ww = line[1] if ss > ww then answer = 'safe' else answer = 'unsafe' end print answer
[["-", 36, 36, 0, 493, 0, 662, 12, 742, 0, 612], ["+", 36, 36, 0, 493, 0, 662, 12, 742, 0, 612]]
4
47
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int S = scanner.nextInt(); int W = scanner.nextInt(); if (W >= S) { System.out.println("Unsafe"); } else { System.out.println("Safe"); } scanner....
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int S = scanner.nextInt(); int W = scanner.nextInt(); if (W >= S) { System.out.println("unsafe"); } else { System.out.println("safe"); } scanner....
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
92
#include <cmath> #include <cstdio> #include <vector> #define REP(i, n) for (int i = 0; i < n; ++i) #define FOR(i, x, n) for (int i = x; i < n; ++i) typedef std::vector<int> v; typedef std::vector<std::vector<int>> vv; typedef unsigned long long ull; int main(void) { int s, w; scanf("%d %d", s, w); if (s <= w) ...
#include <cmath> #include <cstdio> #include <vector> #define REP(i, n) for (int i = 0; i < n; ++i) #define FOR(i, x, n) for (int i = x; i < n; ++i) typedef std::vector<int> v; typedef std::vector<std::vector<int>> vv; typedef unsigned long long ull; int main(void) { int s, w; scanf("%d %d", &s, &w); if (s <= w...
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
1
101
il = [int(k) for k in input().split()] S = il[0] W = il[1] if S//2 <= W : print("unsafe") else: print("safe")
il = [int(k) for k in input().split()] S = il[0] W = il[1] if S <= W : print("unsafe") else: print("safe")
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 676], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]]
5
51
sheep_str,wolf_str= input().split() sheep = float(sheep_str) wolf = float(wolf_str) if sheep/2 <= wolf: print("unsafe") else: print("safe")
sheep_str,wolf_str= input().split() sheep = float(sheep_str) wolf = float(wolf_str) if sheep <= wolf: 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
44
SW = input() SW = [int(i) for i in list(SW.split())] if SW[0]<=SW[1]: print('unsage') else: print('safe')
SW = input() SW = [int(i) for i in list(SW.split())] if SW[0]<=SW[1]: 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
49
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; ++i) #define ALL(c) (c).begin(), (c).end() #define SUM(x) std::accumulate(ALL(x), 0LL) #define MIN(v) *std::min_element(v.begin(), v.end()) #define MAX(v) *std::max_element(v.begin(), v.end()) #define EXIST(v, x) (std::find(v.begin(), v.end(), x) != v.en...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; ++i) #define ALL(c) (c).begin(), (c).end() #define SUM(x) std::accumulate(ALL(x), 0LL) #define MIN(v) *std::min_element(v.begin(), v.end()) #define MAX(v) *std::max_element(v.begin(), v.end()) #define EXIST(v, x) (std::find(v.begin(), v.end(), x) != v.en...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
200
package main import "fmt" func main(){ var S, W int; fmt.Scan(&S, &W); if S < W { fmt.Println("unsafe"); }else { fmt.Println("safe"); } }
package main import "fmt" func main(){ var S, W int; fmt.Scan(&S, &W); if S <= W { fmt.Println("unsafe"); }else { fmt.Println("safe"); } }
[["-", 0, 435, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 435, 8, 196, 0, 57, 15, 16, 17, 19]]
7
59
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")
[["-", 3, 4, 0, 41, 0, 666, 0, 657, 17, 676], ["-", 3, 4, 0, 41, 0, 666, 0, 657, 12, 612]]
5
32
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long LL; typedef long double LD; const int mod = 1000000007; int main(void) { ios::sync_with_stdio(false); cin.tie(nullp...
#include <algorithm> #include <bitset> #include <cmath> #include <iostream> #include <string> #include <vector> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long LL; typedef long double LD; const int mod = 1000000007; int main(void) { ios::sync_with_stdio(false); cin.tie(nullp...
[["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
95
#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; return 0; }
#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; return 0; }
[["-", 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
49
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; string ans = "safe"; if (s < w) { ans = "unsafe"; } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; string ans = "safe"; if (s <= w) { ans = "unsafe"; } cout << ans << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
53
S, W = map(int, input().split()) # S,W = input().split() # S = int(S) # W = int(W) if S >= W: print("safe") else: print("unsafe")
S, W = map(int, input().split()) # S,W = input().split() # S = int(S) # W = int(W) if S > W: print("safe") else: print("unsafe")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]]
5
38
S, W = map(int, input().split()) # S,W = input().split() # S = int(S) # W = int(W) if S >= W: print("safe") else: print("unsafe")
S, W = 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], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
38
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b; cin >> a >> b; if (a < b) { printf("safe\n"); } else { printf("unsafe\n"); } }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b; cin >> a >> b; if (a > b) { printf("safe\n"); } else { printf("unsafe\n"); } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
55
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines S,W = map(int, readline()) if S > W: print('safe') else: print('unsafe')
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines S,W = map(int, readline().split()) if S > W: print('safe') else: print('unsafe')
[["+", 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
60
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); if (sc.nextInt() >= sc.nextInt()) System.out.println("unsafe"); else System.out.println("safe"); } }
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); if (sc.nextInt() <= sc.nextInt()) System.out.println("unsafe"); else System.out.println("safe"); } }
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 20], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]]
3
71
#include <stdio.h> int main(void) { int a, b; scanf("%d %d", a, b); if (a < b) { printf("unsafe"); } else { printf("safe"); } return 0; }
#include <stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); if (a <= b) { printf("unsafe"); } else { printf("safe"); } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]]
0
53
#include <bits/stdc++.h> using namespace std; #define ll long long #define mod 1000000007ll #define vll vector<ll> #define pll pair<ll, ll> #define vpll vector<pll> #define pb push_back #define mp make_pair #define x first #define y second #define db(x) cout << #x << " = " << x << '\n' #define sep cout << "************...
#include <bits/stdc++.h> using namespace std; #define ll long long #define mod 1000000007ll #define vll vector<ll> #define pll pair<ll, ll> #define vpll vector<pll> #define pb push_back #define mp make_pair #define x first #define y second #define db(x) cout << #x << " = " << x << '\n' #define sep cout << "************...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
95
A,B=input().split() if(int(A)>=int(B)): print("unsafe") else: print("safe")
A,B=input().split() if(int(A)<=int(B)): print("unsafe") else: print("safe")
[["-", 0, 656, 0, 57, 15, 23, 0, 666, 667, 20], ["+", 0, 656, 0, 57, 15, 23, 0, 666, 667, 19]]
5
38
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(0); int S, W; cin >> S >> W; if (W > S) cout << "un"; cout << "safe"; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(0); int S, W; cin >> S >> W; if (W >= S) cout << "un"; cout << "safe"; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
53
#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 << "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
50
#include <bits/stdc++.h> using namespace std; int main(int argc, const char *argv[]) { double s, w; cin >> s >> w; if (w >= s / 2.0) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
#include <bits/stdc++.h> using namespace std; int main(int argc, const char *argv[]) { int s, w; cin >> s >> w; if (w >= s) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
[["-", 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
61
S, W = list(map(int, input().split())) if S < W: print("unsafe") else: print("safe")
S, W = list(map(int, input().split())) if W >= S : print("unsafe") else: print("safe")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22], ["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 22]]
5
38
s,w = map(int,input.split()) if s > w: print("saffe") else: print("unsafe")
s,w = map(int,input().split()) if s > w: print("safe") else: print("unsafe")
[["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 24], ["+", 0, 652, 63, 319, 500, 652, 3, 4, 0, 25], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
33
#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; }
#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; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
46
S, W = (int(x) for x in input().split()) if int(S)/2 <= int(W): print("unsafe") else: print("safe")
S, W = (int(x) for x in input().split()) if int(S) <= int(W): 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
47
n,m =map(int.input().split()) if n <= m: print('unsafe') else: print("safe")
n,m =map(int,input().split()) if n <= m: print('unsafe') else: print("safe")
[["-", 0, 652, 63, 319, 500, 652, 63, 319, 0, 131], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21]]
5
35
#include <bits/stdc++.h> using namespace std; int main() { int S, W; cin >> S >> W; if (S / 2 > W) { cout << "safe" << endl; } else if (S / 2 <= W) { 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 if (S <= W) { cout << "unsafe" << endl; } }
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]]
1
60
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; if (s > w * 2) 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, 17, 48], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
48
package main import ( "fmt" ) func main() { var S int var W int fmt.Scan(&S) fmt.Scan(&W) if S > W { fmt.Println("unsafe") } else { fmt.Println("safe") } }
package main import ( "fmt" ) func main() { var S int var W int fmt.Scan(&S) fmt.Scan(&W) if S > W { fmt.Println("safe") } else { fmt.Println("unsafe") } }
[]
7
69
s,w = map(int,input().split()) print("safe" if s < w else "unsafe")
s,w = map(int,input().split()) print("safe" if s > w else "unsafe")
[["-", 0, 652, 3, 4, 0, 41, 0, 666, 667, 18], ["+", 0, 652, 3, 4, 0, 41, 0, 666, 667, 47]]
5
30
#include <iostream> using namespace std; int main() { double S, W; std::cin >> S >> W; if (W >= S / 2) cout << "unsafe" << endl; else cout << "safe" << endl; return 0; }
#include <iostream> using namespace std; int main() { double S, W; std::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
53
s,w = list(map(int,input().split())) print('unsafe' if s < w else 'safe')
s,w = list(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
33
#include "bits/stdc++.h" #include <cstring> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; 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 <cstring> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) typedef long long ll; 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, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]]
1
70
W,S = list(map(int,input().split())) if W >= S:print('unsafe') else: print('safe')
S,W = list(map(int,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
38
#include <bits/stdc++.h> typedef long long ll; const int INF = 1e9; const int MOD = 1e9 + 7; const ll LINF = 1e18; using namespace std; #define rep(i, a, b) for (int i = a; i < b; i++) #define rrep(i, a, b) for (int i = a; i <= b; i++) #define all(a) begin((a)), end((a)) #define uniq(c) (c).erase(unique(all((c))), en...
#include <bits/stdc++.h> typedef long long ll; const int INF = 1e9; const int MOD = 1e9 + 7; const ll LINF = 1e18; using namespace std; #define rep(i, a, b) for (int i = a; i < b; i++) #define rrep(i, a, b) for (int i = a; i <= b; i++) #define all(a) begin((a)), end((a)) #define uniq(c) (c).erase(unique(all((c))), en...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]]
1
105
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")
[["-", 3, 4, 0, 41, 0, 666, 0, 657, 17, 85], ["-", 3, 4, 0, 41, 0, 666, 0, 657, 12, 612]]
5
32
a,b = map(int,input().split()) if b > a: print("unsafe") elif a > b: print("safe")
a,b = map(int,input().split()) if b >= a: print("unsafe") elif a > b: print("safe")
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]]
5
38
S,W=map(int,input().split()) if 2*W >= 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, 31, 612], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 48]]
5
37
#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; }
#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, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
47
#include <bits/stdc++.h> using namespace std; int main() { long long n, m; cin >> n >> m; if (n >= m) cout << "unsafe"; else cout << "safe"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long n, m; cin >> n >> m; if (m >= n) 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, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]]
1
46
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; cout << (s >= w ? "safe" : "unsafe") << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int s, w; cin >> s >> w; cout << (s > w ? "safe" : "unsafe") << endl; }
[["-", 31, 16, 12, 23, 0, 41, 15, 16, 17, 20], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 47]]
1
41
s,w=map(int,input().split()) if s>w: print("safe") elif s<w: print("unsafe")
s,w=map(int,input().split()) if s>w: print("safe") elif s<=w: print("unsafe")
[["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 18], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 19]]
5
38
/////////////////////////////////////////////////// /* __ __ */ /*| |--.-----.---.-.----.----.-----.-----.| |_ */ /*| _ | -__| _ | __| __| -__| _ || _|*/ /*|_____|_____|___._|____|____|_____| __||____|*/ /* |__| */ ////////...
/////////////////////////////////////////////////// /* __ __ */ /*| |--.-----.---.-.----.----.-----.-----.| |_ */ /*| _ | -__| _ | __| __| -__| _ || _|*/ /*|_____|_____|___._|____|____|_____| __||____|*/ /* |__| */ ////////...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
296
S, W = tuple(int(c) for c in input().split(' ')) if S < W: print('safe') else: print('unsafe')
S, W = tuple(int(c) for c in input().split(' ')) if S > W: print('safe') else: print('unsafe')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47]]
5
43
#include <algorithm> #include <cmath> #include <iostream> #include <limits> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <unordered_map> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef int itn; const...
#include <algorithm> #include <cmath> #include <iostream> #include <limits> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <unordered_map> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef int itn; const...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
503
#include <stdio.h> int main() { int s, w; scanf("%d %d", &s, &w); if (s < w) { printf("unsafe"); } else { printf("safe"); } }
#include <stdio.h> int main() { int s, w; scanf("%d %d", &s, &w); if (s <= w) { printf("unsafe"); } else { printf("safe"); } }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]]
0
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 << "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
48
s,w = gets.split.map(&:to_i) if s > w 'safe' else 'unsafe' end
s,w = gets.split.map(&:to_i) if s > w puts 'safe' else puts 'unsafe' end
[["+", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 75, 95, 0, 652, 735, 22]]
4
25
package main import "fmt" func main() { var s int var w int fmt.Scan(&s,&w) if s<w { fmt.Println("safe") }else{ fmt.Println("unsafe") } }
package main import "fmt" func main() { var s int var w int fmt.Scan(&s,&w) if s>w { fmt.Println("safe") }else{ fmt.Println("unsafe") } }
[["-", 0, 435, 8, 196, 0, 57, 15, 16, 17, 18], ["+", 0, 435, 8, 196, 0, 57, 15, 16, 17, 47]]
7
62
s=input().split() sheep=int(s[0]) wolf=int(s[1]) if wolf>sheep: print('unsafe') else: print('safe')
s=input().split() sheep=int(s[0]) wolf=int(s[1]) if wolf>=sheep: print('unsafe') else: print('safe')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 47], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 20]]
5
46
n,m=map(int,input().split()) def func(n,m): return "unsafe" if n<m else "safe" print(func(n,m))
n,m=map(int,input().split()) def func(n,m): return "unsafe" if n<=m else "safe" print(func(n,m))
[["-", 8, 196, 0, 37, 0, 41, 0, 666, 667, 18], ["+", 8, 196, 0, 37, 0, 41, 0, 666, 667, 19]]
5
45
#include <bits/stdc++.h> using namespace std; #define all(a) a.begin(), a.end() #define rall(a) a.rbegin(), a.rend() #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
#include <bits/stdc++.h> using namespace std; #define all(a) a.begin(), a.end() #define rall(a) a.rbegin(), a.rend() #define fast \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]]
1
140
#include <iostream> using namespace std; int main() { int S, W; cin >> S >> W; if (S < W) cout << "unsafe"; else { cout << "safe" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int S, W; cin >> S >> W; if (S <= W) cout << "unsafe"; 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
49
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, 1, 0, 41, 0, 23, 0, 666, 667, 18], ["+", 0, 1, 0, 41, 0, 23, 0, 666, 667, 19]]
5
35
s,w=(int(x) for x in input().split()) if s<w: print("unsafe") else: print("safe")
s,w=(int(x) for x in 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
39
S,W = map(int, input().split()) if S<W: print('unsafe') else : print('safe')
S,W = map(int, input().split()) if S<=W: print('unsafe') else : print('safe')
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19]]
5
35
#include <bits/stdc++.h> using namespace std; int main() { int s, w; string res; cin >> s >> w; if (s > w) { res = "unsafe"; } else { res = "safe"; } cout << res << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int s, w; string res; cin >> s >> w; if (s > w) { res = "safe"; } else { res = "unsafe"; } cout << res << endl; }
[["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 11, 12, 5, 0, 6]]
1
55
a,b=map(int,input().sprit()) if a<=b:print('unsafe') else:print('safe')
a,b=map(int,input().split()) if a<=b: print('unsafe') else: print('safe')
[["-", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22], ["+", 12, 652, 3, 4, 0, 652, 63, 319, 319, 22]]
5
35
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define ll long long const ll mod = 1e9 + 7; const ll maxn = 2e5 + 5; const double pi = 3.1415926535897932384626433832795028841971693993751058209749445923078; // iostream::sync_with_stdio(false); int main() { int n, m; cin >> n >> m; if (n <...
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define ll long long const ll mod = 1e9 + 7; const ll maxn = 2e5 + 5; const double pi = 3.1415926535897932384626433832795028841971693993751058209749445923078; // iostream::sync_with_stdio(false); int main() { int n, m; cin >> n >> m; if (n >...
[["-", 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
78
#include <bits/stdc++.h> #define ll long long #define pb push_back #define FAST \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie...
#include <bits/stdc++.h> #define ll long long #define pb push_back #define FAST \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie...
[["-", 0, 16, 12, 23, 0, 41, 15, 16, 17, 18], ["+", 0, 16, 12, 23, 0, 41, 15, 16, 17, 19]]
1
67
S, W = map(int, input().split()) if S/2 <= W: print("{}".format("unsafe")) else: print("{}".format("safe"))
S, W = map(int, input().split()) if S <= W: print("{}".format("unsafe")) else: print("{}".format("safe"))
[["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 85], ["-", 0, 656, 0, 57, 15, 666, 0, 657, 12, 612]]
5
51
#include <stdio.h> #include <string.h> int main() { int s, w; scanf("%s %s", s, w); if (s > w) printf("safe"); else printf("unsafe"); return 0; }
#include <stdio.h> #include <string.h> int main() { int s, w; scanf("%d %d", &s, &w); if (s > w) printf("safe"); else printf("unsafe"); return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
50
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define MOD (1000000007) using namespace std; ...
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define MOD (1000000007) using namespace std; ...
[["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
118
package main import ( "bufio" "fmt" "os" "strconv" ) func main() { sc := bufio.NewScanner(os.Stdin) sc.Split(bufio.ScanWords) sc.Scan() s, _ := strconv.Atoi(sc.Text()) sc.Scan() w, _ := strconv.Atoi(sc.Text()) if s <= w { fmt.Println("unsafe") } fmt.Println("safe") }
package main import ( "bufio" "fmt" "os" "strconv" ) func main() { sc := bufio.NewScanner(os.Stdin) sc.Split(bufio.ScanWords) sc.Scan() s, _ := strconv.Atoi(sc.Text()) sc.Scan() w, _ := strconv.Atoi(sc.Text()) if s <= w { fmt.Println("unsafe") }else{ fmt.Println("safe") } }
[["-", 36, 36, 0, 434, 0, 435, 8, 196, 0, 165], ["+", 0, 434, 0, 435, 8, 196, 0, 57, 0, 95], ["+", 0, 435, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 435, 8, 196, 0, 57, 75, 196, 0, 165], ["+", 0, 435, 8, 196, 0, 57, 75, 196, 0, 46]]
7
117
#include <bits/stdc++.h> using namespace std; int main() { int s, m; cin >> s >> m; if (s < m) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int s, m; cin >> s >> m; if (s <= m) { 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
50
S,W=map(int,input().split()) if (W>=(S/2)): print('unsafe') else: print('safe')
S,W=map(int,input().split()) if W>=S: print('unsafe') else: print('safe')
[["-", 36, 36, 0, 656, 0, 57, 15, 23, 0, 24], ["-", 0, 57, 15, 23, 0, 666, 0, 23, 0, 24], ["-", 15, 23, 0, 666, 0, 23, 0, 657, 17, 85], ["-", 15, 23, 0, 666, 0, 23, 0, 657, 12, 612], ["-", 0, 57, 15, 23, 0, 666, 0, 23, 0, 25], ["-", 36, 36, 0, 656, 0, 57, 15, 23, 0, 25]]
5
41
#include <bits/stdc++.h> #define int long long #define float long double #define PB push_back #define MP make_pair #define ss second #define ff first #define PI 3.14159265 #define fastrack \ ios_base::sync_with_stdio(false); ...
#include <bits/stdc++.h> #define int long long #define float long double #define PB push_back #define MP make_pair #define ss second #define ff first #define PI 3.14159265 #define fastrack \ ios_base::sync_with_stdio(false); ...
[["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]]
1
103
#include <bits/stdc++.h> using namespace std; #define ll long long int a, b; int main() { cin >> a >> b; if (a >= b) cout << "unsafe"; else cout << "safe"; return 0; }
#include <bits/stdc++.h> using namespace std; #define ll long long int a, b; int main() { cin >> a >> b; if (a <= b) cout << "unsafe"; else cout << "safe"; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
48
#define _USE_MATH_DEFINES #include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <tuple> #include <vector> using namespace std; typedef long long LL; typedef vector<int> VI; typedef vector<double> VD; t...
#define _USE_MATH_DEFINES #include <algorithm> #include <climits> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <tuple> #include <vector> using namespace std; typedef long long LL; typedef vector<int> VI; typedef vector<double> VD; t...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]]
1
520
#include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; if (w >= s) { cout << "unsafe" << "/n"; } else { cout << "safe" << "/n"; } return 0; }
#include <iostream> using namespace std; int main() { int s, w; cin >> s >> w; if (w >= s) { cout << "unsafe" << "\n"; } else { cout << "safe" << "\n"; } return 0; }
[["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 44], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 44]]
1
57
#include <bits/stdc++.h> using namespace std; int main() { int S, 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, W; cin >> S >> W; if (S > W) cout << "safe" << endl; ; if (S <= W) cout << "unsafe" << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
52
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] tokens = br.readLine().split(" "); System.out.pri...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] tokens = br.readLine().split(" "); System.out.pri...
[["-", 15, 16, 12, 492, 3, 4, 0, 504, 71, 499], ["+", 15, 16, 12, 492, 3, 4, 0, 504, 71, 499]]
3
108
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int s, w; cin >> s >> w; if (s <= w) { cout << "unsafe"; } else { cout << "unsafe"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int s, w; cin >> s >> w; if (s <= w) { cout << "unsafe"; } else { cout << "safe"; } return 0; }
[["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]]
1
63
#define isFile 0 #include <algorithm> #include <cassert> #include <cstdlib> #include <cstring> #include <ctype.h> #include <fstream> #include <iomanip> #include <iostream> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <st...
#define isFile 0 #include <algorithm> #include <cassert> #include <cstdlib> #include <cstring> #include <ctype.h> #include <fstream> #include <iomanip> #include <iostream> #include <list> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <st...
[["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
292
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b; cin >> a >> b; if (b > a) { cout << "unsafe" << endl; } else { cout << "safe" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int a, b; cin >> a >> b; if (b >= a) { 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
58
Main = (s => { s = s.split(" "), console.log(+s[0] <= 2 * +s[1] ? "unsafe" : "safe") }); Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
Main = (s => { s = s.split(" "), console.log(+s[0] <= +s[1] ? "unsafe" : "safe") }); Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
[["-", 3, 3, 0, 510, 15, 16, 12, 16, 31, 555], ["-", 3, 3, 0, 510, 15, 16, 12, 16, 17, 48]]
2
71