結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
koutabot2
|
| 提出日時 | 2019-11-02 19:27:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 423 bytes |
| コンパイル時間 | 182 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-14 23:15:00 |
| 合計ジャッジ時間 | 1,521 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 WA * 3 |
ソースコード
S = input()
invalid = False
i = 0
for h in S:
i = i + 1
if i % 2 == 1:
if type(h) is str:
pass
elif type(h) is not str:
print("No")
invalid = True
break
elif i % 2 == 0:
if h == " ":
pass
else:
print("No")
invalid = True
break
if invalid != True:
print("Yes")
koutabot2