結果

問題 No.104 国道
ユーザー リチウムリチウム
提出日時 2014-12-16 23:26:06
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 287 bytes
コンパイル時間 3,367 ms
コンパイル使用メモリ 72,556 KB
実行使用メモリ 55,836 KB
最終ジャッジ日時 2023-09-02 15:23:46
合計ジャッジ時間 6,805 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,556 KB
testcase_01 AC 120 ms
55,548 KB
testcase_02 AC 119 ms
55,556 KB
testcase_03 RE -
testcase_04 AC 120 ms
55,756 KB
testcase_05 AC 119 ms
55,440 KB
testcase_06 AC 124 ms
55,548 KB
testcase_07 AC 121 ms
55,736 KB
testcase_08 AC 119 ms
55,668 KB
testcase_09 AC 122 ms
55,536 KB
testcase_10 AC 121 ms
55,592 KB
testcase_11 AC 119 ms
55,684 KB
testcase_12 AC 120 ms
55,316 KB
testcase_13 AC 122 ms
55,256 KB
testcase_14 AC 121 ms
55,484 KB
testcase_15 AC 122 ms
55,588 KB
testcase_16 AC 122 ms
55,328 KB
testcase_17 AC 123 ms
55,648 KB
testcase_18 AC 119 ms
55,736 KB
testcase_19 AC 120 ms
55,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class ppp {
		
  public static void main(String[] args) {
	  Scanner sc=new Scanner(System.in);
	  char c[]=sc.next().toCharArray();
	  int n=1;
	  for(int i=0;i<c.length;i++){
		  n*=2;
		  if(c[i]=='R')n++;
	  }
	  System.out.println(n);
	 
  }}
0