第一个HelloWorld程序(c语言代码) 摘要:解题思路:只需要三个printf输出语句即可完成本题注意事项:需要注意的是,每个printf语句后面都要跟换行符\n参考代码:#include <stdio.h>int main(){ printf(…… 题解列表 2022年07月25日 0 点赞 0 评论 994 浏览 评分: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 评论 647 浏览 评分:9.9
我看见没人用循环链表 直接一遍就AC了 模拟晾衣服即可 解题思路:记住是环形的晾衣杆,直接不用思考,选择循环链表,虽然单链表也可以,但是怕出错,直接模拟每次晾衣服就OK注意事项:每次记得清除上一组的数据,防止WA(wronganswer)参考代码:#include//直接循环链表模拟, 题解列表 2022年07月25日 0 点赞 0 评论 847 浏览 评分:9.9
第一个HelloWorld程序(c++代码) 摘要:解题思路:使用iostream头文件(iostream是控制输入输出头文件),使用cout输出语句注意事项:cout输出语句后跟endl换行参考代码:#include <iostream>using …… 题解列表 2022年07月25日 0 点赞 0 评论 844 浏览 评分: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 评论 876 浏览 评分:9.9
DNA的生成问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> #include<stdlib.h>int mid1, mid2, flag1 = 0, flag…… 题解列表 2022年07月26日 0 点赞 0 评论 577 浏览 评分: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 评论 830 浏览 评分:9.9
[编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[3][3]={0},b[3][3]={0}; //输入a[][] for(int …… 题解列表 2022年07月26日 0 点赞 1 评论 487 浏览 评分:9.9
简单易懂 数字逆序输出 摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(){ int a[10]={0}; for(int i=0;i<10;i++){ scanf("%d…… 题解列表 2022年07月26日 0 点赞 3 评论 513 浏览 评分:9.9