結果
問題 | No.2314 Backflip |
ユーザー |
|
提出日時 | 2023-05-27 19:47:17 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 625 bytes |
コンパイル時間 | 1,877 ms |
コンパイル使用メモリ | 165,256 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 03:26:22 |
合計ジャッジ時間 | 2,277 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h>// #include <atcoder/dsu>// #include <atcoder/modint>using namespace std;// using namespace atcoder;#define SZ(x) (int)(x).size()#define dout(x) printf("%.10f\n", (double)(x))#define ALL(s) (s).begin(), (s).end()#define so(V) sort(ALL(V))#define rev(V) reverse(ALL(V))typedef pair<int, int> P;typedef pair<long, long> Pl;typedef vector<vector<int>> vvi;typedef vector<vector<long>> vvl;int main(){string S;cin >> S;if (S[SZ(S) - 1] == '0'){S[SZ(S) - 1] = '1';}else{S[SZ(S) - 1] = '0';}cout << S << endl;return 0;}