统计满足条件的4位数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
【题目描述】
给定若干个四位数,求出其中满足以下条件的数的个数:个位数上的数字减去千位数上的数字,再减去百位数上的数字,再减去十位数上的数字的结果大于零。
【输入】
输入为两行,第一行为四位数的个数n,第二行为n个的四位数。(n≤100)
【输出】
输出为一行,包含一个整数,表示满足条件的四位数的个数。
【输入样例】
5
1234 1349 6119 2123 5017
【输出样例】
3
【来源】
一本通在线评测
精英班-Day03作业
- Status
- Done
- Problem
- 20
- Open Since
- 2024-7-21 0:00
- Deadline
- 2024-7-24 23:59
- Extension
- 24 hour(s)