判断第几天(我也是闲,整了个switch来输出) 摘要:参考代码: ```c #include int leap(int year) { int k=year%100?(year%4?0:1):(year%400?0:1);//k为1,为…… 题解列表 2023年10月27日 0 点赞 0 评论 175 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 (代码易理解 0_0)!!!! 摘要:解题思路: //利用一个数组将相对位置的乘积存起来,后面判断是否进位!!!注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){ …… 题解列表 2023年10月27日 0 点赞 0 评论 646 浏览 评分:0.0
一个二维数组+一个for循环搞定 摘要:解题思路:本质上是Trie树注意事项:参考代码:#includeusing namespace std;const int N=100010;int son[N][26]={0};int idx=0;…… 题解列表 2023年10月27日 0 点赞 0 评论 196 浏览 评分:0.0
Sn公式求和记录 摘要:解题思路:用了math.h头文件里的pow()函数来求n次方注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int m=2…… 题解列表 2023年10月27日 0 点赞 0 评论 107 浏览 评分:0.0
统计字符个数(靠,真就只要10个,多一个都不行是吧) 摘要:参考代码: ```c #include #include #include int main() { char a[200]; gets(a); int len=strlen(…… 题解列表 2023年10月28日 0 点赞 0 评论 230 浏览 评分:0.0
去除空格(C语言) 摘要:参考代码: ```c #include void Spacebar(char *a,int len) { for(int i=0;i…… 题解列表 2023年10月28日 0 点赞 0 评论 324 浏览 评分:0.0
寻找奇整数(使用sizeof()函数计算数组长度) 摘要:参考代码: ```c #include int main() { int a[]={3,7,5,13,25,45,78,23,8,33,9,19,28,41,50}; int len=…… 题解列表 2023年10月28日 0 点赞 0 评论 180 浏览 评分:0.0
[编程入门]第一个HelloWorld程序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("He…… 题解列表 2023年10月28日 0 点赞 0 评论 118 浏览 评分:0.0
最简单写法c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int h = 1189; int t = h; int w = 84…… 题解列表 2023年10月28日 1 点赞 0 评论 239 浏览 评分:0.0
[编程入门]自定义函数之字符串拷贝 STL大法 摘要: 参考代码: #include <iostream> using namespace std; string x; int n,k; int main() { cin>>n>>…… 题解列表 2023年10月28日 0 点赞 0 评论 146 浏览 评分:0.0