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
X = int(input()) if 0 <= X: print(1) elif X <= 1: print(0)
X = int(input()) if 0 == X: print(1) elif X == 1: print(0)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 19], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60]]
5
26
<?php $input = fgets(STDIN); if($input === 0){ echo "1"; }elseif($input === 1){ echo "0"; } ?>
<?php $input = fgets(STDIN); if($input == 0){ echo "1"; }elseif($input == 1){ echo "0"; } ?>
[["-", 0, 493, 0, 57, 15, 23, 0, 16, 17, 565], ["+", 0, 493, 0, 57, 15, 23, 0, 16, 17, 60], ["-", 0, 57, 75, 625, 15, 23, 0, 16, 17, 565], ["+", 0, 57, 75, 625, 15, 23, 0, 16, 17, 60]]
6
38
#include <bits/stdc++.h> using namespace std; int main() { int x; if (x == 0) { cout << 1 << endl; } else if (x == 1) { cout << 0 << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x == 0) { cout << 1 << endl; } else if (x == 1) { cout << 0 << endl; } return 0; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
47
#include <iostream> using namespace std; #define v vt int main() { int a, b, d; cin >> a; cout << ((a = 0) ? 1 : 0) << endl; }
#include <iostream> using namespace std; #define v vt int main() { int a, b, d; cin >> a; cout << ((a == 0) ? 1 : 0) << endl; }
[["-", 12, 23, 0, 41, 15, 23, 0, 42, 0, 32], ["+", 12, 23, 0, 41, 15, 23, 0, 16, 17, 60]]
1
42
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <stdio.h> #include <string> #include <unordered_map> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) #define repn(i, n) for (int i = 1; i <= n; i++) #define repr(e, x) f...
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <stdio.h> #include <string> #include <unordered_map> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) #define repn(i, n) for (int i = 1; i <= n; i++) #define repr(e, x) f...
[["-", 0, 1, 0, 16, 31, 16, 12, 91, 17, 92], ["+", 0, 1, 0, 16, 31, 16, 12, 91, 17, 111]]
1
99
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x == 0) { cout << 0; } else { cout << 1; } }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x == 0) { cout << 1; } else { cout << 0; } }
[["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 13], ["-", 75, 76, 0, 9, 0, 1, 0, 16, 12, 13], ["+", 75, 76, 0, 9, 0, 1, 0, 16, 12, 13]]
1
38
#include <bits/stdc++.h> using namespace std; int main() { char x, ans = 1; cin >> x; if (x == 0) { ans = 1; } else { ans = 0; } cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x, ans; cin >> x; if (x == 0) { ans = 1; } else { ans = 0; } cout << ans << endl; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
48
function Main(input) { return 1 - parseInt(input[0]); } Main(require("fs").readFileSync("/dev/stdin", "utf8"));
// parameter "input" gets all data function Main(input) { console.log(1 - parseInt(input[0])); } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));
[["-", 0, 493, 0, 435, 8, 556, 0, 37, 0, 38], ["+", 8, 556, 0, 1, 0, 2, 63, 558, 500, 22], ["+", 8, 556, 0, 1, 0, 2, 63, 558, 0, 131], ["+", 8, 556, 0, 1, 0, 2, 63, 558, 559, 560], ["+", 8, 556, 0, 1, 0, 2, 3, 3, 0, 24], ["+", 3, 3, 0, 16, 12, 2, 3, 3, 0, 25]]
2
39
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; void solve() { int x; cin >> x; if (x == 1) cout << 0 << '\n'; else cout << 1 << '\n'; } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int t; cin >> t; while (t--) { solve(); ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; void solve() { int x; cin >> x; if (x == 1) cout << 0 << '\n'; else cout << 1 << '\n'; } int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int t = 1; // cin>>t; while (t--) { solve...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
102
#include <bits/stdc++.h> using namespace std; const int mxn(1e5 + 10), mxm(4e5 + 10); const long long modl(998244353); int nm, n, m, p, t, k, ans, l, r; int a[mxn], b[mxn], h[mxn]; int main() { ios_base::sync_with_stdio(false); // freopen("in.txt", "r", stdin);/////////////////////////// // cin >> nm; while (...
#include <bits/stdc++.h> using namespace std; const int mxn(1e5 + 10), mxm(4e5 + 10); const long long modl(998244353); int nm, n, m, p, t, k, ans, l, r; int a[mxn], b[mxn], h[mxn]; int main() { ios_base::sync_with_stdio(false); // freopen("in.txt", "r", stdin);/////////////////////////// // cin >> nm; while (...
[["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 130], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 140]]
1
106
x = input() if x == 1: print(0) else: print(1)
x = int(input()) if x == 1: print(0) else: print(1)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
20
#include <iostream> using namespace std; main() { int n; if (n == 1) { cout << 0 << endl; } else { cout << 1 << endl; } }
#include <iostream> using namespace std; main() { int n; cin >> n; if (n == 1) { cout << 0 << endl; } else { cout << 1 << endl; } }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
37
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x = 0) cout << "1" << endl; else cout << "0" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x = 0; cin >> x; if (x == 0) cout << "1" << endl; else cout << "0" << endl; }
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
42
# cording:utf-8 # xを入力 x = int(input()) # xが0なら if x == 0: # 1を出力 print("0") elif x == 1: # 0を出力 print("1")
# cording:utf-8 # xを入力 x = int(input()) # xが0なら if x == 0: # 1を出力 print("1") elif x == 1: # 0を出力 print("0")
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
35
#include <iostream> using namespace std; int a; int main() { cin >> a; if (a = 1) { cout << 0 << endl; } else { cout << 1 << endl; } }
#include <iostream> using namespace std; int a; int main() { cin >> a; if (a == 1) { cout << 0 << endl; } else { cout << 1 << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
42
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define pb push_back #define all(n) n.begin(), n.end() void solve() { int x; cin >> x; if (x) cout << 1; else cout << 0; } int main() { solve(); }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; #define pb push_back #define all(n) n.begin(), n.end() void solve() { int x; cin >> x; if (!x) cout << 1; else cout << 0; } int main() { solve(); }
[["+", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111]]
1
61
num = int(input()) if(num == '1'): print('0') elif(num == '0'): print('1')
num = int(input()) if(num == 1): print('0') elif(num == 0): print('1')
[["-", 0, 57, 15, 23, 0, 666, 0, 557, 0, 654], ["-", 0, 57, 15, 23, 0, 666, 0, 557, 0, 655], ["-", 75, 665, 15, 23, 0, 666, 0, 557, 0, 654], ["-", 75, 665, 15, 23, 0, 666, 0, 557, 0, 655]]
5
38
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math") #pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #define f first #define s second #define fore(i, a, b) for (int i = (a), ThxMK = (b); i < ThxMK; ++i) #define pb push_back #define all(s) begin(s), end(s) #define _ ...
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math") #pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> #define f first #define s second #define fore(i, a, b) for (int i = (a), ThxMK = (b); i < ThxMK; ++i) #define pb push_back #define all(s) begin(s), end(s) #define _ ...
[["-", 0, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 1, 0, 16, 31, 16, 12, 103, 0, 125]]
1
122
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x = 0) cout << 1; else cout << 0; return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x == 0) cout << 1; else cout << 0; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
37
x=int(input()) if x==0: print(1) elif x==1: print(0) else: break
x=int(input()) if x==0: print(1) elif x==1: print(0)
[["-", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["-", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102], ["-", 0, 57, 75, 76, 8, 196, 0, 93, 0, 94]]
5
29
#include <stdio.h> int main() { int x; scanf("%d", &x); if (x) { printf("1"); } else { printf("0"); } return 0; }
#include <stdio.h> int main() { int x; scanf("%d", &x); if (x) { printf("0"); } else { printf("1"); } return 0; }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
47
a=int(input()) if a: print(1) else: print(0)
a=int(input()) if (not a): print(1) else: print(0)
[["+", 36, 36, 0, 656, 0, 57, 15, 23, 0, 24], ["+", 0, 656, 0, 57, 15, 23, 0, 681, 0, 372], ["+", 36, 36, 0, 656, 0, 57, 15, 23, 0, 25]]
5
21
x = gets.to_i x == 0 ? 1 : 0
x = gets.to_i p x == 0 ? 1 : 0
[["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]]
4
12
#include <bits/stdc++.h> using namespace std; #define pb push_back #define ll long long #define ld long double #define ar array #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; vector<string> split_string(string input_string) { string::iterator new_end = ...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define ll long long #define ld long double #define ar array #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; vector<string> split_string(string input_string) { string::iterator new_end = ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]]
1
1,578
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int x; cin >> x; if (x == 0) { cout << 1 << endl; } else if (x == 1) { cout << 1 << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; #define int long long int32_t main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int x; cin >> x; if (x == 0) { cout << 1 << endl; } else if (x == 1) { cout << 0 << endl; } return 0; }
[["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13]]
1
75
''' Created on 2020/09/13 @author: okazakieiichiro ''' num = input() if num == 0: print(1) else: print(0)
''' Created on 2020/09/13 @author: okazakieiichiro ''' num = int(input()) if num == 0: print(1) else: print(0)
[["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
23
/**Bismillahir Rahmanir Rahim.**/ /* Md.Fagun Molla 18ICTCSE006 BSMRSTU(SHIICT) */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; using ll = long long; using db = double; ///**************...
/**Bismillahir Rahmanir Rahim.**/ /* Md.Fagun Molla 18ICTCSE006 BSMRSTU(SHIICT) */ #include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; using namespace std; using ll = long long; using db = double; ///**************...
[["-", 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
328
x=bool(input()) x=not x print(int(x))
x=int(input()) x=not x print(int(x))
[["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22]]
5
19
x = input() if x == 0: print(1) else: print(0)
x = input() if int(x) == 0: print(1) else: print(0)
[["+", 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
20
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x == 0) cout << 0; else cout << 1; cout << endl; return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x == 0) cout << 1; else cout << 0; cout << endl; return 0; }
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13], ["-", 0, 57, 75, 76, 0, 1, 0, 16, 12, 13], ["+", 0, 57, 75, 76, 0, 1, 0, 16, 12, 13]]
1
41
x = int(input()) if x == 0: print(x) elif x == 1: print(x)
x = int(input()) if x == 0: print(1) elif x == 1: print(0)
[["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612]]
5
26
// Created by Ambesh kumar #include "bits/stdc++.h" // I already compile this file in my computer system to save the time // if get the compiler error then you should change this header to // #include "bits/stdc++.h" ---> #include <bits/stdc++.h> using namespace std; #define gc getchar_unlocked #define fo(i, n) for...
// Created by Ambesh kumar #include "bits/stdc++.h" // I already compile this file in my computer system to save the time // if get the compiler error then you should change this header to // #include "bits/stdc++.h" ---> #include <bits/stdc++.h> using namespace std; #define gc getchar_unlocked #define fo(i, n) for...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
417
from sys import stdin readline = stdin.readline # read = stdin.read def i_input(): return int(readline().rstrip()) def i_map(): return map(int, readline().rstrip().split()) def i_list(): return list(i_map()) def main(): print(0 if readline() == "1" else 1) if __name__ == "__main__": main()
from sys import stdin readline = stdin.readline def i_input(): return int(readline().rstrip()) def i_map(): return map(int, readline().rstrip().split()) def i_list(): return list(i_map()) def main(): print(0 if i_input() == 1 else 1) if __name__ == "__main__": main()
[["-", 3, 4, 0, 41, 0, 666, 0, 652, 63, 22], ["+", 3, 4, 0, 41, 0, 666, 0, 652, 63, 22], ["-", 3, 4, 0, 41, 0, 666, 0, 557, 0, 654], ["-", 3, 4, 0, 41, 0, 666, 0, 557, 0, 655]]
5
89
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x == 0) cout << 0 << endl; else cout << 1 << endl; return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; if (x == 0) cout << 1 << endl; else cout << 0 << endl; return 0; }
[["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["-", 75, 76, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 75, 76, 0, 1, 0, 16, 31, 16, 12, 13]]
1
41
#include <bits/stdc++.h> using namespace std; int main() { long long int a; cin >> a; if (a == 0) cout << "1"; else cout << a; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a; cin >> a; if (a == 0) cout << "1"; else cout << a - 1; return 0; }
[["+", 75, 76, 0, 1, 0, 16, 12, 16, 17, 33], ["+", 75, 76, 0, 1, 0, 16, 12, 16, 12, 13]]
1
41
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a = 1) cout << 0 << endl; else cout << 1 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a == 1) cout << 0 << endl; else cout << 1 << endl; }
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
38
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ull; typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; #define sync std::ios::sync_with_stdio(0), cin.tie(0), cout.tie(0) #define loopi(n) for (int i = 0; i < n; i++) #define loopj(n) for (int j ...
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ull; typedef long long ll; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; #define sync std::ios::sync_with_stdio(0), cin.tie(0), cout.tie(0) #define loopi(n) for (int i = 0; i < n; i++) #define loopj(n) for (int j ...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
205
print(0) if input == '1' else print(1)
print(0) if input() == '1' else print(1)
[["+", 0, 41, 0, 666, 0, 652, 3, 4, 0, 24], ["+", 0, 41, 0, 666, 0, 652, 3, 4, 0, 25]]
5
15
#include <iostream> using namespace std; int main() { int A, B; cin >> A >> B; if (A = 1) { cout << "0" << endl; } else { cout << "No" << endl; } }
#include <iostream> using namespace std; int main() { int A, B; cin >> A >> B; // Tとtimeの大小関係に応じて出力をする if (A == 1) { cout << "0" << endl; } else { cout << "1" << endl; } }
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
50
x = int(input()) if x != 1: print(0) else: print(1)
x = int(input()) if x == 1: print(0) else: print(1)
[["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 79], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 60]]
5
23
<?php $input = trim(fgets(STDIN)); if($input === 1){ echo 0; }else{ echo 1; } ?>
<?php $input = trim(fgets(STDIN)); if($input == 1){ echo 0; }else{ echo 1; } ?>
[["-", 0, 493, 0, 57, 15, 23, 0, 16, 17, 565], ["+", 0, 493, 0, 57, 15, 23, 0, 16, 17, 60]]
6
31
#include <bits/stdc++.h> using namespace std; int main() { int x; if (x == 0) cout << 1 << endl; else cout << 0 << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x == 0) cout << 1 << endl; else cout << 0 << endl; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
34
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x == 0) cout << 0; else cout << 1; }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x == 0) cout << 1; else cout << 0; }
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13], ["-", 0, 57, 75, 76, 0, 1, 0, 16, 12, 13], ["+", 0, 57, 75, 76, 0, 1, 0, 16, 12, 13]]
1
34
#include <bits/stdc++.h> #define ll long long #define f first #define s second #define mod 1000000007 #define N 500043 #define mp(a, b) make_pair(a, b) #define loop(a, b) for (int i = a; i < b; i++) #define test \ int t; ...
#include <bits/stdc++.h> #define ll long long #define f first #define s second #define mod 1000000007 #define N 500043 #define mp(a, b) make_pair(a, b) #define loop(a, b) for (int i = a; i < b; i++) #define test \ int t; ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]]
1
87
#include <bits/stdc++.h> #define ll long long int #define all(x) (x).begin(), (x).end() #define rep(i, a, b) for (int i = a; i < b; i++) #define pb push_back #define mp pke_pair #define inputv(a) forall(i, 0, a.size()) cin >> a[i] #define outputv(a) \ for (...
#include <bits/stdc++.h> #define ll long long int #define all(x) (x).begin(), (x).end() #define rep(i, a, b) for (int i = a; i < b; i++) #define pb push_back #define mp pke_pair #define inputv(a) forall(i, 0, a.size()) cin >> a[i] #define outputv(a) \ for (...
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13], ["-", 0, 57, 75, 76, 0, 1, 0, 16, 12, 13], ["+", 0, 57, 75, 76, 0, 1, 0, 16, 12, 13]]
1
291
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); sc.close(); if (N == 0) { System.out.println(1); } System.out.println(0); } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); sc.close(); if (N == 0) { System.out.println(1); } else { System.out.println(0); } } }
[["+", 8, 498, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 46]]
3
76
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a == 0) { cout << "0" << endl; } else { cout << "1" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; if (a == 0) { cout << "1" << endl; } else { cout << "0" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
46
if __name__ == "__main__": x = int(input()) if x == 1: print(0) else: print(x)
if __name__ == "__main__": x = int(input()) if x == 1: print(0) else: print(1)
[["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 612]]
5
30
#include <bits/stdc++.h> #define ll long long #define ld long double #define foi(a, n) for (int i = a; i < n; i++) #define ee 1000000007 #define pb push_back using namespace std; void solve() { ll n; cin >> n; if (n) { cout << 1; return; } else cout << 0; } int main() { int t = 1; //~ cin >> ...
#include <bits/stdc++.h> #define ll long long #define ld long double #define foi(a, n) for (int i = a; i < n; i++) #define ee 1000000007 #define pb push_back using namespace std; void solve() { ll n; cin >> n; if (n) { cout << 0; return; } else cout << 1; } int main() { int t = 1; //~ cin >> ...
[["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 13], ["-", 0, 57, 75, 76, 0, 1, 0, 16, 12, 13], ["+", 0, 57, 75, 76, 0, 1, 0, 16, 12, 13]]
1
85
#include <bits/stdc++.h> // #include <atcoder/all> using namespace std; // using namespace atcoder; #define DEBUG(x) cerr << #x << ": " << x << endl; #define DEBUG_VEC(v) \ cerr << #v << ":"; \ for...
#include <bits/stdc++.h> // #include <atcoder/all> using namespace std; // using namespace atcoder; #define DEBUG(x) cerr << #x << ": " << x << endl; #define DEBUG_VEC(v) \ cerr << #v << ":"; \ for...
[["-", 0, 1, 0, 16, 31, 16, 12, 16, 31, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 17, 33], ["+", 0, 1, 0, 16, 31, 16, 12, 16, 12, 22]]
1
870
x = int(input()) if x == 0: print('0') else: print('1')
x = int(input()) if x == 0: print('1') else: print('0')
[["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]]
5
27
#include <bits/stdc++.h> #include <cmath> #include <math.h> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vi>; using vl = vector<ll>; using vvl = vector<vl>; using vs = vector<string>; using vvs = vector<vs>; using vc = vector<char>; using vvc = vector<vc>; using vb = vector<boo...
#include <bits/stdc++.h> #include <cmath> #include <math.h> using namespace std; using ll = long long; using vi = vector<int>; using vvi = vector<vi>; using vl = vector<ll>; using vvl = vector<vl>; using vs = vector<string>; using vvs = vector<vs>; using vc = vector<char>; using vvc = vector<vc>; using vb = vector<boo...
[["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["-", 75, 76, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 75, 76, 0, 1, 0, 16, 31, 16, 12, 13]]
1
614
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) sort(v.begin(), v.end()) typedef long long ll; using Graph = vector<vector<int>>; int main() { int x; cin >> x; if (x == 0) { cout << 0 << endl; } else { cout << 1 << endl; } }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) sort(v.begin(), v.end()) typedef long long ll; using Graph = vector<vector<int>>; int main() { int x; cin >> x; if (x == 0) { cout << "1" << endl; } else { cout << "0" << endl; } }
[["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 31, 16, 12, 13]]
1
72
x = int(input()) print(0) if x ==1 else(1)
x = int(input()) print(0) if x ==1 else(print(1))
[["+", 0, 1, 0, 41, 0, 23, 0, 652, 63, 22], ["+", 0, 41, 0, 23, 0, 652, 3, 4, 0, 24], ["+", 0, 41, 0, 23, 0, 652, 3, 4, 0, 25]]
5
20
#include <bits/stdc++.h> using ll = long long; using ull = unsigned long long; using namespace std; constexpr int inf = 1 << 30; constexpr int mo = 1e9 + 7; constexpr ll infl = 1ll << 60; int main() { cin.tie(nullptr); std::ios::sync_with_stdio(false); int x; cin >> x; if (x) cout << 1 << endl; else ...
#include <bits/stdc++.h> using ll = long long; using ull = unsigned long long; using namespace std; constexpr int inf = 1 << 30; constexpr int mo = 1e9 + 7; constexpr ll infl = 1ll << 60; int main() { cin.tie(nullptr); std::ios::sync_with_stdio(false); int x; cin >> x; if (x == 0) cout << 1 << endl; ...
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
92
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define int long long #define double long double #define stp setprecision #define pb push_back #define ppb pop_back #define emb emplace_back #define vi vector<int> #define rep(i, n) for (int i = 0; i < n; i++) #define ren(i, n) for (int i = n - 1; i >= 0; ...
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define int long long #define double long double #define stp setprecision #define pb push_back #define ppb pop_back #define emb emplace_back #define vi vector<int> #define rep(i, n) for (int i = 0; i < n; i++) #define ren(i, n) for (int i = n - 1; i >= 0; ...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
291
// Har Har Mahadev using namespace std; #include <bits/stdc++.h> #define booga cout << "booga" << endl #define ll long long int #define pb push_back #define mp make_pair #define debug(args...) \ { ...
// Har Har Mahadev using namespace std; #include <bits/stdc++.h> #define booga cout << "booga" << endl #define ll long long int #define pb push_back #define mp make_pair #define debug(args...) \ { ...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
156
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pb push_back #define sf(x) scanf("%d", &x) #define sfl(x) scanf("%lld", &x) #define pf(x) printf("%d\n", x) #define pfl(x) printf("%lld\n", x) #define endl '\n' #define pii pair<int, int> #define mapii map<int, int> #define mapll map<ll, ll> #...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define pb push_back #define sf(x) scanf("%d", &x) #define sfl(x) scanf("%lld", &x) #define pf(x) printf("%d\n", x) #define pfl(x) printf("%lld\n", x) #define endl '\n' #define pii pair<int, int> #define mapii map<int, int> #define mapll map<ll, ll> #...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
180
# coding: utf-8 def solve(*args: str) -> str: x = args[0] return '0' if x == '1' else '0' if __name__ == "__main__": print(solve(*(open(0).read().splitlines())))
# coding: utf-8 def solve(*args: str) -> str: x = args[0] return '0' if x == '1' else '1' if __name__ == "__main__": print(solve(*(open(0).read().splitlines())))
[["-", 8, 196, 0, 37, 0, 41, 0, 557, 0, 6], ["+", 8, 196, 0, 37, 0, 41, 0, 557, 0, 6]]
5
60
#include <algorithm> #include <bitset> #include <iomanip> #include <iostream> #include <list> #include <math.h> #include <numeric> #include <sstream> #include <string> #include <vector> using namespace std; int main() { int x; cin >> x; if (x == 0) { cout << 0 << endl; } else { cout << 1 << endl; }...
#include <algorithm> #include <bitset> #include <iomanip> #include <iostream> #include <list> #include <math.h> #include <numeric> #include <sstream> #include <string> #include <vector> using namespace std; int main() { int x; cin >> x; if (x == 0) { cout << 1 << endl; } else { cout << 0 << endl; }...
[["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["-", 0, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 9, 0, 1, 0, 16, 31, 16, 12, 13]]
1
63
/* 競プロ用のテンプレ * SKMT * 作成日 2020年09月13日 20:59 * ファイル名 a.cpp */ #include <bits/stdc++.h> using namespace std; typedef long long ll; // long long型をllで #define rep(i, n) for (int i = 0; i < n; i++) int main(int argc, char const *argv[]) { int x; cin >> x; if (x == 0) { cout << 1 << endl; } else { ...
/* 競プロ用のテンプレ * SKMT * 作成日 2020年09月13日 20:59 * ファイル名 a.cpp */ #include <bits/stdc++.h> using namespace std; typedef long long ll; // long long型をllで #define rep(i, n) for (int i = 0; i < n; i++) int main(int argc, char const *argv[]) { int x; cin >> x; if (x == 0) { cout << 1 << endl; } else { ...
[["-", 0, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 9, 0, 1, 0, 16, 31, 16, 12, 13]]
1
69
x=int(input()) if x == 0: print(1) elif x !=1: print(0)
x=int(input()) if x == 0: print(1) elif x ==1: print(0)
[["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 79], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 60]]
5
26
x=int(input()) ans=1+(-1)*x print(x)
x=int(input()) ans=1+(-1)*x print(ans)
[["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22]]
5
22
X = int(input()) if X == "0": print("1") elif X == "1": print("0")
X = int(input()) if X == 0: print("1") elif X == 1: print("0")
[["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["-", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655], ["-", 0, 57, 75, 665, 15, 666, 0, 557, 0, 654], ["-", 0, 57, 75, 665, 15, 666, 0, 557, 0, 655]]
5
34
#include <bits/stdc++.h> #define ll int #define db long double #define ull unsigned long long int // #define mp make_pair #define F first #define S second #define pb push_back #define rep(i, a, b) for (ll i = a; i <= b; i++) #define all(a) a.begin(), a.end() #define Nmax 1000005 // #define INF 10000000000000 #define MO...
#include <bits/stdc++.h> #define ll int #define db long double #define ull unsigned long long int // #define mp make_pair #define F first #define S second #define pb push_back #define rep(i, a, b) for (ll i = a; i <= b; i++) #define all(a) a.begin(), a.end() #define Nmax 1000005 // #define INF 10000000000000 #define MO...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
119
// Think simple yet elegant. #include <bits/stdc++.h> using namespace std; #define fast \ ios::sync_with_stdio(0); \ cin.tie(0); \ ...
// Think simple yet elegant. #include <bits/stdc++.h> using namespace std; #define fast \ ios::sync_with_stdio(0); \ cin.tie(0); \ ...
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13], ["-", 0, 57, 75, 76, 0, 1, 0, 16, 12, 13], ["+", 0, 57, 75, 76, 0, 1, 0, 16, 12, 13]]
1
87
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <ext/pb_ds/trie_policy.hpp> #include <ext/rope> using namespace std; using namespace __gnu_pbds; using namespace __gnu_cxx; #define fef(i, a, b) for (ll i = a; i <= b; i++) #define rer(i, a, b) for (ll i = ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include <ext/pb_ds/trie_policy.hpp> #include <ext/rope> using namespace std; using namespace __gnu_pbds; using namespace __gnu_cxx; #define fef(i, a, b) for (ll i = a; i <= b; i++) #define rer(i, a, b) for (ll i = ...
[["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
293
#include <cmath> #include <iostream> #include <stdio.h> using namespace std; bool is_integer(double x) { return floor(x) == ceil(x); } int main() { int x; cin >> x; if (x == 1) { cout << "1" << endl; } else { cout << "0" << endl; } }
#include <cmath> #include <iostream> #include <stdio.h> using namespace std; bool is_integer(double x) { return floor(x) == ceil(x); } int main() { int x; cin >> x; if (x == 1) { cout << "0" << endl; } else { cout << "1" << endl; } }
[["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]]
1
69
#include <bits/stdc++.h> using namespace std; // (POLICY BASED DS) // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; // template<typename T> // using // ordered_set=tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistic...
#include <bits/stdc++.h> using namespace std; // (POLICY BASED DS) // #include <ext/pb_ds/assoc_container.hpp> // #include <ext/pb_ds/tree_policy.hpp> // using namespace __gnu_pbds; // template<typename T> // using // ordered_set=tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistic...
[["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 62], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 57, 64, 1, 0, 16, 12, 13], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 62], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 75, 76, 0, 1, 0, 16, 12, 13]]
1
288
#include <bits/stdc++.h> using namespace std; /******* All Required define Pre-Processors and typedef Constants *******/ #define rep(i, n) for (int i = 0; i < (n); ++i) #define rep2(i, a, b) for (int i = a; i <= (b); ++i) #define rep3(i, a, b) for (int i = a; i >= (b); --i) #define all(cont) cont.begin(), cont.end() #...
#include <bits/stdc++.h> using namespace std; /******* All Required define Pre-Processors and typedef Constants *******/ #define rep(i, n) for (int i = 0; i < (n); ++i) #define rep2(i, a, b) for (int i = a; i <= (b); ++i) #define rep3(i, a, b) for (int i = a; i >= (b); --i) #define all(cont) cont.begin(), cont.end() #...
[["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["-", 75, 76, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 75, 76, 0, 1, 0, 16, 31, 16, 12, 13]]
1
862
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x = 0) cout << 1; else cout << 0; cout << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int x; cin >> x; if (x == 0) cout << 1; else cout << 0; cout << endl; return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
41
x=int(input()) print(1 if x==0 else 1)
x=int(input()) print(1 if x==0 else 0)
[["-", 0, 1, 0, 652, 3, 4, 0, 41, 0, 612], ["+", 0, 1, 0, 652, 3, 4, 0, 41, 0, 612]]
5
18
#include <bits/stdc++.h> #include <map> #include <queue> #include <set> #include <stack> #include <string.h> #include <vector> #define endl "\n" #define ll long long #define int long long #define fast \ ios_base::sync_with_stdio(false); ...
#include <bits/stdc++.h> #include <map> #include <queue> #include <set> #include <stack> #include <string.h> #include <vector> #define endl "\n" #define ll long long #define int long long #define fast \ ios_base::sync_with_stdio(false); ...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 13]]
1
173
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); if (x == 0) { System.out.println("0"); } else if (x == 1) { System.out.println("1"); } } }
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); if (x == 0) { System.out.println("1"); } else if (x == 1) { System.out.println("0"); } } }
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
83
#include <bits/stdc++.h> using namespace std; int main() { int n; if (n == 0) { cout << 1 << endl; return 0; } if (n == 1) { cout << 0 << endl; return 0; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n == 0) { cout << 1 << endl; return 0; } if (n == 1) { cout << 0 << endl; return 0; } return 0; }
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
52
#include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair using namespace std; int main() { int t = 1; // cin >> t; while (t--) { ll n; cin >> n; return n == 0; } }
#include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair using namespace std; int main() { int t = 1; // cin >> t; while (t--) { ll n; cin >> n; cout << (n == 0); } }
[["-", 8, 9, 0, 52, 8, 9, 0, 37, 0, 38], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 23, 0, 24], ["+", 8, 9, 0, 1, 0, 16, 12, 23, 0, 25]]
1
46
#include <bits/stdc++.h> using namespace std; #define mem(a, b) memset(a, b, sizeof a); typedef pair<int, int> pii; #define vi vector<int> #define vit vector<int>::iterator #define all(ans) ans.begin(), ans.end() //#define sz(a) int(a.size()) #define ub upper_bound #define lb lower_bound #define create(Name, N, M, val)...
#include <bits/stdc++.h> using namespace std; #define mem(a, b) memset(a, b, sizeof a); typedef pair<int, int> pii; #define vi vector<int> #define vit vector<int>::iterator #define all(ans) ans.begin(), ans.end() //#define sz(a) int(a.size()) #define ub upper_bound #define lb lower_bound #define create(Name, N, M, val)...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
374
x=int(input()) print(['0','1'][x==1])
x=int(input()) print(['1','0'][x==1])
[["-", 3, 4, 0, 206, 51, 634, 0, 557, 0, 6], ["+", 3, 4, 0, 206, 51, 634, 0, 557, 0, 6]]
5
25
N = int(input) if N ==0: print(1) else: print(0)
N = int(input()) if N ==0: print(1) else: print(0)
[["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]]
5
21
#include <algorithm> #include <bits/stdc++.h> #include <iomanip> #include <math.h> #include <queue> #include <string> #include <vector> using namespace std; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < n; i++) #define rep_1 (i, j, n) for (int i = j; i < n; i++) typedef long long ll; const ll...
#include <algorithm> #include <bits/stdc++.h> #include <iomanip> #include <math.h> #include <queue> #include <string> #include <vector> using namespace std; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < n; i++) #define rep_1 (i, j, n) for (int i = j; i < n; i++) typedef long long ll; const ll...
[["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 13], ["-", 75, 76, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 75, 76, 0, 1, 0, 16, 31, 16, 12, 13]]
1
175
n=input() if n==1: print("0") else: print("1")
n=input() if n=="1": print("0") else: print("1")
[["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 654], ["+", 0, 656, 0, 57, 15, 666, 0, 557, 0, 655]]
5
24
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) const int INF = 1001001001; using ll = long long; using P = pair<int, int>; using Graph = vector<string>; Graph field; queue<P> q; int main() { ll ans, d, t, s; cin >> ans; if (ans = 1) { cout << 0 << endl; } else...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) const int INF = 1001001001; using ll = long long; using P = pair<int, int>; using Graph = vector<string>; Graph field; queue<P> q; int main() { ll ans, d, t, s; cin >> ans; if (ans == 1) { cout << 0 << endl; } els...
[["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]]
1
95
import java.awt.*; import java.io.*; import java.util.*; public class Main { Scanner sc = new Scanner(System.in); public static void main(String[] args) { new Main(); } public Main() { new TestA().doIt(); } class TestA { void doIt() { int n = sc.nextInt(); if (n == 0) System.out.println...
import java.awt.*; import java.io.*; import java.util.*; public class Main { Scanner sc = new Scanner(System.in); public static void main(String[] args) { new Main(); } public Main() { new TestA().doIt(); } class TestA { void doIt() { int n = sc.nextInt(); if (n == 0) System.out.println...
[["+", 0, 57, 75, 1, 0, 492, 3, 4, 0, 499]]
3
112
#include <bits/stdc++.h> #include <cstdio> using namespace std; typedef long long int ll; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false;...
#include <bits/stdc++.h> #include <cstdio> using namespace std; typedef long long int ll; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false;...
[["-", 8, 9, 0, 57, 64, 1, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 64, 1, 0, 11, 17, 32], ["-", 0, 57, 75, 76, 0, 1, 0, 16, 17, 60], ["+", 0, 57, 75, 76, 0, 1, 0, 11, 17, 32]]
1
129
/* Author : Nishant Gupta 2.0 */ #include <bits/stdc++.h> using namespace std; #define LL long long int #define getcx getchar_unlocked #define X first #define Y second #define PB push_back #define MP make_pair #define MAX 100005 #define LOG_MAX 20 #define MOD 1000000007 #define INF 0x3f3f3f3f #define INFL (LL(1e18...
/* Author : Nishant Gupta 2.0 */ #include <bits/stdc++.h> using namespace std; #define LL long long int #define getcx getchar_unlocked #define X first #define Y second #define PB push_back #define MP make_pair #define MAX 100005 #define LOG_MAX 20 #define MOD 1000000007 #define INF 0x3f3f3f3f #define INFL (LL(1e18...
[["-", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
228
#include <bits/stdc++.h> const double PI = acos(-1); #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int findSumOfDigits(int n) { int sum = 0; while (n > 0) { // n が 0 になるまで sum += n % 10; n /= 10; } return sum; } int main() { int x; if (x == 1) cout << 0 << endl; els...
#include <bits/stdc++.h> const double PI = acos(-1); #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int findSumOfDigits(int n) { int sum = 0; while (n > 0) { // n が 0 になるまで sum += n % 10; n /= 10; } return sum; } int main() { int x; cin >> x; if (x == 1) cout << 0 <<...
[["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]]
1
86
#include <bits/stdc++.h> using namespace std; #define ll long long #define in(a) \ ll a; \ cin >> a; #define in2(a, b) ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define in(a) \ ll a; \ cin >> a; #define in2(a, b) ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
632
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N == 0) { cout << 1 << endl; } else { cout << 1 << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; if (N == 0) { cout << 1 << endl; } else { cout << 0 << endl; } }
[["-", 0, 9, 0, 1, 0, 16, 31, 16, 12, 13], ["+", 0, 9, 0, 1, 0, 16, 31, 16, 12, 13]]
1
42
#include <bits/stdc++.h> #define zton(i, n) for (int i = 0; i <= n; i++) #define oneton(i, n) for (int i = 1; i <= n; i++) #define fo(i, n) for (int i = 0; i < n; i++) #define fab(i, a, b) for (int i = a; i < b; i++) #define loop(i, b, a) for (int i = a; i >= b; i--) #define dsort(arr, n) sort(arr, arr + n, greater<in...
#include <bits/stdc++.h> #define zton(i, n) for (int i = 0; i <= n; i++) #define oneton(i, n) for (int i = 1; i <= n; i++) #define fo(i, n) for (int i = 0; i < n; i++) #define fab(i, a, b) for (int i = a; i < b; i++) #define loop(i, b, a) for (int i = a; i >= b; i--) #define dsort(arr, n) sort(arr, arr + n, greater<in...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 78]]
1
439
def main(): x = int(input()) if x == 0: print(1) else: print(1) if __name__ == "__main__": main()
def main(): x = int(input()) if x == 0: print(1) else: print(0) if __name__ == "__main__": main()
[["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 612]]
5
38
#include <utility> #include <vector> using ll = long long; static constexpr ll mod = 998244353; using T = std::pair<ll, ll>; T op(T l, T r) { return {(l.first * r.second + r.first % mod), (l.second * r.second) % mod}; } T id() { return {0, 1}; } class assign_segment_tree { private: class node { public: T...
#include <utility> #include <vector> using ll = long long; static constexpr ll mod = 998244353; using T = std::pair<ll, ll>; T op(T l, T r) { return {(l.first * r.second + r.first) % mod, (l.second * r.second) % mod}; } T id() { return {0, 1}; } class assign_segment_tree { private: class node { public: T...
[["+", 0, 37, 0, 83, 0, 16, 31, 23, 0, 25], ["-", 8, 9, 0, 37, 0, 83, 0, 23, 0, 25]]
1
895
#include "algorithm" #include "bitset" #include "cassert" #include "climits" #include "cmath" #include "cstdio" #include "ctime" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "str...
#include "algorithm" #include "bitset" #include "cassert" #include "climits" #include "cmath" #include "cstdio" #include "ctime" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "str...
[["-", 8, 9, 0, 57, 15, 339, 51, 91, 17, 111]]
1
1,668
#include <algorithm> #include <array> #include <bitset> #include <cassert> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define vll vector<ll> #define vvvl vector<vvl> #define vvl vector<...
#include <algorithm> #include <array> #include <bitset> #include <cassert> #include <cmath> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> #define vll vector<ll> #define vvvl vector<vvl> #define vvl vector<...
[["-", 31, 23, 0, 16, 31, 69, 341, 342, 0, 13], ["+", 31, 23, 0, 16, 31, 69, 341, 342, 0, 22]]
1
4,350
// editorial #include <iostream> #include <set> #include <vector> using namespace std; // 簡易UF struct UF { vector<int> p, m; int n; UF(int siz) { n = siz; p.resize(n, 0); m.resize(n, 1); for (int i = 0; i < n; i++) p[i] = i; } int parent(int x) { if (p[x] != x) p[x] = parent...
// editorial #include <iostream> #include <set> #include <vector> using namespace std; // 簡易UF struct UF { vector<int> p, m; int n; UF(int siz) { n = siz; p.resize(n, 0); m.resize(n, 1); for (int i = 0; i < n; i++) p[i] = i; } int parent(int x) { if (p[x] != x) p[x] = parent...
[["+", 8, 9, 0, 57, 64, 9, 0, 43, 0, 35], ["+", 0, 57, 64, 9, 0, 1, 0, 27, 28, 22]]
1
446
#include "bits/stdc++.h" using namespace std; struct UnionFind { vector<int> par; UnionFind(int n) : par(n, -1) {} void init(int n) { par.assign(n, -1); } int root(int x) { if (par[x] < 0) return x; else return par[x] = root(par[x]); } bool issame(int x, int y) { return root(x) == ro...
#include "bits/stdc++.h" using namespace std; struct UnionFind { vector<int> par; UnionFind(int n) : par(n, -1) {} void init(int n) { par.assign(n, -1); } int root(int x) { if (par[x] < 0) return x; else return par[x] = root(par[x]); } bool issame(int x, int y) { return root(x) == ro...
[["-", 0, 2, 3, 4, 0, 118, 28, 69, 28, 22], ["-", 3, 4, 0, 118, 28, 69, 341, 342, 0, 70], ["-", 3, 4, 0, 118, 28, 69, 341, 342, 0, 22], ["-", 3, 4, 0, 118, 28, 69, 341, 342, 0, 73], ["-", 0, 1, 0, 2, 3, 4, 0, 118, 17, 131], ["-", 0, 1, 0, 2, 3, 4, 0, 118, 119, 120], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
1
485
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <unordered_map> #include <vector> #define MOD 1000000007 #...
#include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <unordered_map> #include <vector> #define MOD 1000000007 #...
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
1
1,252
#include <bits/stdc++.h> // clang-format off using namespace std; using ll = int64_t; using ull = uint64_t; const ll INF = 9e18; void print() { cout << endl; } template<typename Head,typename... Tail> void print(Head head,Tail... tail){cout<<head;if(sizeof...(Tail)>0)cout<<" ";print(tail...);} void print0() {} template...
#include <bits/stdc++.h> // clang-format off using namespace std; using ll = int64_t; using ull = uint64_t; const ll INF = 9e18; void print() { cout << endl; } template<typename Head,typename... Tail> void print(Head head,Tail... tail){cout<<head;if(sizeof...(Tail)>0)cout<<" ";print(tail...);} void print0() {} template...
[["+", 28, 69, 341, 342, 0, 2, 63, 118, 28, 22], ["+", 28, 69, 341, 342, 0, 2, 63, 118, 17, 131], ["+", 28, 69, 341, 342, 0, 2, 63, 118, 119, 120], ["+", 28, 69, 341, 342, 0, 2, 3, 4, 0, 24], ["+", 28, 69, 341, 342, 0, 2, 3, 4, 0, 25]]
1
1,124
#include <algorithm> #include <algorithm> #include <cassert> #include <vector> namespace atcoder { // Implement (union by size) + (path compression) // Reference: // Zvi Galil and Giuseppe F. Italiano, // Data structures and algorithms for disjoint set union problems struct dsu { public: dsu() : _n(0) {} dsu(int...
#include <algorithm> #include <algorithm> #include <cassert> #include <vector> namespace atcoder { // Implement (union by size) + (path compression) // Reference: // Zvi Galil and Giuseppe F. Italiano, // Data structures and algorithms for disjoint set union problems struct dsu { public: dsu() : _n(0) {} dsu(int...
[["+", 64, 9, 0, 57, 15, 339, 51, 91, 17, 111], ["+", 0, 57, 15, 339, 51, 91, 28, 23, 0, 24], ["+", 0, 57, 15, 339, 51, 91, 28, 23, 0, 25]]
1
913
import sys input = sys.stdin.readline class Unionfind: def __init__(self,n): self.uf = [-1]*n def find(self,x): if self.uf[x] < 0: return x else: self.uf[x] = self.find(self.uf[x]) return self.uf[x] def same(self,x,y): return sel...
import sys input = sys.stdin.readline class Unionfind: def __init__(self,n): self.uf = [-1]*n def find(self,x): if self.uf[x] < 0: return x else: self.uf[x] = self.find(self.uf[x]) return self.uf[x] def same(self,x,y): return sel...
[["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 0, 52, 8, 196, 0, 57, 15, 666, 667, 47], ["-", 0, 57, 64, 196, 0, 1, 0, 662, 12, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 662, 12, 22]]
5
388
n, q = map(int, input().split()) l = [0]*n; u = [0]*n; lmin = n-2; umin = n-2; lgoal = n; ugoal = n for _ in range(q): s, t = map(int, input().split()) if s == 1: if t > ugoal+1: u[t-1] = 0 else: for i in range(t, ugoal-1):u[i] = umin lmin = t-2; ugoal = t else: ...
n, q = map(int, input().split()) l = [0]*n; u = [0]*n; lmin = n-2; umin = n-2; lgoal = n; ugoal = n for _ in range(q): s, t = map(int, input().split()) if s == 1: if t > ugoal: u[t-1] = 0 else: for i in range(t, ugoal-1):u[i] = umin lmin = t-2; ugoal = t else: ...
[["-", 64, 196, 0, 57, 15, 666, 0, 657, 17, 72], ["-", 64, 196, 0, 57, 15, 666, 0, 657, 12, 612], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 17, 72], ["-", 8, 196, 0, 57, 15, 666, 0, 657, 12, 612]]
5
186