結果
問題 | No.171 スワップ文字列(Med) |
ユーザー | No |
提出日時 | 2015-06-16 18:46:30 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,259 bytes |
コンパイル時間 | 2,159 ms |
コンパイル使用メモリ | 108,068 KB |
実行使用メモリ | 24,056 KB |
最終ジャッジ日時 | 2023-09-21 09:04:02 |
合計ジャッジ時間 | 3,953 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 61 ms
22,060 KB |
testcase_01 | AC | 62 ms
21,956 KB |
testcase_02 | AC | 65 ms
24,000 KB |
testcase_03 | AC | 62 ms
21,824 KB |
testcase_04 | AC | 62 ms
23,980 KB |
testcase_05 | WA | - |
testcase_06 | AC | 64 ms
23,848 KB |
testcase_07 | AC | 66 ms
22,060 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 61 ms
21,876 KB |
testcase_11 | AC | 62 ms
23,924 KB |
testcase_12 | AC | 63 ms
24,020 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Numerics; namespace foryuki { class Program { static void Main(string[] args) { char[] c = Console.ReadLine().ToCharArray(); BigInteger a = 1; for (int i = 1; i <= c.Length; i++) { a *= i; } BigInteger b = 1; var q1 = c.Distinct(); foreach (var i in q1) { int k = c.Where(x => x == i).Count(); for (int j = 1; j <= k; j++) { a /= j; } } Console.WriteLine(a % 573 -1); } //------------------------------------------------------------- static int[] ConvertStringArrayToIntArray(string[] array) { return Array.ConvertAll(array, str => int.Parse(str)); } static List<int> ConvertStringArrayToIntList(string[] str) { var list = new List<int>(); foreach (var c in str) { list.Add(int.Parse(c)); } return list; } } }