B. 好or坏?

    Type: Default 1000ms 256MiB

好or坏?

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.

题目描述

给定整数 nn,考虑 nn 的每个数位。如果 33 的数量比其它数字的数量更多,Csvoner 就认为这是一个好数,否则 Csvoner 就认为这是一个坏数。请输出 nn 是个什么数。

输入格式

第一行一个整数 nn

输出格式

如果 nn 是个好数,请输出 good。如果 nn 是个坏数,请输出 bad

3
good
123
bad
1323
bad
23333
good

数据规模与约定

对于 100%100\% 的数据,1n<1091\le n\lt 10^9

  • 子任务 1(30 分):保证 1n91\le n\le 9
  • 子任务 2(30 分):保证 1000n99991000\le n\le 9999
  • 子任务 3(30 分):没有特殊限制。

2025年新学期热身赛

Not Attended
Status
Done
Rule
IOI
Problem
4
Start at
2025-2-6 0:00
End at
2025-2-13 0:00
Duration
2 hour(s)
Host
Partic.
24