結果
問題 | No.2314 Backflip |
ユーザー |
![]() |
提出日時 | 2023-06-15 14:20:03 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 157 bytes |
コンパイル時間 | 633 ms |
コンパイル使用メモリ | 26,880 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 14:34:27 |
合計ジャッジ時間 | 687 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
#include <stdio.h>#include<string.h>int main(){int n;char s[9];scanf("%s",&s);n = strlen(s)-1;s[n] - '0' ? s[n] = '0':(s[n] = '1');puts(s);}