結果

問題 No.2314 Backflip
ユーザー DenmonikDenmonik
提出日時 2023-06-02 01:28:48
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 778 bytes
コンパイル時間 2,006 ms
コンパイル使用メモリ 198,732 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-28 02:15:22
合計ジャッジ時間 2,692 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 1 ms
4,376 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

//#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;
}
0