結果
問題 |
No.2314 Backflip
|
ユーザー |
![]() |
提出日時 | 2023-07-07 17:16:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 343 bytes |
コンパイル時間 | 830 ms |
コンパイル使用メモリ | 98,820 KB |
最終ジャッジ日時 | 2025-02-15 06:36:03 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
#include<iostream> #include<string> #include<algorithm> #include<cctype> #include<set> #include<bitset> #include<math.h> #include<map> #include<queue> using namespace std; int main(){ string s, x; cin >> s; x = s[s.size()-1]; s.pop_back(); cout << s; if(x == "1") cout << "0" << endl; else cout << "1" << endl; }