結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-29 22:11:42 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 257 ms |
| コンパイル使用メモリ | 96,364 KB |
| 実行使用メモリ | 79,104 KB |
| 最終ジャッジ日時 | 2026-07-29 22:11:46 |
| 合計ジャッジ時間 | 3,175 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 WA * 7 |
ソースコード
S = input()
ALPHAs = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
alphas = 'abcdefghijklmnopqrstuvwxyz'
X = '_-'
ans = '200'
for s in S:
if not (s in ALPHAs or s in alphas or s in X):
ans = '400'
if S[0] in X:
ans = '400'
if S[-1] in X:
ans = '400'
print(ans)