結果
問題 |
No.170 スワップ文字列(Easy)
|
ユーザー |
![]() |
提出日時 | 2018-06-20 01:02:00 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 24 ms / 5,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 3,723 ms |
コンパイル使用メモリ | 69,764 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 17:21:58 |
合計ジャッジ時間 | 4,644 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
import strutils, algorithm, tables var S = stdin.readLine.sorted(cmp) dic = initCountTable[string]() while true: dic.inc S.join if S.nextPermutation == false: break echo dic.len - 1