結果

問題 No.104 国道
ユーザー A AA A
提出日時 2024-03-12 22:59:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 188 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 667,352 KB
最終ジャッジ日時 2024-03-12 22:59:55
合計ジャッジ時間 3,448 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
9,856 KB
testcase_01 AC 26 ms
9,856 KB
testcase_02 AC 27 ms
10,240 KB
testcase_03 RE -
testcase_04 AC 28 ms
9,856 KB
testcase_05 AC 25 ms
9,856 KB
testcase_06 AC 27 ms
9,856 KB
testcase_07 AC 25 ms
9,856 KB
testcase_08 AC 26 ms
9,856 KB
testcase_09 AC 25 ms
9,856 KB
testcase_10 AC 26 ms
9,856 KB
testcase_11 AC 26 ms
9,856 KB
testcase_12 AC 27 ms
10,240 KB
testcase_13 AC 31 ms
14,976 KB
testcase_14 AC 80 ms
50,976 KB
testcase_15 MLE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

converted_string = ''.join(['0' if x == 'L' else '1' for x in input()])
n = len(converted_string)
i = int(converted_string, 2)
line_n = list(range(2 ** n, (2 ** (n + 1))))
print(line_n[i])
0