Find Jobs
Hire Freelancers

Solve Java Puzzle

₹600-610 INR

进行中
已发布超过 6 年前

₹600-610 INR

货到付款
Please write answer code using Java. We have ping pong room in our office and there is one table. What we want to know is when we know people's availability for their playing time, how many hours can we play either singles or doubles in a day. condition: The working hours are 9-18. The table is only one table. When gathering two, three people, we can play singles. When gathering over four people, we can play doubles. Input The first line of the input gives the number of players T, T players available time follow. Each consists of one line with Integer S E. S represents start time, and E represents end time. Ex: 2 9 10 9 12 It means 2 players can play ping pong. The 1st player can play from 9 to 10 and the 2nd player can play ping pong from 9 to 12. Output: The output one line containing x y. where x is singles hours count and y is double hours. The above input means player 1 can play ping pong from 9 to 10, and player 2 can play ping pong from 9 to 12. So, expected output of above example is 1 0 Data you need to solve is here: Q1 Input 2 9 10 9 12 Output : 1 0 Q2 Input 4 9 10 9 12 13 15 10 18 Output: 5 0 Q3 Input 7 9 11 12 14 13 15 11 18 14 18 10 14 15 18 Output: 7 1 Q4 Input 9 9 10 9 12 14 15 16 18 14 18 10 13 15 18 10 14 9 13 Output : 6 2 Q5 Input 8 9 14 15 17 12 13 16 18 10 15 14 16 9 13 9 15 Output : 5 3
项目 ID: 15065606

关于此项目

3提案
远程项目
活跃7 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
3威客以平均价₹772 INR来参与此工作竞价
用户头像
Nice problem. I can solve it. Please assign project to me and I can provide you solution. Please share if you other such problems. It's always fun solving these.
₹600 INR 在1天之内
5.0 (50条评论)
6.2
6.2
用户头像
I am a college A-level student studying computer science and am working at an A. I have been programming in Java for years and feel that this project will not take long to complete. Relevant Skills and Experience I have picked up many skills in the time I have been programming such as polymorphism, encapsulation, generics and lambdas. I have experience in JavaFX and console applications. Proposed Milestones ₹855 INR - I will complete this task and make it bug-free.
₹855 INR 在1天之内
5.0 (2条评论)
1.0
1.0

关于客户

INDIA的国旗
Ahmedabad, India
5.0
1
会员自10月 11, 2015起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。