CSES - HIIT Open 2018 - Results
Submission details
Task:HIIT Generation
Sender:El Numero Uno
Submission time:2018-05-26 11:56:08 +0300
Language:Java
Status:READY
Result:
Test results
testverdicttime
#10.23 sdetails
#20.20 sdetails
#30.20 sdetails
#40.18 sdetails

Code

package h;

import java.util.Scanner;

public class h {

	public static void main(String[] args) {
		String s = "HIIT", f = "HIIT", x;
		Scanner in = new Scanner(System.in);
		int n = Integer.parseInt(in.nextLine());
		for (int i = 0; i < n; i++) {
			x = in.nextLine();
			f = f.replace(x,  s);
		}
		System.out.println(f);
	}
	
}

Test details

Test 1

Verdict:

input
17
I
I
I
I
...

correct output
HHHHHHHHHHHHHHHHHHIITHIITTHHII...

user output
(empty)

Error:
Error: Could not find or load main class h
Caused by: java.lang.ClassNotFoundException: h

Test 2

Verdict:

input
333332
H
H
H
H
...

correct output
HIITIITIITIITIITIITIITIITIITII...

user output
(empty)

Error:
Error: Could not find or load main class h
Caused by: java.lang.ClassNotFoundException: h

Test 3

Verdict:

input
24
H
T
H
T
...

correct output
HIIHIITIIHIIHIITIIHIITIIHIIHII...

user output
(empty)

Error:
Error: Could not find or load main class h
Caused by: java.lang.ClassNotFoundException: h

Test 4

Verdict:

input
0

correct output
HIIT

user output
(empty)

Error:
Error: Could not find or load main class h
Caused by: java.lang.ClassNotFoundException: h