提出 #944246


ソースコード 拡げる

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		final String a = "CF";

		boolean flag = false;
		int count = 0;
		String s = sc.next();

		for(int i = 0; i < s.length(); i++){
			if(a.charAt(count) == s.charAt(i)){
				if(++count == 2){
					flag = true;
					break;
				}
			}
		}

		if(flag){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
}

提出情報

提出日時
問題 A - CF
ユーザ pocket
言語 Java8 (OpenJDK 1.8.0)
得点 100
コード長 488 Byte
結果 AC
実行時間 124 ms
メモリ 9680 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 4
AC × 12
セット名 テストケース
Sample 0_000.txt, 0_001.txt, 0_002.txt, 0_003.txt
All 0_000.txt, 0_001.txt, 0_002.txt, 0_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt, 1_008.txt, 1_009.txt, 1_010.txt, 1_011.txt
ケース名 結果 実行時間 メモリ
0_000.txt AC 122 ms 9552 KiB
0_001.txt AC 123 ms 9552 KiB
0_002.txt AC 122 ms 9552 KiB
0_003.txt AC 122 ms 9552 KiB
1_004.txt AC 121 ms 9556 KiB
1_005.txt AC 120 ms 9668 KiB
1_006.txt AC 124 ms 9680 KiB
1_007.txt AC 122 ms 9668 KiB
1_008.txt AC 122 ms 9552 KiB
1_009.txt AC 122 ms 9552 KiB
1_010.txt AC 123 ms 9556 KiB
1_011.txt AC 120 ms 9556 KiB