結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-12 02:03:09 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 29 ms / 5,000 ms |
| + 957µs | |
| コード長 | 403 bytes |
| 記録 | |
| コンパイル時間 | 2,255 ms |
| コンパイル使用メモリ | 84,240 KB |
| 実行使用メモリ | 43,424 KB |
| 最終ジャッジ日時 | 2026-09-25 04:29:59 |
| 合計ジャッジ時間 | 4,807 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
import java.io.*;
public class Run {
public static void main (String arg[]) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String S = br.readLine();
int Road = 1;
for (int i = 0; i < S.length(); i++) {
Road *= 2;
if (S.charAt(i)=='R') Road++;
}
System.out.println(Road);
}
}