結果
問題 | No.171 スワップ文字列(Med) |
ユーザー | ciel |
提出日時 | 2015-03-23 01:49:03 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 91 bytes |
コンパイル時間 | 66 ms |
コンパイル使用メモリ | 11,300 KB |
実行使用メモリ | 15,604 KB |
最終ジャッジ日時 | 2023-09-11 09:42:23 |
合計ジャッジ時間 | 1,951 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 85 ms
15,140 KB |
testcase_01 | WA | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | WA | - |
testcase_11 | RE | - |
testcase_12 | WA | - |
コンパイルメッセージ
Main.rb:3: warning: ambiguous first argument; put parentheses or a space even after `-' operator Syntax OK
ソースコード
r=1;t=0 gets.chomp.bytes.group_by{|e|e}.map{|k,v|v.size.times{|i|r=r*(t+=1)/~-i}} p -~r%573