結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
rustGanbaruman
|
| 提出日時 | 2026-02-05 19:13:05 |
| 言語 | Rust (1.92.0 + proconio + num + itertools) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 262 bytes |
| 記録 | |
| コンパイル時間 | 1,057 ms |
| コンパイル使用メモリ | 197,480 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-02-05 19:13:08 |
| 合計ジャッジ時間 | 2,737 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 RE * 1 |
| other | AC * 16 |
ソースコード
use proconio::input;
fn main() {
input! {
lr:String,
}
let mut number = 1;
for i in lr.chars(){
if i == 'L'{
number *= 2
}else {
number = number * 2 + 1;
}
}
println!("{}",number)
}
rustGanbaruman