| Task: | Gondola Groups |
| Sender: | tykkipeli |
| Submission time: | 2018-09-06 17:10:59 +0300 |
| Language: | Java |
| Status: | READY |
| Result: | WRONG ANSWER |
| test | verdict | time | |
|---|---|---|---|
| #1 | WRONG ANSWER | 0.22 s | details |
| #2 | WRONG ANSWER | 0.82 s | details |
| #3 | WRONG ANSWER | 0.35 s | details |
| #4 | WRONG ANSWER | 0.40 s | details |
| #5 | WRONG ANSWER | 0.40 s | details |
| #6 | WRONG ANSWER | 0.36 s | details |
| #7 | WRONG ANSWER | 0.37 s | details |
| #8 | WRONG ANSWER | 0.38 s | details |
| #9 | WRONG ANSWER | 0.35 s | details |
| #10 | WRONG ANSWER | 0.39 s | details |
Code
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
//spackage kisakoodaus;
import java.util.Scanner;
/**
*
* @author pure
*/
public class Kisakoodaus {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int[] a = new int[n+1];
for(int i = 0; i < 4*n; i++){
int in = s.nextInt();
a[in/4]++;
if(a[in/4]>=4){
System.out.println(1 + in/4);
break;
}
}
}
}
Test details
Test 1
Verdict: WRONG ANSWER
| input |
|---|
| 100000 1 2 3 4 5 6 7 8 9 10 11 12 13 ... |
| correct output |
|---|
| 1 |
| user output |
|---|
| 2 |
Test 2
Verdict: WRONG ANSWER
| input |
|---|
| 100000 1 2 3 5 6 7 9 10 11 13 14 15 1... |
| correct output |
|---|
| 1 |
| user output |
|---|
| 2 |
Test 3
Verdict: WRONG ANSWER
| input |
|---|
| 100000 249553 268229 366316 220027 39... |
| correct output |
|---|
| 36587 |
| user output |
|---|
| 11453 |
Test 4
Verdict: WRONG ANSWER
| input |
|---|
| 100000 238080 22295 244014 65130 1590... |
| correct output |
|---|
| 94109 |
| user output |
|---|
| 70999 |
Test 5
Verdict: WRONG ANSWER
| input |
|---|
| 100000 132748 106846 171749 126956 39... |
| correct output |
|---|
| 83369 |
| user output |
|---|
| 22164 |
Test 6
Verdict: WRONG ANSWER
| input |
|---|
| 100000 382996 110914 120517 211562 19... |
| correct output |
|---|
| 46365 |
| user output |
|---|
| 73452 |
Test 7
Verdict: WRONG ANSWER
| input |
|---|
| 100000 340660 32656 68396 108969 1310... |
| correct output |
|---|
| 36533 |
| user output |
|---|
| 54856 |
Test 8
Verdict: WRONG ANSWER
| input |
|---|
| 100000 64338 77656 283623 21309 28555... |
| correct output |
|---|
| 78202 |
| user output |
|---|
| 48152 |
Test 9
Verdict: WRONG ANSWER
| input |
|---|
| 100000 351816 42200 304997 225056 236... |
| correct output |
|---|
| 60906 |
| user output |
|---|
| 19517 |
Test 10
Verdict: WRONG ANSWER
| input |
|---|
| 100000 399664 177574 51870 396247 392... |
| correct output |
|---|
| 2591 |
| user output |
|---|
| 11376 |
