結果
問題 |
No.2737 Compound Word
|
ユーザー |
![]() |
提出日時 | 2024-10-13 16:41:04 |
言語 | Go (1.23.4) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 12,939 ms |
コンパイル使用メモリ | 217,604 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 16:41:20 |
合計ジャッジ時間 | 14,076 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 |
ソースコード
package main import "fmt" func main() { var n int fmt.Scan(&n) m := make(map[string]bool) ss := make([]string,n,n) for i:= range ss { var s string fmt.Scan(&s) ss[i]=s for _,t:=range ss[:i] { m[s+t]=true m[t+s]=true } } fmt.Println(len(m)) }