結果
問題 | No.2737 Compound Word |
ユーザー |
![]() |
提出日時 | 2024-04-24 18:30:49 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 248 bytes |
コンパイル時間 | 5,092 ms |
コンパイル使用メモリ | 67,524 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-07 03:20:13 |
合計ジャッジ時間 | 5,956 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 |
ソースコード
import sequtils, sets, strutils let n = parseInt readLine stdin xs = n.newSeqWith readLine stdin var ss: seq[string] for i in 0 ..< n.pred: for j in i.succ ..< n: ss.add(xs[i] & xs[j]) ss.add(xs[j] & xs[i]) echo ss.toHashSet.card