結果

問題 No.104 国道
ユーザー しらゆきしらゆき
提出日時 2015-11-19 16:18:35
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 269 bytes
コンパイル時間 1,877 ms
コンパイル使用メモリ 102,448 KB
実行使用メモリ 22,692 KB
最終ジャッジ日時 2023-10-11 18:04:48
合計ジャッジ時間 3,998 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,588 KB
testcase_01 AC 54 ms
20,416 KB
testcase_02 AC 54 ms
22,576 KB
testcase_03 AC 52 ms
22,552 KB
testcase_04 AC 54 ms
20,628 KB
testcase_05 AC 55 ms
20,520 KB
testcase_06 AC 53 ms
20,400 KB
testcase_07 AC 54 ms
22,672 KB
testcase_08 AC 54 ms
20,504 KB
testcase_09 AC 54 ms
20,552 KB
testcase_10 AC 55 ms
22,692 KB
testcase_11 AC 54 ms
20,588 KB
testcase_12 AC 54 ms
20,432 KB
testcase_13 AC 55 ms
22,460 KB
testcase_14 AC 54 ms
20,652 KB
testcase_15 AC 54 ms
20,608 KB
testcase_16 AC 54 ms
20,648 KB
testcase_17 AC 53 ms
20,564 KB
testcase_18 AC 53 ms
20,584 KB
testcase_19 AC 54 ms
20,576 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class Program
{
    static void Main()
    {
        string s = Console.ReadLine();

        s = s.Replace("L", "0");
        s = s.Replace("R", "1");
        s = "1" + s;

        int ans = Convert.ToInt32(s, 2);

        Console.WriteLine(ans);
    }
}
0