55

给定一系列正整数,请按要求对数字进行分类,-帆布鞋也能走猫步

 6 years ago
source link: http://blog.51cto.com/9409270/2083507
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
题目链接https://www.nowcoder.com/pat/6/problem/4078题目描述给定一系列正整数,请按要求对数字进行分类,并输出以下5个数字:A1 = 能被5整除的数字中所有偶数的和;A2 = 将被5除后余1的数字按给出顺序进行交错求和,即计算n1-n2+n3-n4...;A3 = 被5除后余2的数字

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK