輸入描述:
題目沒有任何輸入。
輸出描述:
請輸出所有滿足題目條件的a、b、c的值。 a、b、c之間用空格隔開。 每個輸出占一行。
temp=[[a,b,c]for a in range(10) for b in range (10) for c in range (10)if a*100+b*10+c+b*100+c*10+c==532]#枚舉列表得到需要的值
for s in temp:
for j in s:
print(j,end=' ')#輸出
print()
題目沒有任何輸入。
請輸出所有滿足題目條件的a、b、c的值。 a、b、c之間用空格隔開。 每個輸出占一行。
temp=[[a,b,c]for a in range(10) for b in range (10) for c in range (10)if a*100+b*10+c+b*100+c*10+c==532]#枚舉列表得到需要的值
for s in temp:
for j in s:
print(j,end=' ')#輸出
print()
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。