1993: 荣耀(关键在于击杀零个人不显示0的情况) 摘要:解题思路:注意事项:击杀零个人不显示,注意最大是一千个人而非999参考代码:#include<stdio.h>int swip(int);int main(void){ int i; int N; i…… 题解列表 2022年07月19日 0 点赞 0 评论 311 浏览 评分: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 评论 311 浏览 评分:0.0
Java一重循环解法 摘要:```java 1import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2022年07月20日 0 点赞 0 评论 352 浏览 评分:0.0
#C++2011——电导流的矩形 摘要:解题思路:对于两个不确定位置的对角坐标,用max,min函数确定左右(上下)边界,用abs函数确定其长度与宽度;注意事项:注意不同数组所代表的含义;参考代码:#include <iostream> …… 题解列表 2022年07月20日 0 点赞 0 评论 401 浏览 评分: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 评论 327 浏览 评分: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 评论 390 浏览 评分:0.0
两行代码搞定 摘要:解题思路:字符串的切片逆置注意事项:参考代码:if __name__ == "__main__":(这个可有可无) n = str(input()) print(n[::-1])…… 题解列表 2022年07月21日 0 点赞 0 评论 309 浏览 评分:0.0
辗转相除法(欧几里得法)过程简述(简单粗暴!)及核心代码详注(C语言) 摘要:过程简述(原理不多赘述,网上很多)(1)大数除小数 ①余数为0,除数即最大公约数 ②余数不为0,执行(2)(2)余数不为0,上一轮的除数作为被除数,…… 题解列表 2022年07月21日 0 点赞 0 评论 397 浏览 评分:0.0
【c语言】结构体之时间设计 摘要:参考代码:#include<stdio.h>int main(){ int a,b,c; struct ymd{ int a; int b; int c; }y; scanf("%d%d%d"…… 题解列表 2022年07月21日 0 点赞 0 评论 422 浏览 评分:0.0
【C语言】结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b,c; struct ymd{ int a; int b; in…… 题解列表 2022年07月21日 0 点赞 0 评论 474 浏览 评分:0.0