1870: 统计字符数(一次输入,同一输出,而非多组单独分开测试) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int i; int N; int j; scanf("%d",&N); char a[100][100…… 题解列表 2022年07月19日 0 点赞 0 评论 307 浏览 评分:0.0
1989: 奇数个数我看很多大佬都使用了数组长度函数strlen,我写个不使用的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int i; char c[100]={}; int ans=0; gets(c); for(i=0;c…… 题解列表 2022年07月19日 0 点赞 0 评论 303 浏览 评分:0.0
编写题解 1434: 蓝桥杯历届试题-回文数字(简单) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//万能头文件using namespace std;int n;bool hui(int a){ int i=a; in…… 题解列表 2022年07月19日 0 点赞 0 评论 278 浏览 评分:0.0
1993: 荣耀(关键在于击杀零个人不显示0的情况) 摘要:解题思路:注意事项:击杀零个人不显示,注意最大是一千个人而非999参考代码:#include<stdio.h>int swip(int);int main(void){ int i; int N; i…… 题解列表 2022年07月19日 0 点赞 0 评论 307 浏览 评分:0.0
编写题解 1159: 偶数求和(适合新手) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; while(cin>>n){ int k=2…… 题解列表 2022年07月20日 0 点赞 0 评论 308 浏览 评分:0.0
Java一重循环解法 摘要:```java 1import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2022年07月20日 0 点赞 0 评论 348 浏览 评分:0.0
#C++2011——电导流的矩形 摘要:解题思路:对于两个不确定位置的对角坐标,用max,min函数确定左右(上下)边界,用abs函数确定其长度与宽度;注意事项:注意不同数组所代表的含义;参考代码:#include <iostream> …… 题解列表 2022年07月20日 0 点赞 0 评论 393 浏览 评分:0.0
换硬币jiandan 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int f(int n){ if(n==1) return 1; if(n==2) return 2; else return f(n…… 题解列表 2022年07月20日 0 点赞 0 评论 321 浏览 评分:0.0
编写题解 1850: 判断第几天(简单易懂,适合新手) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int y,m,d; int a[13]={00,31,28…… 题解列表 2022年07月20日 0 点赞 0 评论 387 浏览 评分:0.0
两行代码搞定 摘要:解题思路:字符串的切片逆置注意事项:参考代码:if __name__ == "__main__":(这个可有可无) n = str(input()) print(n[::-1])…… 题解列表 2022年07月21日 0 点赞 0 评论 299 浏览 评分:0.0