CSES - Putka Open 2015 – 2/6 - Results
Submission details
Task:Kertotaulu
Sender:
Submission time:2015-08-15 19:58:49 +0300
Language:Java
Status:READY
Result:0
Feedback
groupverdictscore
#10
#20
#30
Test results
testverdicttimegroup
#10.19 s1details
#20.20 s1details
#30.19 s1details
#40.19 s1details
#50.19 s1details
#60.19 s2details
#70.21 s2details
#80.19 s2details
#90.19 s2details
#100.19 s2details
#110.20 s3details
#120.20 s3details
#130.19 s3details
#140.21 s3details
#150.20 s3details

Code

import java.util.Scanner;


public class Pussit {
	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);

		final int testejä = input.nextInt();
		
		int vastaus = 0;
		
		for (int testi = 0 ; testi<testejä ; testi++){ 
			
			final int pusseja = input.nextInt();
			final int palloja = input.nextInt();
			final int tarvitaan = input.nextInt();

			
			if (palloja/pusseja>=tarvitaan){
				vastaus = tarvitaan;
			}
			else {
				vastaus = tarvitaan + pusseja-1;
			}
			
		
		
			
			System.out.println(vastaus);
		}

	}
}

Test details

Test 1

Group: 1

Verdict:

input
242 232 976 976

correct output
417796293

user output
1207

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 2

Group: 1

Verdict:

input
12 645 476 899

correct output
335735446

user output
1543

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 3

Group: 1

Verdict:

input
435 460 792 681

correct output
816738894

user output
1140

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 4

Group: 1

Verdict:

input
318 389 441 799

correct output
488457695

user output
1187

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 5

Group: 1

Verdict:

input
211 640 623 951

correct output
744563022

user output
1590

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 6

Group: 2

Verdict:

input
201976 387454 920309 673120

correct output
946933548

user output
1060573

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 7

Group: 2

Verdict:

input
779381 684472 984138 828099

correct output
121907300

user output
1512570

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 8

Group: 2

Verdict:

input
284954 437564 777701 638386

correct output
321734745

user output
1075949

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 9

Group: 2

Verdict:

input
296035 308490 853604 668978

correct output
802693678

user output
977467

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 10

Group: 2

Verdict:

input
460731 148462 619190 626173

correct output
264761756

user output
774634

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 11

Group: 3

Verdict:

input
381626897 590403175 501559980 ...

correct output
258247883

user output
1356212689

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 12

Group: 3

Verdict:

input
597399975 685346584 618318138 ...

correct output
390332938

user output
1572762262

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 13

Group: 3

Verdict:

input
247307039 323856912 812562646 ...

correct output
89821592

user output
1232977366

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 14

Group: 3

Verdict:

input
900181910 768404361 943052600 ...

correct output
242545884

user output
1767338281

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)

Test 15

Group: 3

Verdict:

input
815 528 999999994 999999992

correct output
103780099

user output
1000000519

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.util.Scanner.throwFor(Scanner.java:862)
	at java.util.Scanner.next(Scanner.java:1485)
	at java.util.Scanner.nextInt(Scanner.java:2117)
	at java.util.Scanner.nextInt(Scanner.java:2076)
	at Pussit.main(Pussit.java:15)