Skip to content
On this page

2565_1_Quiz_1_1.py

TIP

อยากลอกก็ย้อนเวลาไปลอกสิครับ

py
ඞ = int

ก, ข, ค, ง = (ඞ(ฆ) for ฆ in input().split(' '))

if ก > ข:
    ก, ข = ข, ก

    while ง >= ก:
        if ค > ง:
            ก += 1
        else:
            ง -= 1

else:
    if ค % ඞ("๒") == ඞ("๐"):
        ง += ก
    else:
        if ง > ค:
            ค += ง
        else:
            ข += ก

        ก = ข + ค

print(ก, ข, ค, ง)

People who plagiarize Com Prog HW and cannot do exam:

People who do Com Prog HW by themself and can do exam easily:

Released under the MIT License