結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
ReERishun
|
| 提出日時 | 2021-06-16 01:57:52 |
| 言語 | Go (1.23.4) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 206 bytes |
| コンパイル時間 | 13,749 ms |
| コンパイル使用メモリ | 222,132 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-28 09:34:33 |
| 合計ジャッジ時間 | 12,639 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
package main
import "fmt"
func main () {
var route string
fmt.Scan(&route)
ans := 1
for _, direction := range route {
ans *= 2
if string(direction) == "R" {
ans++
}
}
fmt.Println(ans)
}
ReERishun