Type: Default 1000ms 256MiB

神奇数-练习题

提示:该题测试数据补录中,暂不支持评测提交。

No testdata at current.

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

菜就使劲练!!!

Not Attended
Status
Done
Rule
XCPC
Problem
11
Start at
2024-8-16 13:30
End at
2024-8-16 17:00
Duration
3.5 hour(s)
Host
Partic.
10