結果

問題 No.908 うしたぷにきあくん文字列
ユーザー ゆるくゆるく
提出日時 2019-10-26 02:49:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 701 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 10,784 KB
実行使用メモリ 10,412 KB
最終ジャッジ日時 2023-10-11 15:41:47
合計ジャッジ時間 2,297 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
10,356 KB
testcase_01 AC 33 ms
10,248 KB
testcase_02 AC 32 ms
10,204 KB
testcase_03 AC 33 ms
10,236 KB
testcase_04 AC 32 ms
10,320 KB
testcase_05 AC 32 ms
10,244 KB
testcase_06 AC 32 ms
10,192 KB
testcase_07 AC 32 ms
10,332 KB
testcase_08 AC 32 ms
10,248 KB
testcase_09 AC 31 ms
10,276 KB
testcase_10 AC 31 ms
10,192 KB
testcase_11 AC 32 ms
10,256 KB
testcase_12 AC 32 ms
10,256 KB
testcase_13 AC 33 ms
10,188 KB
testcase_14 AC 32 ms
10,196 KB
testcase_15 AC 32 ms
10,204 KB
testcase_16 AC 32 ms
10,160 KB
testcase_17 AC 32 ms
10,164 KB
testcase_18 AC 33 ms
10,200 KB
testcase_19 AC 32 ms
10,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: UTF-8
import sys
#sys.setrecursionlimit(n)
import heapq
import re
import bisect
import random
import math
import itertools
from collections import defaultdict, deque
from copy import deepcopy
from decimal import *

readl= lambda: list(map(int, sys.stdin.readline().split()))
readt= lambda: tuple(map(int, sys.stdin.readline().split()))
read = lambda: sys.stdin.readline().rstrip()
readi = lambda: int(read())
readmi = lambda: map(int, sys.stdin.readline().split())
readms = lambda: map(str, sys.stdin.readline().split())

s = list(read())
for i in range(len(s)):
    if ((i + 1) % 2 == 0 and s[i] != ' ') or ((i + 1) % 2 == 1 and s[i] == ' '):
        print("No")
        exit()
print("Yes")
0