結果
問題 | No.2373 wa, wo, n |
ユーザー | uuuus17 |
提出日時 | 2023-07-07 22:27:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,291 bytes |
コンパイル時間 | 1,281 ms |
コンパイル使用メモリ | 86,756 KB |
実行使用メモリ | 95,392 KB |
最終ジャッジ日時 | 2023-09-28 23:54:20 |
合計ジャッジ時間 | 9,431 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 127 ms
73,580 KB |
testcase_01 | AC | 121 ms
73,688 KB |
testcase_02 | AC | 121 ms
73,672 KB |
testcase_03 | AC | 125 ms
74,008 KB |
testcase_04 | WA | - |
testcase_05 | AC | 122 ms
73,764 KB |
testcase_06 | AC | 124 ms
73,732 KB |
testcase_07 | AC | 124 ms
73,780 KB |
testcase_08 | AC | 122 ms
73,888 KB |
testcase_09 | AC | 118 ms
73,812 KB |
testcase_10 | AC | 124 ms
73,484 KB |
testcase_11 | AC | 124 ms
73,476 KB |
testcase_12 | AC | 118 ms
74,008 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | AC | 117 ms
74,748 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 122 ms
75,908 KB |
testcase_20 | AC | 129 ms
79,100 KB |
testcase_21 | AC | 130 ms
76,012 KB |
testcase_22 | AC | 122 ms
77,208 KB |
testcase_23 | AC | 148 ms
94,348 KB |
testcase_24 | AC | 119 ms
73,800 KB |
testcase_25 | AC | 121 ms
73,564 KB |
testcase_26 | AC | 116 ms
73,872 KB |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | AC | 114 ms
73,728 KB |
testcase_30 | WA | - |
testcase_31 | AC | 117 ms
73,968 KB |
testcase_32 | WA | - |
testcase_33 | AC | 152 ms
94,916 KB |
testcase_34 | WA | - |
testcase_35 | AC | 150 ms
95,036 KB |
testcase_36 | AC | 175 ms
95,348 KB |
testcase_37 | AC | 160 ms
95,136 KB |
testcase_38 | AC | 160 ms
95,236 KB |
testcase_39 | AC | 178 ms
94,988 KB |
testcase_40 | WA | - |
testcase_41 | WA | - |
testcase_42 | AC | 161 ms
95,200 KB |
ソースコード
# import sys # sys.setrecursionlimit(10**7) # input = sys.stdin.readline # import pypyjit # pypyjit.set_param('max_unroll_recursion=-1') def mp():return map(int,input().split()) def lmp():return list(map(int,input().split())) def lm1(LIST): return list(map(lambda x:x-1, LIST)) def mps(A):return [tuple(map(int, input().split())) for _ in range(A)] def stoi(LIST):return list(map(int,LIST)) def itos(LIST):return list(map(str,LIST)) def atoi(LIST): return [ord(i)-ord("a") for i in LIST] def Atoi(LIST): return [ord(i)-ord("A") for i in LIST] def bitA(X,A):return X & 1<<A == 1<<A import math import bisect import heapq import time from copy import copy as cc from copy import deepcopy as dc from itertools import accumulate, product from collections import Counter, defaultdict, deque def ceil(U,V):return (U+V-1)//V def modf1(N,MOD):return (N-1)%MOD+1 inf = (1<<63)-1 mod = 998244353 n = int(input()) s = deque((list(input())+["n"])) #print(s) while len(s) >= 2: a = s.popleft() b = s.popleft() if a+b in ["wa","wo","w?","?a","?o"]: continue elif a+b == "??": s.appendleft(b) elif a == "n": s.appendleft(b) else: s.appendleft(b) s.appendleft(a) break #print(s) if len(s) >= 2: print("No") else: print("Yes")