結果
問題 | No.2314 Backflip |
ユーザー |
|
提出日時 | 2023-05-26 21:21:35 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 267 bytes |
コンパイル時間 | 5,046 ms |
コンパイル使用メモリ | 250,344 KB |
最終ジャッジ日時 | 2025-02-13 05:29:46 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
#include<bits/stdc++.h> using namespace std; #include<atcoder/all> using namespace atcoder; using ll = long long; string s; void solve(){ s.back() ^= '0'^'1'; cout<<s<<endl; } signed main(){ cin.tie(nullptr); ios::sync_with_stdio(false); cin >> s; solve(); }