結果

問題 No.908 うしたぷにきあくん文字列
ユーザー Liny52551272
提出日時 2019-11-12 11:58:21
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-18 18:25:05
合計ジャッジ時間 1,337 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

import string

txt = string.ascii_lowercase
S = input().strip() + ' '
S = S[0:len(S) // 2 * 2]

for i in range(len(S) // 2):
  if not(S[i*2] in txt):
    print('No')
    break
  
  if not(S[i*2+1] == ' '):
    print('No')
    break
else:
  print('Yes')
0