結果
問題 |
No.908 うしたぷにきあくん文字列
|
ユーザー |
![]() |
提出日時 | 2019-10-31 14:39:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 442 bytes |
コンパイル時間 | 96 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-14 22:04:06 |
合計ジャッジ時間 | 1,436 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 5 |
ソースコード
S = input().rstrip() s = list(S) N = len(s) t = [] T = [] counter = 0 if N % 2 == 0: for i in range(int(N/2)): t.append(s[2 * i]) T.append(s[2 * i + 1]) else: for i in range(int((N-1)/2)): t.append(s[2 * i]) T.append(s[2 * i + 1]) if " " in t: counter = 1 if counter == 0: if "".join(t).isalpha() is True: if "".join(T).isspace() is True: print("Yes") else: print("No")