結果
問題 | No.2314 Backflip |
ユーザー | ruthen71 |
提出日時 | 2023-05-26 21:47:09 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 693 bytes |
コンパイル時間 | 1,896 ms |
コンパイル使用メモリ | 200,556 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-25 06:06:30 |
合計ジャッジ時間 | 2,420 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; #define REP(i, n) for (int i = 0; i < (n); i++) template<class T> using V = vector<T>; template<class T> ostream &operator<<(ostream &os, const V<T> &v) { os << "[ "; for (auto &vi: v) os << vi << ", "; return os << "]"; } template<class T, class U> ostream &operator<<(ostream &os, const pair<T, U> &p) { return os << "{ " << p.first << ", " << p.second << "}"; } #ifdef LOCAL #define show(x) cerr << __LINE__ << " : " << #x << " = " << x << endl; #else #define show(x) true #endif int main() { string S; cin >> S; S.back() = 1 - S.back() + '0' + '0'; cout << S << '\n'; return 0; }