問題一覧 > 通常問題

No.3497 Sign up for traP

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 1024 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 193
作問者 : Solalyth / テスター : Naru820 Nzt3
お気に入りにしたユーザー ProblemId : 13201 / 自分の提出
問題文最終更新日: 2026-04-11 21:09:01
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
CPCTF 2026: PPC (順位表) の他の問題:

Problem Statement

In traP, the digital creation club of Institute of Science Tokyo, each member has a user ID called a traQ ID. A traQ ID must satisfy the following requirements.

  • It is a string of at least 1 and at most 32 characters.
  • It contains no characters other than uppercase English letters, lowercase English letters, Arabic digits, underscores, and hyphens A~Z a~z 0~9 _ -.
  • Its first and last characters are not an underscore or a hyphen _ -.

You are about to join traP and are trying to register a given string $S$ as your traQ ID. Print 200 if it satisfies the above requirements, and 400 otherwise.

Constraints

  • $1 \leq |S| \leq 100$
  • The string $S$ consists of characters represented by ASCII codes 33 to 126. In particular, it does not contain half-width spaces.

Input

The input is given from standard input in the following format.

$S$

Output

Print the answer on one line, following the problem statement.

Sample

Sample 1
Input
zoi_dayo
Output
200

This is the user ID of the leader of traP at the time this problem was written. It satisfies the requirements.

Sample 2
Input
CPCTF{dummy}
Output
400

It contains the unusable character {, so it does not satisfy the requirements.

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