143662025-01-10 17:36:04EmmaJuhaszJárdakövezés (75 pont)python3Accepted 75/7516ms3304 KiB
n = int(input())
harmas = 0
kettes = 0
if n % 3 == 0:
  harmas = n//3
  kettes = 0
elif n % 3 == 1:
  harmas = (n-4)//3
  kettes = 2
else:
  harmas = (n-2)//3
  kettes = 1
print(kettes, harmas)
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/014ms3068 KiB
2Accepted0/016ms3024 KiB
3Accepted3/316ms2868 KiB
4Accepted3/314ms2868 KiB
5Accepted3/316ms2948 KiB
6Accepted3/316ms2868 KiB
7Accepted3/316ms3076 KiB
8Accepted4/416ms2868 KiB
9Accepted4/414ms2872 KiB
10Accepted4/416ms2868 KiB
11Accepted4/416ms3068 KiB
12Accepted4/414ms2908 KiB
13Accepted4/416ms2892 KiB
14Accepted4/414ms2936 KiB
15Accepted4/416ms3008 KiB
16Accepted4/416ms3292 KiB
17Accepted4/416ms2868 KiB
18Accepted4/416ms3048 KiB
19Accepted4/414ms2872 KiB
20Accepted4/414ms3304 KiB
21Accepted4/416ms3056 KiB
22Accepted4/414ms2868 KiB