不用switch-case 摘要:解题思路:或的用法注意事项:参考代码:#include <stdio.h>int main() { int day; scanf(&qu…… 题解列表 2025年10月05日 0 点赞 0 评论 374 浏览 评分:0.0
2025/7/24刷题记录 解题思路:switch可以将输出结果一样的case放一部分不写break到最后一个再写如果switch如果前面的case匹配成功但是没有break会继续往下执行注意事项:参考代码:#includeintmain(){inta;scanf("%d", 题解列表 2025年07月24日 0 点赞 0 评论 418 浏览 评分:0.0
C++简单解法 摘要:解题思路:属于基础题目注意事项:参考代码:#include<iostream>using namespace std;int main(void){ i…… 题解列表 2025年03月05日 0 点赞 0 评论 627 浏览 评分:0.0
新手 晶晶赴会 摘要:解题思路:简单判断邀约的星期是否为偶数注意事项:参考代码#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a%2==0) …… 题解列表 2024年12月04日 1 点赞 0 评论 435 浏览 评分:0.0
2788普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a; scanf("%d",&n); if (n == 1 || n == 3 || n == 5…… 题解列表 2024年11月23日 0 点赞 0 评论 401 浏览 评分:0.0
给用Java的开一下荒土 解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);while(scanner.hasNext()) 题解列表 2023年03月30日 0 点赞 0 评论 487 浏览 评分:0.0
可以稍微少打一些代码 摘要:解题思路:注意事项:不要忘记switch语句的花括号参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); switch(a…… 题解列表 2024年11月11日 0 点赞 0 评论 381 浏览 评分:0.0
编写题解 2788: 晶晶赴约会python 摘要:解题思路:注意事项:参考代码:n = int(input()) if n <= 5: if n % 2 == 0: print("YES") else:   题解列表 2024年03月06日 0 点赞 0 评论 731 浏览 评分:0.0
2788: 晶晶赴约会 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if (1==a || 3==a || 5==…… 题解列表 2023年11月13日 0 点赞 0 评论 453 浏览 评分:0.0
2788: 晶晶赴约会 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int day; int arr[4]…… 题解列表 2023年11月02日 0 点赞 0 评论 449 浏览 评分:0.0