CSES - Datatähti 2022 alku - Results
Submission details
Task:Merkkijono
Sender:valk
Submission time:2021-10-13 00:43:03 +0300
Language:Java
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.13 sdetails
#20.13 sdetails
#30.13 sdetails
#40.13 sdetails
#50.13 sdetails
#60.13 sdetails
#70.13 sdetails
#80.13 sdetails
#90.13 sdetails
#100.13 sdetails
#110.13 sdetails
#120.13 sdetails
#130.14 sdetails
#140.13 sdetails
#150.13 sdetails
#160.13 sdetails

Code


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        
        int a = input.nextInt(); //money
        int b = input.nextInt(); //gummy
        int c = input.nextInt(); //choc
        
        if(c<b) {
        	int temp = b;
        	b = c;
        	c = temp;
        }
        
        a -= a%b;
        System.out.println(a/b);
        
        input.close();
    }
	
}

Test details

Test 1

Verdict:

input
1

correct output
a

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 2

Verdict:

input
2

correct output
bab

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 3

Verdict:

input
3

correct output
cbcacbc

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 4

Verdict:

input
4

correct output
dcdbdcdadcdbdcd

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 5

Verdict:

input
5

correct output
edecedebedecedeaedecedebedeced...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 6

Verdict:

input
6

correct output
fefdfefcfefdfefbfefdfefcfefdfe...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 7

Verdict:

input
7

correct output
gfgegfgdgfgegfgcgfgegfgdgfgegf...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 8

Verdict:

input
8

correct output
hghfhghehghfhghdhghfhghehghfhg...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 9

Verdict:

input
9

correct output
ihigihifihigihieihigihifihigih...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 10

Verdict:

input
10

correct output
jijhjijgjijhjijfjijhjijgjijhji...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 11

Verdict:

input
11

correct output
kjkikjkhkjkikjkgkjkikjkhkjkikj...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 12

Verdict:

input
12

correct output
lkljlklilkljlklhlkljlklilkljlk...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 13

Verdict:

input
13

correct output
mlmkmlmjmlmkmlmimlmkmlmjmlmkml...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 14

Verdict:

input
14

correct output
nmnlnmnknmnlnmnjnmnlnmnknmnlnm...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 15

Verdict:

input
15

correct output
onomonolonomonokonomonolonomon...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...

Test 16

Verdict:

input
16

correct output
popnpopmpopnpoplpopnpopmpopnpo...

user output
(empty)

Error:
Exception in thread "main" java.util.NoSuchElementException
	at java.base/java.util.Scanne...