結果
| 問題 | No.3497 Sign up for traP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-17 20:11:09 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 1,522 bytes |
| 記録 | |
| コンパイル時間 | 400 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 64,896 KB |
| 最終ジャッジ日時 | 2026-04-17 20:11:28 |
| 合計ジャッジ時間 | 2,999 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
_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 "_-" and 1<=len(s)<=32:
print(200)
else:
print(400)
if __name__=="__main__":
main()