結果
問題 | No.233 めぐるはめぐる (3) |
ユーザー |
![]() |
提出日時 | 2023-01-03 11:53:27 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 315 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 35,884 KB |
最終ジャッジ日時 | 2024-11-27 01:48:32 |
合計ジャッジ時間 | 7,614 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 WA * 4 |
コンパイルメッセージ
Main.rb:25: warning: ambiguous first argument; put parentheses or a space even after `-' operator Syntax OK
ソースコード
A = %w(i a a e u u)B = %w(n b m g r)N = gets.to_imemo = Hash.newN.times dos = gets.chompmemo[s] = trueendA.permutation(6).to_a.product(B.permutation(5).to_a).each do |a, b|s = ''6.times do |i|s << a[i]s << b[i] if i < 5endif memo[s].nil?puts sexitendendputs -1