結果

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

ソースコード

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 "-_"):
    print(200)
else:
    print(400)
0