問題一覧 > 通常問題

No.1672 404 Not Found

レベル : / AI推定難易度 : 75 / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 423
作問者 : stoq / テスター : akakimidori noya2
お気に入りにしたユーザー ProblemId : 6834 / 自分の提出
問題文最終更新日: 2021-08-07 20:37:47
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 313 (順位表) の他の問題:

Problem Statement

An HTTP status code is a 3-digit positive integer that represents the meaning of a response from a web server.

(In this problem) an HTTP status code is defined to be an error code if and only if its hundreds digit is $4$ or $5$.

Given an HTTP status code $S$, determine whether $S$ is an error code.

Input

$S$

  • The input is an integer.
  • $100 \leq S \leq 599$

Output

Print Yes if $S$ is an error code, and No otherwise.

Sample

Sample 1
Input
404
Output
Yes

The hundreds digit of $404$ is $4$, so it is an error code. Print Yes.

Sample 2
Input
200
Output
No

The hundreds digit of $200$ is $2$, so it is not an error code. Print No.

Sample 3
Input
502
Output
Yes

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。