1332: 津津的储蓄计划 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[12];//每个月的预算 int i; for(i=0;i<12;i++) { scanf("%…… 题解列表 2023年08月03日 0 点赞 1 评论 377 浏览 评分:4.7
用java进行的尝试 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args){ S…… 题解列表 2023年08月03日 0 点赞 0 评论 350 浏览 评分:9.9
c语言的简单尝试 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m; scanf("%d",&m); int n; scanf("%d",&n); int i=0; i…… 题解列表 2023年08月03日 0 点赞 0 评论 400 浏览 评分:9.9
年龄与疾病 摘要:解题思路:注意事项:打%要打两遍 %%参考代码:#include<stdio.h>int main(){ int n,a[1000]; scanf("%d",&n); float z…… 题解列表 2023年08月03日 0 点赞 0 评论 279 浏览 评分:0.0
数组逆序重放 摘要:解题思路:注意事项:逆序打印时,从n-1开始,因为最后要回到0参考代码:#include<stdio.h>int main(){ int a[1000],n; scanf("%d",&n)…… 题解列表 2023年08月03日 0 点赞 0 评论 406 浏览 评分:6.0
JAVA完数的判断 摘要:package com.iflytek.helloworld;/** * "Tools": "Created with IntelliJ IDEA", * "Company": "Copyright …… 题解列表 2023年08月02日 0 点赞 0 评论 278 浏览 评分:0.0
陶陶摘苹果 摘要:解题思路:注意事项:一定要记得数组下标从0开始!!!参考代码:#include<stdio.h>int main(){ int a[10],n,count=0; for(int i=0;i…… 题解列表 2023年08月02日 0 点赞 0 评论 272 浏览 评分:0.0
2945: 素数对(简单解) 摘要:AC代码 代码解析: is_prime函数:该函数用来判断一个数字是否为素数。如果数字小于2,直接返回false。然后从2开始,依次遍历到sqrt(num),如果存在某个数能整除num,则返回…… 题解列表 2023年08月02日 0 点赞 0 评论 530 浏览 评分:9.9
2947(C++简单解) 摘要:AC代码: ```cpp #include using namespace std; void findUnluckyMonths(int w) { int daysInM…… 题解列表 2023年08月02日 0 点赞 0 评论 386 浏览 评分:0.0
2950: 素数回文数的个数(C++简单解) 摘要:代码解析: isPrime函数:该函数用于判断一个数是否为素数。首先判断如果n小于2,则直接返回false,因为小于2的数不是素数。然后使用一个循环从2开始到sqrt(n)判断是否存在一个数能整除n…… 题解列表 2023年08月02日 0 点赞 0 评论 657 浏览 评分:9.9