Set A, B, C are 0 to 9 of the number, ABC, BCC is two three-digit, and has: abc+bcc=532. All values A, B, and C that satisfy the condition.

Source: Internet
Author: User
Input Description:
The title does not have any input.
Output Description:
Please output all values of a, B, and C that meet the conditions of the problem. A, B, and C are separated by a space. Each output occupies one row.

Temp=[[a,b,c]for A in range (ten) for B in range (ten) for C in range (ten) if a*100+b*10+c+b*100+c*10+c==532] #枚举列表得到需要的值
For S in temp:
For J in S:
Print (j,end= ') #输出
Print ()

Set A, B, C are 0 to 9 of the number, ABC, BCC is two three-digit, and has: abc+bcc=532. All values A, B, and C that satisfy the condition.

Related Article

Cloud Intelligence Leading the Digital Future

Alibaba Cloud ACtivate Online Conference, Nov. 20th & 21st, 2019 (UTC+08)

Register Now >

Starter Package

SSD Cloud server and data transfer for only $2.50 a month

Get Started >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.