結果

問題 No.1367 文字列門松
コンテスト
ユーザー ID 21712
提出日時 2025-02-11 14:16:12
言語 Go
(1.26.1)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
WA  
実行時間 -
コード長 298 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 11,755 ms
コンパイル使用メモリ 279,536 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-06-30 00:11:57
合計ジャッジ時間 12,832 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

package main

import . "fmt"

func main() {
	var s string
	Scan(&s)
	b := []byte(s)
	x := []byte("kadomatsu")
	for _, bc := range b {
		ok := false
		for i, xc := range x {
			if bc == xc {
				ok = true
				x[i] = 0
				break
			}
		}
		if !ok {
			Println("No")
			return
		}
	}
	Println("Yes")
}
0