結果

問題 No.1367 文字列門松
ユーザー marroncastlemarroncastle
提出日時 2021-01-29 21:36:13
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 167 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 86,656 KB
実行使用メモリ 79,060 KB
最終ジャッジ日時 2023-09-09 14:52:47
合計ジャッジ時間 3,443 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,128 KB
testcase_01 AC 70 ms
71,352 KB
testcase_02 AC 65 ms
71,164 KB
testcase_03 AC 67 ms
71,276 KB
testcase_04 RE -
testcase_05 AC 67 ms
71,188 KB
testcase_06 AC 66 ms
71,188 KB
testcase_07 AC 67 ms
71,272 KB
testcase_08 AC 65 ms
71,396 KB
testcase_09 AC 65 ms
71,272 KB
testcase_10 AC 66 ms
71,312 KB
testcase_11 AC 66 ms
71,140 KB
testcase_12 AC 64 ms
71,208 KB
testcase_13 AC 65 ms
71,168 KB
testcase_14 AC 66 ms
70,988 KB
testcase_15 AC 65 ms
71,280 KB
testcase_16 RE -
testcase_17 AC 65 ms
71,348 KB
testcase_18 AC 64 ms
71,276 KB
testcase_19 AC 68 ms
71,132 KB
testcase_20 AC 67 ms
71,332 KB
testcase_21 RE -
testcase_22 AC 66 ms
71,308 KB
testcase_23 RE -
testcase_24 AC 66 ms
71,296 KB
testcase_25 AC 65 ms
71,204 KB
testcase_26 AC 66 ms
71,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
  S = input()
  T = 'kadomatsu'
  j = 0
  for s in S:
    while s!=T[j]:
      j += 1
      if j==9: return 'No'
    j += 1
  return 'Yes'
print(solve())
0