結果
問題 |
No.2314 Backflip
|
ユーザー |
![]() |
提出日時 | 2023-06-23 17:03:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 398 bytes |
コンパイル時間 | 454 ms |
コンパイル使用メモリ | 41,088 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 21:09:14 |
合計ジャッジ時間 | 1,186 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
/* -*- coding: utf-8 -*- * * 2314.cc: No.2314 Backflip - yukicoder */ #include<cstdio> #include<cstring> #include<algorithm> using namespace std; /* constant */ const int MAX_N = 8; /* typedef */ /* global variables */ char s[MAX_N + 4]; /* subroutines */ /* main */ int main() { scanf("%s", s); int n = strlen(s); s[n - 1] = '1' - (s[n - 1] - '0'); puts(s); return 0; }