結果

問題 No.2314 Backflip
ユーザー bluemeganebluemegane
提出日時 2023-05-26 21:44:16
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 1,026 ms
コンパイル使用メモリ 65,376 KB
実行使用メモリ 22,592 KB
最終ジャッジ日時 2023-08-26 10:59:58
合計ジャッジ時間 2,462 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
22,532 KB
testcase_01 AC 46 ms
22,520 KB
testcase_02 AC 47 ms
20,624 KB
testcase_03 AC 46 ms
20,552 KB
testcase_04 AC 47 ms
22,452 KB
testcase_05 AC 46 ms
22,592 KB
testcase_06 AC 47 ms
20,432 KB
testcase_07 AC 48 ms
20,688 KB
testcase_08 AC 47 ms
22,472 KB
testcase_09 AC 46 ms
20,568 KB
testcase_10 AC 46 ms
20,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;

public class Hello
{
    static void Main()
    {
        var s = Console.ReadLine().Trim();
        var n = s.Length;
        var ans = s.Substring(0, n - 1);
        ans += s[n - 1] == '0' ? '1' : '0';
        Console.WriteLine(ans);
    }
}
0