結果
問題 | No.104 国道 |
ユーザー | keiden |
提出日時 | 2024-09-19 23:49:33 |
言語 | Scala(Beta) (3.6.2) |
結果 |
AC
|
実行時間 | 895 ms / 5,000 ms |
コード長 | 152 bytes |
コンパイル時間 | 9,085 ms |
コンパイル使用メモリ | 250,468 KB |
実行使用メモリ | 62,564 KB |
最終ジャッジ日時 | 2024-09-19 23:50:06 |
合計ジャッジ時間 | 29,432 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
import scala.io.StdIn.readLine @main def yuki104() : Unit = println(readLine.foldLeft(1) { (r, c) => if c == 'L' then 2 * r else 1 + 2 * r })