結果
問題 | No.104 国道 |
ユーザー | A A |
提出日時 | 2024-03-12 22:59:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 188 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 668,076 KB |
最終ジャッジ日時 | 2024-09-29 22:27:22 |
合計ジャッジ時間 | 2,985 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 RE * 1 |
other | AC * 11 MLE * 1 RE * 4 |
ソースコード
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])