108332024-04-16 10:45:4342Járdakövezés (75 pont)python3Accepted 75/7517ms13872 KiB
from sys import stdin
input=stdin.readline

def main():
    N=int(input())
    if N%3==0:
        print(0,N//3)
    if N%3==1:
        print(2,(N-4)//3)
    if N%3==2:
        print(1,(N-2)//3)
        
main()
SubtaskSumTestVerdictTimeMemory
base75/75
1Accepted0/017ms11016 KiB
2Accepted0/017ms11216 KiB
3Accepted3/317ms11372 KiB
4Accepted3/317ms11932 KiB
5Accepted3/317ms11824 KiB
6Accepted3/317ms12128 KiB
7Accepted3/317ms12352 KiB
8Accepted4/417ms12356 KiB
9Accepted4/417ms12644 KiB
10Accepted4/417ms12844 KiB
11Accepted4/417ms12920 KiB
12Accepted4/417ms12972 KiB
13Accepted4/417ms13088 KiB
14Accepted4/417ms13348 KiB
15Accepted4/417ms13652 KiB
16Accepted4/417ms13872 KiB
17Accepted4/417ms13732 KiB
18Accepted4/417ms13752 KiB
19Accepted4/417ms13848 KiB
20Accepted4/417ms13740 KiB
21Accepted4/417ms13688 KiB
22Accepted4/417ms13672 KiB