結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
kanra661
|
| 提出日時 | 2014-12-17 00:35:14 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 356 bytes |
| コンパイル時間 | 2,390 ms |
| コンパイル使用メモリ | 75,056 KB |
| 実行使用メモリ | 54,160 KB |
| 最終ジャッジ日時 | 2024-06-11 22:06:11 |
| 合計ジャッジ時間 | 6,184 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 RE * 1 |
| other | AC * 16 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
sc.close();
char dir[] = s.toCharArray();
int lNum = 1;
for (int i = 0; i < dir.length; i++) {
lNum *= 2 ;
if(dir[i] == 'R') lNum++;
}
System.out.println(lNum);
}
}
kanra661