結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-17 20:30:55 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 263 bytes |
| 記録 | |
| コンパイル時間 | 426 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2026-04-17 20:31:06 |
| 合計ジャッジ時間 | 7,424 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
s = input() l = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-" ans = 200 if 1 <= len(s) <= 32: if s[0] not in ["_", "-"] and s[-1] not in ["_", "-"]: for c in s: if c not in l: ans = 400 else: ans = 400 else: ans = 400 print(ans)