結果

問題 No.3497 Sign up for traP
コンテスト
ユーザー イケアイカエ
提出日時 2026-04-19 11:17:07
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 551 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 484 ms
コンパイル使用メモリ 20,824 KB
実行使用メモリ 15,360 KB
最終ジャッジ日時 2026-04-19 11:17:22
合計ジャッジ時間 3,457 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 13 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

S = input()
asciicode = [ord(c) for c in S]
strlength = len(S)
count = 0
listlength = len(asciicode)

if strlength > 100:
    count += 1
elif strlength < 1:
    count += 1
else:
    if asciicode[0] == 95 or asciicode[0] == 45:
        count += 1
    if asciicode[listlength - 1] == 95 or asciicode[listlength - 1] == 45:
        count += 1

for i in range(listlength):
    check = asciicode[i]
    if check > 126:
        count += 1
        break
    elif check < 33:
        count += 1
        break

if count > 0:
    print(400)
else:
    print(200)
0