CSES - KILO 2018 4/5 - Results
Submission details
Task:Barrels
Sender:ArktinenKarpalo
Submission time:2018-09-27 16:44:52 +0300
Language:C++
Status:READY
Result:
Test results
testverdicttime
#10.03 sdetails
#20.04 sdetails
#30.03 sdetails
#40.03 sdetails
#50.02 sdetails
#60.04 sdetails
#70.02 sdetails
#80.01 sdetails
#90.03 sdetails
#100.02 sdetails
#110.02 sdetails
#120.02 sdetails
#130.04 sdetails
#140.03 sdetails
#150.03 sdetails
#160.03 sdetails
#170.04 sdetails
#180.01 sdetails
#190.02 sdetails
#200.03 sdetails
#210.02 sdetails
#220.04 sdetails
#230.02 sdetails
#240.04 sdetails
#250.01 sdetails
#260.04 sdetails
#270.03 sdetails
#280.03 sdetails
#290.03 sdetails
#300.02 sdetails

Code

#include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define ld long double
#define M 100000007
#define N (1<<17)
#define P complex<long long>
#define X real()
#define Y imag()

using namespace std;

int n;

int main() {
	cin.tie(0);
	cout.tie(0);
	ios_base::sync_with_stdio(0);
	cin >> n;
	if(n<=4)
		n=7;
	while(n%3==0)
		n++;
	cout << n;
}

Test details

Test 1

Verdict:

input
3
10 30 20

correct output
(empty)

user output
3
7

Error:
1 1 0 0

Test 2

Verdict:

input
5
10 30 20 50 40

correct output
(empty)

user output
5
5

Error:
1 1 0 0

Test 3

Verdict:

input
5
50 10 30 40 20

correct output
(empty)

user output
5
5

Error:
1 1 0 0

Test 4

Verdict:

input
232
1930 1450 1010 360 840 100 185...

correct output
(empty)

user output
232
232

Error:
1 1 0 0

Test 5

Verdict:

input
202
790 1690 1200 1810 2010 400 10...

correct output
(empty)

user output
202
202

Error:
1 1 0 0

Test 6

Verdict:

input
126
1260 350 20 110 650 1000 440 1...

correct output
(empty)

user output
126
127

Error:
1 1 0 0

Test 7

Verdict:

input
450
50 3240 2550 1710 2570 1620 29...

correct output
(empty)

user output
450
451

Error:
1 1 0 0

Test 8

Verdict:

input
259
730 1560 1870 940 2280 1830 15...

correct output
(empty)

user output
259
259

Error:
1 1 0 0

Test 9

Verdict:

input
376
2330 2580 2520 720 1050 700 31...

correct output
(empty)

user output
376
376

Error:
1 1 0 0

Test 10

Verdict:

input
94
350 920 600 680 690 140 620 32...

correct output
(empty)

user output
94
94

Error:
1 1 0 0

Test 11

Verdict:

input
500
10 20 30 40 50 60 70 80 90 100...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 12

Verdict:

input
500
3970 1390 3740 4520 30 1020 26...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 13

Verdict:

input
500
1310 1540 1730 780 4420 640 40...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 14

Verdict:

input
500
3900 5000 4640 1990 850 4550 3...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 15

Verdict:

input
500
650 2740 3810 220 4670 4150 60...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 16

Verdict:

input
500
580 2470 2000 4770 2360 2690 1...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 17

Verdict:

input
500
1390 2600 740 2340 2120 3460 1...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 18

Verdict:

input
500
1790 700 3350 4050 1330 5000 5...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 19

Verdict:

input
500
2510 3420 4520 3750 3820 3260 ...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 20

Verdict:

input
500
1420 2450 1800 2890 4920 1990 ...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 21

Verdict:

input
500
3240 2630 1410 2010 440 2110 2...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 22

Verdict:

input
500
2420 2720 3820 70 2950 500 140...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 23

Verdict:

input
500
1270 4470 2380 4690 2030 1620 ...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 24

Verdict:

input
500
440 4060 4190 2940 650 3690 31...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 25

Verdict:

input
500
4520 4590 1280 3710 3310 460 4...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 26

Verdict:

input
500
3460 970 1400 1470 4560 3340 4...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 27

Verdict:

input
500
1400 2120 390 3030 3410 2050 2...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 28

Verdict:

input
500
3360 2710 830 1680 4070 1570 3...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 29

Verdict:

input
500
840 4560 3490 2410 2150 3580 9...

correct output
(empty)

user output
500
500

Error:
1 1 0 0

Test 30

Verdict:

input
500
1240 4680 3440 4310 4660 1900 ...

correct output
(empty)

user output
500
500

Error:
1 1 0 0