結果

問題 No.2373 wa, wo, n
ユーザー ID 21712
提出日時 2024-11-15 21:46:45
言語 Go
(1.23.4)
結果
AC  
実行時間 233 ms / 2,000 ms
コード長 334 bytes
コンパイル時間 11,326 ms
コンパイル使用メモリ 222,272 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-15 21:47:01
合計ジャッジ時間 15,758 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 39
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import . "fmt"
import . "strings"

func main() {
	var n,s string 
	Scan(&n,&s)
	s=ReplaceAll(s,"wa","n")
	s=ReplaceAll(s,"wo","n")
	s=ReplaceAll(s,"w?","n")
	s=ReplaceAll(s,"?a","n")
	s=ReplaceAll(s,"?o","n")
	s=ReplaceAll(s,"?","")
	s=ReplaceAll(s,"n","")
	if len(s)==0 {
		Println("Yes")
	} else {
		Println("No")
	}
}
0