提出 #71170249
ソースコード 拡げる
S=input()
X=0
for i in range(len(S)):
N=1
for j in range(i+1,len(S)):
if S[i]==S[j]:
N+=1
else:
if int(S[j])==int(S[i])+1:
for k in range(1,N):
if not int(S[i])+1==int(S[j+k]):
break
X+=1
break
print(X)
提出情報
| 提出日時 | |
|---|---|
| 問題 | C - 1122 Substring 2 |
| ユーザ | Omanju |
| 言語 | Python (CPython 3.13.7) |
| 得点 | 0 |
| コード長 | 290 Byte |
| 結果 | WA |
| 実行時間 | > 2000 ms |
| メモリ | 11048 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 0 / 300 | ||||||||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 01_random_16.txt, 01_random_17.txt, 01_random_18.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00_sample_00.txt | AC | 9 ms | 9040 KiB |
| 00_sample_01.txt | AC | 9 ms | 9016 KiB |
| 00_sample_02.txt | AC | 9 ms | 9020 KiB |
| 00_sample_03.txt | WA | 9 ms | 9016 KiB |
| 01_random_00.txt | AC | 9 ms | 8892 KiB |
| 01_random_01.txt | TLE | > 2000 ms | 10796 KiB |
| 01_random_02.txt | TLE | > 2000 ms | 10796 KiB |
| 01_random_03.txt | TLE | > 2000 ms | 10996 KiB |
| 01_random_04.txt | TLE | > 2000 ms | 11004 KiB |
| 01_random_05.txt | TLE | > 2000 ms | 10904 KiB |
| 01_random_06.txt | TLE | > 2000 ms | 10692 KiB |
| 01_random_07.txt | TLE | > 2000 ms | 10940 KiB |
| 01_random_08.txt | TLE | > 2000 ms | 9712 KiB |
| 01_random_09.txt | TLE | > 2000 ms | 10920 KiB |
| 01_random_10.txt | TLE | > 2000 ms | 10944 KiB |
| 01_random_11.txt | TLE | > 2000 ms | 11004 KiB |
| 01_random_12.txt | TLE | > 2000 ms | 10856 KiB |
| 01_random_13.txt | TLE | > 2000 ms | 10880 KiB |
| 01_random_14.txt | TLE | > 2000 ms | 10944 KiB |
| 01_random_15.txt | TLE | > 2000 ms | 10792 KiB |
| 01_random_16.txt | TLE | > 2000 ms | 11048 KiB |
| 01_random_17.txt | TLE | > 2000 ms | 10940 KiB |
| 01_random_18.txt | TLE | > 2000 ms | 10976 KiB |