結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-29 22:13:26 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 72 ms / 2,000 ms |
| + 104µs | |
| コード長 | 342 bytes |
| 記録 | |
| コンパイル時間 | 237 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-07-29 22:13:30 |
| 合計ジャッジ時間 | 2,838 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
S = input()
ALPHAs = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
alphas = 'abcdefghijklmnopqrstuvwxyz'
nums = '0123456789'
X = '_-'
ans = '200'
for s in S:
if not (s in ALPHAs or s in alphas or s in nums or s in X):
ans = '400'
if not 1 <= len(S) <= 32:
ans = '400'
if S[0] in X:
ans = '400'
if S[-1] in X:
ans = '400'
print(ans)