简单的a+b(c语言代码) 摘要:解题思路:定义两个数a和b,然后用scanf语句输入这两个数,最后用printf语句输出a+b注意事项:注意本题要求多组测试数据,使用while(scanf("%d%d",&a,&b)!=EOF)实现…… 题解列表 2022年07月25日 0 点赞 0 评论 678 浏览 评分:9.9
第一个HelloWorld程序(c语言代码) 摘要:解题思路:只需要三个printf输出语句即可完成本题注意事项:需要注意的是,每个printf语句后面都要跟换行符\n参考代码:#include <stdio.h>int main(){ printf(…… 题解列表 2022年07月25日 0 点赞 0 评论 818 浏览 评分:9.9
1999 递归判断首尾相等,诗体文言带你解读。 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;long long N;char s[100];bool HW(int L,int R){ if(L>=R) re…… 题解列表 2022年07月25日 0 点赞 0 评论 491 浏览 评分:9.9
我看见没人用循环链表 直接一遍就AC了 模拟晾衣服即可 摘要:解题思路:记住是环形的晾衣杆,直接不用思考,选择循环链表,虽然单链表也可以,但是怕出错,直接模拟每次晾衣服就OK注意事项:每次记得清除上一组的数据,防止WA(wrong answer)参考代码:#in…… 题解列表 2022年07月25日 0 点赞 0 评论 586 浏览 评分:9.9
第一个HelloWorld程序(c++代码) 摘要:解题思路:使用iostream头文件(iostream是控制输入输出头文件),使用cout输出语句注意事项:cout输出语句后跟endl换行参考代码:#include <iostream>using …… 题解列表 2022年07月25日 0 点赞 0 评论 661 浏览 评分:9.9
巨大的数 C语言 14行代码 摘要:#include #include int main() { int n, ai, i, a = 1; scanf("%d", &n); for(i = 0; …… 题解列表 2022年07月26日 0 点赞 0 评论 631 浏览 评分:9.9
DNA的生成问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> #include<stdlib.h>int mid1, mid2, flag1 = 0, flag…… 题解列表 2022年07月26日 0 点赞 0 评论 377 浏览 评分:9.9
好理解的c++解法 摘要:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int sum=0; for(…… 题解列表 2022年07月26日 0 点赞 0 评论 618 浏览 评分:9.9
[编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3]={0},b[3][3]={0}; //输入a[][] for(int …… 题解列表 2022年07月26日 0 点赞 1 评论 315 浏览 评分:9.9