結果

問題 No.908 うしたぷにきあくん文字列
ユーザー Liny52551272Liny52551272
提出日時 2019-11-12 11:49:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 224 ms
コンパイル使用メモリ 11,864 KB
実行使用メモリ 9,968 KB
最終ジャッジ日時 2023-10-18 22:09:38
合計ジャッジ時間 1,975 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,920 KB
testcase_01 AC 32 ms
9,920 KB
testcase_02 WA -
testcase_03 AC 31 ms
9,920 KB
testcase_04 AC 32 ms
9,920 KB
testcase_05 WA -
testcase_06 AC 31 ms
9,920 KB
testcase_07 AC 30 ms
9,920 KB
testcase_08 AC 32 ms
9,920 KB
testcase_09 AC 30 ms
9,920 KB
testcase_10 AC 31 ms
9,920 KB
testcase_11 AC 31 ms
9,920 KB
testcase_12 WA -
testcase_13 AC 31 ms
9,920 KB
testcase_14 AC 31 ms
9,920 KB
testcase_15 AC 31 ms
9,920 KB
testcase_16 AC 31 ms
9,920 KB
testcase_17 AC 30 ms
9,920 KB
testcase_18 AC 31 ms
9,920 KB
testcase_19 AC 31 ms
9,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import string

txt = string.ascii_lowercase
S = input()

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