public class Test {
public static void main(String[] args) {
int count = 0, sum= 141;
for (int a = 0; a <= sum; a++)
for (int b = 0; b <= sum; b++)
for (int c = 0; c <= sum; c++)
for (int d = 0; d <= sum; d++)
if (a + b + c + d == sum)
count++;
System.out.println(count);
}
}
歡迎光臨 2000FUN論壇 (https://www.2000fun.com/) | Powered by Discuz! X1.5.1 |