結果

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

ソースコード

diff #

s = input()
n = len(s)

flg = False
for i in range(n):
    if i % 2 == 0 and s[i] == " ":
        flg = True
    elif i % 2 != 0 and s[i] != " ":
        flg = True

ans = "Yes"
if flg:
    ans = "No"

print(ans)
0