結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
object1234
|
| 提出日時 | 2019-01-19 20:48:12 |
| 言語 | Ruby (3.4.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 427 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 19,356 KB |
| 最終ジャッジ日時 | 2024-07-18 08:32:43 |
| 合計ジャッジ時間 | 5,282 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 TLE * 1 -- * 19 |
コンパイルメッセージ
Syntax OK
ソースコード
def build_str(i,j)
res = []
a = [i,j].sort
res << "#{a[0]}#{a[1]}"
res << "#{a[1]}#{a[0]}"
res
end
res = []
max = gets.chomp.to_i
(1..max).each do |i|
(1..max).each do |j|
if i * j == max
strs = build_str(i,j)
strs.each do |s|
if not res.include?(s)
res << s
end
end
end
end
end
puts res.length
object1234