結果

問題 No.494 yukicoder
ユーザー yamax3232yamax3232
提出日時 2018-03-16 13:37:47
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 349 bytes
コンパイル時間 1,995 ms
コンパイル使用メモリ 71,688 KB
実行使用メモリ 56,312 KB
最終ジャッジ日時 2023-08-23 11:45:49
合計ジャッジ時間 4,028 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner kb=new Scanner(System.in);
		String s=kb.nextLine();
		int a=0,b=0;
		int num=0;
		for(int i=0;i<s.length();i++){
			if(s.charAt(i)=='?'){
				num=i;
			}
		}
		System.out.println(num);
	}

}
0