📣 Back to School开学季 - VIP通行证5折优惠!蓝莓、Offer多多同步优惠
12
返回列表 发新帖
楼主: bluet17
跳转到指定楼层
上一主题 下一主题
收起左侧

-好奇-湾区男生找对象重点排序?

🔗
n551166 2019-8-26 06:53:30 | 只看该作者
全局:
joe3398 发表于 2019-8-20 08:28
哈 发现一个有意思的现象 似乎哪里都很通用男生找女生的时候 通常嘴上不说 心里默默在意门当户对家境收入等 ...

不能同意更多
回复

使用道具 举报

🔗
anna368 2019-8-26 08:24:56 | 只看该作者
全局:
本帖最后由 anna368 于 2019-8-26 08:35 编辑

认真回答:
val priorityQueue = PriorityQueue(compareByDescending<Lady> { it.appearance }
                                          .thenByDescending { it.background }
                                          .thenByDescending { it.personality }
                                          .thenByDescending { it.lifeStyle }
                                          .thenByDescending { it.salary }
                                          .thenByDescending { it.education })

val a = Lady("A", salary = 100, background = 100, lifeStyle = 50)
val b = Lady("B", appearance = 100, personality = 100)

priorityQueue.offer(a)
priorityQueue.offer(b)

println("marry ${priorityQueue.poll()}")
println("was divorced by my wife and lost money")
println("marry ${priorityQueue.poll()}")
println("was divorced by my wife and got some money")
println("marry ${priorityQueue.poll()}")
println("孤独一生")

------
marry Lady(name=B, salary=0, education=0, appearance=100, background=0, personality=100, lifeStyle=0)
was divorced by my wife and lost money
marry Lady(name=A, salary=100, education=0, appearance=0, background=100, personality=0, lifeStyle=50)
was divorced by my wife and got some money
marry null
孤独一生

Process finished with exit code 0

不过我是女的  ( ′・・)ノ(._.`)


回复

使用道具 举报

🔗
smallmikko 2019-8-26 09:57:41 | 只看该作者
全局:
光看长相的弟兄们最好长点心,不是说美女都不靠谱,但是就我自己知道的就有几位经历相当丰富的女生在湾区找到了各自的归宿。当然人家现在应该都变乖了,你不介意就没事啦。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表