結果
| 問題 |
No.908 うしたぷにきあくん文字列
|
| コンテスト | |
| ユーザー |
koutabot2
|
| 提出日時 | 2019-11-02 19:25:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 404 bytes |
| コンパイル時間 | 329 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-14 23:14:47 |
| 合計ジャッジ時間 | 1,461 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 12 WA * 6 |
ソースコード
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
if invalid != True:
print("Yes")
koutabot2