Task: | Rodent's Revenge |
Sender: | madwarge |
Submission time: | 2018-09-20 17:10:38 +0300 |
Language: | Java |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.26 s | details |
#2 | WRONG ANSWER | 0.26 s | details |
#3 | WRONG ANSWER | 0.27 s | details |
#4 | WRONG ANSWER | 0.26 s | details |
#5 | ACCEPTED | 0.27 s | details |
#6 | WRONG ANSWER | 0.26 s | details |
#7 | WRONG ANSWER | 0.67 s | details |
#8 | WRONG ANSWER | 0.63 s | details |
#9 | WRONG ANSWER | 0.61 s | details |
#10 | WRONG ANSWER | 0.61 s | details |
#11 | WRONG ANSWER | 0.65 s | details |
#12 | WRONG ANSWER | 0.61 s | details |
#13 | WRONG ANSWER | 0.61 s | details |
#14 | WRONG ANSWER | 0.61 s | details |
#15 | WRONG ANSWER | 0.66 s | details |
#16 | WRONG ANSWER | 0.59 s | details |
Code
//package rodentsrevenge; import java.util.Scanner; public class RodentsRevenge { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(); int k = s.nextInt(); for (int i = n - k; i <= n; i++) { System.out.print(i + " "); } for (int i = n - k - 1; i > 0; i--) { System.out.print(i + " "); } System.out.print("\n"); } }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
1 0 |
correct output |
---|
1 |
user output |
---|
1 |
Test 2
Verdict: WRONG ANSWER
input |
---|
2 0 |
correct output |
---|
1 2 |
user output |
---|
2 1 |
Test 3
Verdict: WRONG ANSWER
input |
---|
2 1 |
correct output |
---|
2 1 |
user output |
---|
1 2 |
Test 4
Verdict: WRONG ANSWER
input |
---|
3 0 |
correct output |
---|
1 2 3 |
user output |
---|
3 2 1 |
Test 5
Verdict: ACCEPTED
input |
---|
3 1 |
correct output |
---|
1 3 2 |
user output |
---|
2 3 1 |
Test 6
Verdict: WRONG ANSWER
input |
---|
3 2 |
correct output |
---|
3 2 1 |
user output |
---|
1 2 3 |
Test 7
Verdict: WRONG ANSWER
input |
---|
99999 0 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
99999 99998 99997 99996 99995 ... |
Test 8
Verdict: WRONG ANSWER
input |
---|
99999 123 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
99876 99877 99878 99879 99880 ... |
Test 9
Verdict: WRONG ANSWER
input |
---|
99999 12345 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
87654 87655 87656 87657 87658 ... |
Test 10
Verdict: WRONG ANSWER
input |
---|
99999 99998 |
correct output |
---|
99999 99998 99997 99996 99995 ... |
user output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
Test 11
Verdict: WRONG ANSWER
input |
---|
100000 0 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
100000 99999 99998 99997 99996... |
Test 12
Verdict: WRONG ANSWER
input |
---|
100000 1 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
99999 100000 99998 99997 99996... |
Test 13
Verdict: WRONG ANSWER
input |
---|
100000 123 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
99877 99878 99879 99880 99881 ... |
Test 14
Verdict: WRONG ANSWER
input |
---|
100000 12345 |
correct output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
user output |
---|
87655 87656 87657 87658 87659 ... |
Test 15
Verdict: WRONG ANSWER
input |
---|
100000 99998 |
correct output |
---|
1 100000 99999 99998 99997 999... |
user output |
---|
2 3 4 5 6 7 8 9 10 11 12 13 14... |
Test 16
Verdict: WRONG ANSWER
input |
---|
100000 99999 |
correct output |
---|
100000 99999 99998 99997 99996... |
user output |
---|
1 2 3 4 5 6 7 8 9 10 11 12 13 ... |