提出 #76708215
ソースコード 拡げる
p = [int(_) for _ in list(input())]
def weak(n, n2):
if n2 == n + 1:
return True
elif n == 9 and n2 == 0:
return True
return False
if p[0] == p[1] == p[2] == p[3]:
print("Weak")
exit()
Weak = True
for i in range(3):
if not weak(p[i], p[i+1]):
Weak = False
break
print("Weak" if Weak else "Strong")
提出情報
| 提出日時 | |
|---|---|
| 問題 | C - Weak Password |
| ユーザ | ytz |
| 言語 | Python (PyPy 3.11-v7.3.20) |
| 得点 | 200 |
| コード長 | 375 Byte |
| 結果 | AC |
| 実行時間 | 49 ms |
| メモリ | 79452 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example_00.txt, example_01.txt, example_02.txt |
| All | example_00.txt, example_01.txt, example_02.txt, test_00.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| example_00.txt | AC | 49 ms | 79260 KiB |
| example_01.txt | AC | 48 ms | 79260 KiB |
| example_02.txt | AC | 48 ms | 79212 KiB |
| test_00.txt | AC | 48 ms | 79452 KiB |
| test_01.txt | AC | 48 ms | 79136 KiB |
| test_02.txt | AC | 49 ms | 79204 KiB |
| test_03.txt | AC | 48 ms | 79368 KiB |
| test_04.txt | AC | 48 ms | 79316 KiB |
| test_05.txt | AC | 48 ms | 79008 KiB |
| test_06.txt | AC | 48 ms | 79388 KiB |
| test_07.txt | AC | 48 ms | 79292 KiB |
| test_08.txt | AC | 47 ms | 79180 KiB |
| test_09.txt | AC | 47 ms | 79420 KiB |
| test_10.txt | AC | 47 ms | 79420 KiB |
| test_11.txt | AC | 48 ms | 79184 KiB |
| test_12.txt | AC | 48 ms | 79288 KiB |
| test_13.txt | AC | 49 ms | 79184 KiB |
| test_14.txt | AC | 49 ms | 79440 KiB |