結果
| 問題 | No.69 文字を自由に並び替え |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-09-08 02:37:49 |
| 言語 | Ruby (4.0.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 493 bytes |
| 記録 | |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 15,232 KB |
| 最終ジャッジ日時 | 2026-03-15 12:04:08 |
| 合計ジャッジ時間 | 1,600 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 1 |
コンパイルメッセージ
Syntax OK
ソースコード
class SortFreely
attr_reader :a, :b
def initialize(a: "", b: "")
@a, @b = a, b
end
def cause
begin
@a = gets.chomp
@b = gets.chomp
rescue
end
end
def judgment(str1, str2)
((str1.split("") - str2.split("")).empty?)? "YES" : "NO"
end
def result
puts judgment(@a, @b)
end
def run
cause
result
end
end
if $0 == __FILE__
SortFreely.new.run
end