Hello,World(C++代码) 摘要:#include<iostream> using namespace std; int main(){ return 0; }解题思路:无,上面的是标准头文件注意事项:几个星号需打参考代码…… 题解列表 2024年11月06日 4 点赞 0 评论 1008 浏览 评分:7.3
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码:小白菜鸟写的,看看就好#include<iostream>using namespace std;int main(){ int arr[1000]; int…… 题解列表 2024年11月06日 0 点赞 0 评论 143 浏览 评分:0.0
国王的烦恼——发工资,简单方法 摘要:解题思路:如果为6天,金币数为6-0+(6-0)-(0+1)+[(6-0)-(0+1)]-(0+1+1)=14,可推断出为n天时金币为(n-0)+(n-0)-(0+1)+[(n-0)-(0+1)]-(…… 题解列表 2024年11月06日 0 点赞 0 评论 180 浏览 评分:9.9
找第一个只出现一次的字符 摘要:解题思路:写题解代码只是为了自己查看,无严谨性注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100000]; …… 题解列表 2024年11月06日 0 点赞 0 评论 417 浏览 评分:0.0
用for嵌套解决国王的烦恼——发工资(C语言) 摘要:简单的for嵌套是无法解决的,我们需要加入一些判断才能解决。#include<stdio.h> #include<stdlib.h> int main(){ int n,coins=0,day=…… 题解列表 2024年11月06日 0 点赞 3 评论 223 浏览 评分:9.9
数组逆序重放 摘要:解题思路:随便写写,这题目比较常见,故而写题解方便自己查阅注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); …… 题解列表 2024年11月06日 1 点赞 0 评论 281 浏览 评分:10.0
完数的判断C语言 摘要:解题思路:这个思路我都写在代码里了每段代表什么,如果有哪里不懂,欢迎评论区见注意事项:我用i*i<n是因为他因子一般成对出现,可以优化算法,让算法的运行速度更快参考代码:#include <stdio…… 题解列表 2024年11月06日 2 点赞 0 评论 318 浏览 评分:10.0
逆天解法,包得吃的。 摘要:解题思路:注意事项:自己看参考代码:#include<stdio.h> int main(){ int arr[101],i,j,a,b,c; for(i=0;i<100;i++) { arr[i]…… 题解列表 2024年11月06日 0 点赞 0 评论 267 浏览 评分:0.0
蓝桥基础练习-字符串对比,初学者暴力解法! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义两个字符串变量s1和s2 …… 题解列表 2024年11月06日 0 点赞 0 评论 228 浏览 评分:6.0
高精度乘法 摘要:#include"bits/stdc++.h" using namespace std; int main(){ string s1,s2; int a1[100000],a2…… 题解列表 2024年11月05日 0 点赞 0 评论 133 浏览 评分:0.0