結果
問題 | No.687 E869120 and Constructing Array 1 |
ユーザー |
|
提出日時 | 2020-11-07 18:18:19 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 84 ms / 1,000 ms |
コード長 | 140 bytes |
コンパイル時間 | 66 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-07-22 14:40:44 |
合計ジャッジ時間 | 1,365 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
コンパイルメッセージ
Syntax OK
ソースコード
puts (X = 1..(Y=gets.to_i)).map {|a| X.map{|b| [a,b]}}.flatten(1).filter{|x| x[0] + x[1] == Y}.filter{|x| x[0] <= 10 && x[1] <= 10}[0] * " "