No.1672 404 Not Found
タグ : / 解いたユーザー数 423
作問者 :
stoq
/ テスター :
akakimidori
noya2
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もしくは右上の雲マークをクリックしてアカウントを作成してください。