結果
| 問題 |
No.2314 Backflip
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-02 01:28:48 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 778 bytes |
| コンパイル時間 | 2,109 ms |
| コンパイル使用メモリ | 194,016 KB |
| 最終ジャッジ日時 | 2025-02-13 17:24:40 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 |
ソースコード
//#pragma GCC optimize("Ofast,unroll-loops") // let the chaos begin!
//#pragma GCC target("avx,avx2,fma,tune=native")
//#pragma GCC comment(linker, "/stack:200000000")
#include <bits/stdc++.h>
using namespace std;
#define int int64_t
#define fi first
#define se second
mt19937_64 gen(chrono::steady_clock::now().time_since_epoch().count());
const int N = 2e5 + 5;
void solve(){
string s;
cin >> s;
cout << s.substr(0,s.size() - 1) << (s[s.size() - 1] == '1' ? '0' : '1');
}
int32_t main()
{
#ifdef LOCAL
freopen ("input.txt", "r", stdin);
freopen ("output.txt", "w", stdout);
#endif //LOCAL
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
int qq = 1;
// cin >> qq;
while(qq--){
solve();
}
return 0;
}