题解列表

筛选

1332: 津津的储蓄计划

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[12];//每个月的预算 int i; for(i=0;i<12;i++)  { scanf("%……

用java进行的尝试

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args){ S……

c语言的简单尝试

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m; scanf("%d",&m); int n; scanf("%d",&n); int i=0; i……

年龄与疾病

摘要:解题思路:注意事项:打%要打两遍 %%参考代码:#include<stdio.h>int main(){    int n,a[1000];    scanf("%d",&n);    float z……

数组逆序重放

摘要:解题思路:注意事项:逆序打印时,从n-1开始,因为最后要回到0参考代码:#include<stdio.h>int main(){    int a[1000],n;    scanf("%d",&n)……

JAVA完数的判断

摘要:package com.iflytek.helloworld;/** * "Tools": "Created with IntelliJ IDEA", * "Company": "Copyright ……

陶陶摘苹果

摘要:解题思路:注意事项:一定要记得数组下标从0开始!!!参考代码:#include<stdio.h>int main(){    int a[10],n,count=0;    for(int i=0;i……

2945: 素数对(简单解)

摘要:AC代码 代码解析: is_prime函数:该函数用来判断一个数字是否为素数。如果数字小于2,直接返回false。然后从2开始,依次遍历到sqrt(num),如果存在某个数能整除num,则返回……

2947(C++简单解)

摘要:AC代码: ```cpp #include using namespace std; void findUnluckyMonths(int w) { int daysInM……