結果

問題 No.171 スワップ文字列(Med)
ユーザー cielciel
提出日時 2015-03-22 23:29:50
言語 Ruby
(3.2.2)
結果
AC  
実行時間 85 ms / 1,000 ms
コード長 116 bytes
コンパイル時間 427 ms
コンパイル使用メモリ 11,540 KB
実行使用メモリ 16,044 KB
最終ジャッジ日時 2023-09-11 09:32:07
合計ジャッジ時間 2,016 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,172 KB
testcase_01 AC 81 ms
15,296 KB
testcase_02 AC 83 ms
15,596 KB
testcase_03 AC 80 ms
15,140 KB
testcase_04 AC 80 ms
15,372 KB
testcase_05 AC 81 ms
15,384 KB
testcase_06 AC 82 ms
15,440 KB
testcase_07 AC 85 ms
16,044 KB
testcase_08 AC 82 ms
15,840 KB
testcase_09 AC 81 ms
15,780 KB
testcase_10 AC 80 ms
15,036 KB
testcase_11 AC 81 ms
15,144 KB
testcase_12 AC 81 ms
15,044 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

r=1;t=0
gets.chomp.bytes.group_by{|e|e}.each{|k,v|
	v.size.times{r*=(t+=1)}
	r/=(1..v.size).reduce(:*)
}
p (r-1)%573
0