結果
問題 | No.170 スワップ文字列(Easy) |
ユーザー |
![]() |
提出日時 | 2017-10-21 07:06:41 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 204 bytes |
コンパイル時間 | 2,982 ms |
コンパイル使用メモリ | 65,772 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 03:18:46 |
合計ジャッジ時間 | 3,938 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 17) Warning: imported and not used: 'strutils' [UnusedImport]
ソースコード
import sequtils,strutils,mathvars = stdin.readlinecnt : array['A' .. 'Z' , int]for c in s:cnt[c] += 1varA = fac(s.len)i : intfor j in cnt:A = A div fac(j)echo(A - 1)