Working overtime

这些天团队经常需要加班工作。尽管我不喜欢加班,但目前别无选择,只能坐在座位上继续努力。
These days Our team offten work overtime.There is nothing I like less than being on overtime.But no way but sit on the seat.

转载于:https://www.cnblogs.com/webq/archive/2006/07/20/455074.html

小吴同学想换一部手机,希望自己自力更生获得。于是,小吴准备暑假兼职获取酬劳。今天看到一则招聘启示,薪资标准为:每周工作40小时以内,每小时基本工资20元;超出时间为加班,每小时工资翻倍。公司规定,每周加班不能超过10小时。 现在,小吴想知道,若在此公司工作,要在一个月内(4周)挣到购买手机的资金,需要工作的时长。请你编写一个程序,替小吴算算,购买不同的手机需要加班的最短时长。 (Xiao Wu wants to change a mobile phone, hoping to get it by herself. Therefore, Xiao Wu is going to work part-time in the summer vacation to get paid. Today, she saw a recruitment revelation. The salary standard is: working within 40 hours per week, and the basic salary per hour is 20 yuan; Overtime is overtime, and the hourly salary is doubled. The company stipulates that overtime work should not exceed 10 hours per week. Now, Xiao Wu wants to know how long it takes to work in this company to earn money to buy a mobile phone within one month (four weeks). Please write a program to calculate for Xiao Wu the minimum time to work overtime when buying different mobile phones.) 输入格式: 输入小吴想买的手机价格Price,Price为正整数。 (Enter the Price of the mobile phone that Xiao Wu wants to buy, and the Price is a positive integer.) 输出格式: 按样例,给出是否需要加班的结论。若需要加班,给出需加班时长(整数)。并给出是否能购买此手机的建议。 (According to the following samples, give the conclusion whether overtime is needed. If overtime is required, give the duration of overtime (integer). And give advice on whether you can buy this mobile phone.) 输入样例 1: 2000 输出样例 1: 不需加班,可购买 输入样例 2: 5000 输出样例 2: 需加班45小时,买不起 输入样例 3: 4500 输出样例 3: 需加班33小时,可购买
05-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值