第十一届蓝桥杯大赛软件类省赛
C/C++大学B组
试题

答案:3880
public class Main {
public static void main(String[] args) {
int tot = 10000;
boolean go = true;
int ans = 0;
while(true && tot >= 0) {
if(go) {
if(tot - 600 < 0) break;
tot -= 600;
go = false;
} else {
tot += 300;
go = true;
}
ans ++;
}
System.out.println(ans * 60 + tot / 10);
}
}

答案:52038720
import java.util.Date;
import java.text.SimpleDateFormat;
import java.text.ParseException;
public class Main

本文介绍了第十一届蓝桥杯软件类省赛中C/C++大学B组的比赛情况,重点在于分享比赛试题及部分答案,包括3880、52038720、10等关键数据。
最低0.47元/天 解锁文章
3095

被折叠的 条评论
为什么被折叠?



