結果

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

ソースコード

diff #
raw source code

#codon↓--------------------------------------------
#↓library by Chat GPT
def hilbert_order(x: int, y: int) -> int:
    # x, y の最大値から必要な 2^k を決定
    maxc = max(x, y)
    k = maxc.bit_length()
    maxn = 1 << k

    d = 0
    s = maxn >> 1
    while s:
        rx = 1 if (x & s) else 0
        ry = 1 if (y & s) else 0

        d += s * s * ((rx * 3) ^ ry)

        if ry == 0:
            if rx == 1:
                x = maxn - 1 - x
                y = maxn - 1 - y
            x, y = y, x

        s >>= 1

    return d

_factorial=[1]
def factorial(n):
    while len(_factorial)<=n:
        _factorial.append((_factorial[-1]*len(_factorial))%mod)
    return _factorial[n]

def binom(n,r):
    if r>=mod:
        raise ValueError("r is too big")
    if n<0:
        return 0
    if r>n:
        return 0
    if r<0:
        return 0
    ans=((factorial(n)*pow(factorial(r),mod-2,mod))%mod*pow(factorial(n-r),mod-2,mod))%mod
    return ans

import string
import itertools
alp_low=list(string.ascii_lowercase)
alp_up=list(string.ascii_uppercase)
dij=[[0,1],[1,0],[0,-1],[-1,0]]

mod=998244353
INF=10**18
def dijkstra(edges, num_node,start):
    """

    [node_num,weight>0][
    
    (example)

    Edges = [
        [[1, 4], [2, 3]],
        [[0, 1], [3, 1]],
        [[3, 2]],
        [],
    ]
    """
    import heapq;n=[INF]*num_node;n[start]=0;n_name=[];heapq.heappush(n_name,[0,start])
    while len(n_name):
        _,min_p=heapq.heappop(n_name)
        for f in edges[min_p]:
            g,c=f
            if n[min_p]+c<n[g]:n[g]=n[min_p]+c;heapq.heappush(n_name,[n[min_p]+c,g])
    return n

def nin():
    return list(map(int,input().split()))
def deq(x):
    return [i-1 for i in x]
def pop_cnt(n):
    ans=0
    while n:
        if n%2:
            ans+=1
        n//=2
    return ans

def main():
    s=input()
    if all([i in alp_low+alp_up+["_","-"]+list("0123456789") for i in s]) and s[0] not in "_-" and s[-1] not in "_-":
        print(200)
    else:
        print(400)

if __name__=="__main__":
    main()
0