#C. 好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 的数量比其它数字的数量更多,33DAI 就认为这是一个好数,否则 33DAI 就认为这是一个坏数。请输出 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 分):没有特殊限制。

周二-3月5日作业

Not Claimed
Status
Done
Problem
4
Open Since
2024-3-5 0:00
Deadline
2024-3-12 23:59
Extension
24 hour(s)