結果
問題 |
No.2314 Backflip
|
ユーザー |
![]() |
提出日時 | 2023-05-28 14:53:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 171 bytes |
コンパイル時間 | 1,669 ms |
コンパイル使用メモリ | 165,752 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-27 03:23:47 |
合計ジャッジ時間 | 2,275 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >> S; int x=S.size()-1; if(S[x]==0) { S[x]=1; } else { S[x]=0; } cout << S << endl; }