首页
学习
活动
专区
圈层
工具
发布

#case

【java开发过程中的问题】

用户1750537

在使用switch语句时,需要注意每个case语句结束时要使用break语句,以避免出现“穿透”现象,即执行完一个case后会继续执行下一个case。

5710

C语言分支循环语句

凤年徐

原因是 switch 语句也是分⽀效果的,只有在 switch 语句中使⽤ break 才能在跳出 switch 语 句,如果某⼀个 case 语句的后边没有 ...

7310

【LightOJ】1215 - Finding LCM(数论)

FishWang

For each case, print the case number and the minimum possible value of c. If no ...

8110

【UESTC】1426 - A Rational Sequence (递归)

FishWang

9610

【LightOJ】1410 - Consistent Verdicts(思维)

FishWang

In a 2D plane N persons are standing and each of them has a gun in his hand. The...

8010

【LightOJ】1414 - February 29(容斥原理)

FishWang

It is 2012, and it's a leap year. So there is a "February 29" in this year, whic...

10110

表达式求值(整数运算)

FishWang

7310

【LightOJ】1064 - Throwing Dice(dp打表)

FishWang

For each case, output the case number and the probability in 'p/q' form where p ...

8910

【LightOJ】1122 - Digit Count(bfs)

FishWang

Given a set of digits S, and an integer n, you have to find how many n-digit int...

10310

【LightOJ】1047 - Neighbor House(dp)

FishWang

The people of Mohammadpur have decided to paint each of their houses red, green,...

9610

【LightOJ】1307 - Counting Triangles(二分)

FishWang

You are given N sticks having distinct lengths; you have to form some triangles ...

6210

【LightOJ】1189 - Sum of Factorials(思维)

FishWang

For each case, print the case number and the solution in summation of factorial ...

7910

【LightOJ】1109 - False Ordering(打表)

FishWang

We define b is a Divisor of a number a if a is divisible by b. So, the divisors ...

7510

【LightOJ】1331 - Agent J(数论)

FishWang

For each case, print the case number and the area of the place where the diamond...

9410

【LightOJ】1136 - Division by 3(规律)

FishWang

For each case, print the case number and the total numbers in the sequence betwe...

8510

【LightOJ】1305 - Area of a Parallelogram(求平行四边形面积)

FishWang

For each case, print the case number and three integers where the first two shou...

5610

【LightOJ】1282 - Leading and Trailing(快速幂 & 数论)

FishWang

For each case, print the case number and the three leading digits (most signific...

10010

【LightOJ】1045 - Digits of Factorial(数论)

FishWang

Factorial of an integer is defined by the following function

10310

【LightOJ】1104 - Birthday Paradox(组合数学)

FishWang

Sometimes some mathematical results are hard to believe. One of the common probl...

6210

【zzuliOJ】1908 - 小火山的围棋梦想(dfs)

FishWang

Time Limit: 1 Sec Memory Limit: 128 MB Submit: 197 Solved: 46 Su...

7110
领券