結果

問題 No.3497 Sign up for traP
コンテスト
ユーザー tassei903
提出日時 2026-04-17 22:15:43
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 654 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 369 ms
コンパイル使用メモリ 85,248 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2026-04-17 22:15:51
合計ジャッジ時間 1,725 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#####################################################################

s = input()

def f(x):
    if 0 <= ord(x) - 97 < 26:
        return True
    if 0 <= ord(x) - 65 < 26:
        return True
    if x.isdigit():
        return True
    if x in "-_":
        return True
    return False

if all(f(x) for x in s) and (s[0] not in  "_-") and (s[-1] not in "-_") and len(s) <= 32:
    print(200)
else:
    print(400)
0