Submission #1524448


Source Code Expand

Copy
import java.util.Scanner;
public class Main {
private static String alpha = "abcdefghijklmnopqrstuvwxyz";
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String in = sc.nextLine();
char [] alphaArray = alpha.toCharArray();
int alphaLen = alphaArray.length;
int [] counter = new int[alphaLen];
char[] inArray = in.toCharArray();
int inSize = inArray.length;
for (int i = 0; i < inSize;i++) {
for (int j = 0; j < alphaLen;j++) {
if (inArray[i] == alphaArray[j]) {
counter[j]++;
break;
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
import java.util.Scanner;


public class Main {

	private static String alpha = "abcdefghijklmnopqrstuvwxyz";

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String in = sc.nextLine();
		char [] alphaArray = alpha.toCharArray();
		int alphaLen = alphaArray.length;
		int [] counter = new int[alphaLen];
		char[] inArray = in.toCharArray();
		int inSize = inArray.length;
		for (int i = 0; i < inSize;i++) {
			for (int j = 0; j < alphaLen;j++) {
				if (inArray[i] == alphaArray[j]) {
					counter[j]++;
					break;
				}
			}
		}
		boolean hit = false;
		for (int i = 0; i < alphaLen; i++) {
			if (counter[i] == 0) {
				System.out.println(alphaArray[i]);
				hit = true;
				break;
			}
		}
		if (!hit){
			System.out.println("None");
		}

	}


}

Submission Info

Submission Time
Task B - Not Found
User stmasa2015
Language Java7 (OpenJDK 1.7.0)
Score 200
Code Size 823 Byte
Status AC
Exec Time 187 ms
Memory 27284 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 15
Set Name Test Cases
Sample sample1.txt, sample2.txt, sample3.txt
All sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt
Case Name Status Exec Time Memory
1.txt AC 100 ms 22484 KB
2.txt AC 93 ms 18900 KB
3.txt AC 161 ms 22868 KB
4.txt AC 182 ms 23224 KB
5.txt AC 173 ms 27284 KB
6.txt AC 164 ms 23208 KB
7.txt AC 187 ms 23780 KB
8.txt AC 170 ms 23068 KB
9.txt AC 179 ms 23324 KB
sample1.txt AC 92 ms 20820 KB
sample2.txt AC 91 ms 18772 KB
sample3.txt AC 91 ms 18772 KB


2025-02-27 (Thu)
19:30:31 +00:00