結果

問題 No.171 スワップ文字列(Med)
ユーザー ciel
提出日時 2015-03-23 01:49:14
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 93 bytes
コンパイル時間 36 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-06-29 00:21:04
合計ジャッジ時間 1,867 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

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