結果
問題 | No.2314 Backflip |
ユーザー |
|
提出日時 | 2023-05-31 10:41:38 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 146 bytes |
コンパイル時間 | 3,038 ms |
コンパイル使用メモリ | 244,336 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-28 13:35:28 |
合計ジャッジ時間 | 3,690 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 8 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main() { string s; cin >> s; cout << s.substr(0, s.size()-1) << (char)(s.back()^'1') << endl; }