Skip to content
On this page

02_StrList_07.py

WARNING

โค้ดกาวมากครับ อย่าลอกเลย 😭😭😭

ทำเองเถอะนะครับ จะได้ทำข้อสอบได้ 🥲🥲🥲

py
from functools import reduce


class ඞඞ:
    def __init__(self, code: str):
        self.code = code

    def (self, *args):
        return int("".join(map(lambda x: self.code[x - 1], args)))


ඞඞඞ = ඞඞ(input())

ඞ๑ = ඞඞඞ.(4, 11, 18, 25, 32)
ඞ๒ = ඞඞඞ.(8, 13, 18, 23, 28)

ඞ๓ = ඞ๑ + ඞ๒ + int("๑๐๐๐๐")

ඞ๔ = (ඞ๓ // 10) % 1000

ඞ๕_s = str(ඞ๔)
ඞ๕ = reduce(lambda prev, curr: prev + int(curr), ඞ๕_s, 0) % 10 + 1

ඞ๖ = chr(ord('A') - 1 + ඞ๕)

print("{}{}".format(ඞ๔, ඞ๖))

People who plagiarize Com Prog HW:

People who do Com Prog HW by themself:

Released under the MIT License