結果
問題 | No.104 国道 |
ユーザー |
![]() |
提出日時 | 2019-02-20 12:42:14 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 196 bytes |
コンパイル時間 | 14,755 ms |
コンパイル使用メモリ | 233,396 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-06 14:33:37 |
合計ジャッジ時間 | 13,633 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
package main import "fmt" func main() { var s string _, _ = fmt.Scanln(&s) n := 1 for _, c := range s { if string(c) == "L" { n += n } else { n += n + 1 } } fmt.Println(n) }