結果

問題 No.104 国道
ユーザー fal_rndfal_rnd
提出日時 2017-07-18 23:58:51
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 201 bytes
コンパイル時間 2,466 ms
コンパイル使用メモリ 73,984 KB
実行使用メモリ 41,724 KB
最終ジャッジ日時 2024-04-17 02:05:34
合計ジャッジ時間 6,465 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 146 ms
41,480 KB
testcase_01 AC 148 ms
41,156 KB
testcase_02 AC 153 ms
41,120 KB
testcase_03 RE -
testcase_04 AC 148 ms
41,564 KB
testcase_05 AC 149 ms
41,452 KB
testcase_06 AC 139 ms
41,060 KB
testcase_07 AC 145 ms
41,188 KB
testcase_08 AC 143 ms
41,408 KB
testcase_09 AC 145 ms
41,156 KB
testcase_10 AC 150 ms
41,056 KB
testcase_11 AC 152 ms
41,236 KB
testcase_12 AC 147 ms
41,268 KB
testcase_13 AC 149 ms
41,000 KB
testcase_14 AC 146 ms
41,032 KB
testcase_15 AC 132 ms
39,892 KB
testcase_16 AC 148 ms
41,016 KB
testcase_17 AC 147 ms
41,316 KB
testcase_18 AC 143 ms
41,180 KB
testcase_19 AC 141 ms
41,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

class C{
	public static void main(String[]$){
		int v=1;
		for(char c:new java.util.Scanner(System.in).next().toCharArray()) {
			if(c=='L')v*=2;
			if(c=='R')v+=v+1;
		}
		System.out.println(v);
	}
}
0