Task: | HIIT Generation |
Sender: | El Numero Uno |
Submission time: | 2018-05-26 11:56:08 +0300 |
Language: | Java |
Status: | READY |
Result: | RUNTIME ERROR |
test | verdict | time | |
---|---|---|---|
#1 | RUNTIME ERROR | 0.23 s | details |
#2 | RUNTIME ERROR | 0.20 s | details |
#3 | RUNTIME ERROR | 0.20 s | details |
#4 | RUNTIME ERROR | 0.18 s | details |
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: RUNTIME ERROR
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: RUNTIME ERROR
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: RUNTIME ERROR
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: RUNTIME ERROR
input |
---|
0 |
correct output |
---|
HIIT |
user output |
---|
(empty) |
Error:
Error: Could not find or load main class h Caused by: java.lang.ClassNotFoundException: h