入门题,但是要注意看题目 摘要:# 注意审题!注意审题!注意审题! #include int main(){ long long num; //数字过大,用lld scanf("…… 题解列表 2024年11月24日 3 点赞 0 评论 258 浏览 评分:10.0
利用指针,switch语句精简代码,给小白理清楚指针思路 摘要:解题思路:这个题有很多办法可以投机取巧,但是仍然建议小白脚踏实地,强化基础。我们利用指针实现对字符串的访问,无需多余的索引,常数,小白可以思考为什么指针a,b进入函数过后,再出来,他们指向的地址没有变…… 题解列表 2024年11月24日 5 点赞 0 评论 506 浏览 评分:10.0
A+B for Input-Output Practice (IV) 摘要: #include using namespace std; int main() { int i=0,n; int …… 题解列表 2024年11月24日 0 点赞 0 评论 298 浏览 评分:0.0
最复杂的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a,k,b=0,c=0,d=0,e=0,f=0; scanf("%d",&a); …… 题解列表 2024年11月24日 0 点赞 1 评论 196 浏览 评分:0.0
安之 用STL模拟栈的方法 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ //3 123 321 //3 123 312 ve…… 题解列表 2024年11月24日 0 点赞 0 评论 175 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,a; double b=30.0; scanf("…… 题解列表 2024年11月24日 0 点赞 0 评论 190 浏览 评分:0.0
自定义函数之整数处理 摘要:#include<bits/stdc++.h> using namespace std; int main() { int a[10]; for(int i=0;i<10;i++)c…… 题解列表 2024年11月24日 0 点赞 0 评论 333 浏览 评分:9.9
直接写就得了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; float b=0; scanf("%d",&a); if(a<=1000…… 题解列表 2024年11月24日 0 点赞 0 评论 167 浏览 评分:0.0
循环单链表 #1770: [编程入门]链表之报数问题&约瑟夫环(C++) 摘要:这道题如果用不带头结点的循环单链表会少去两个特判 奈何作者带头结点的写习惯了,不带头结点的一时不会写了 ``` #include #define MAX 0x3f3f3f3f #defi…… 题解列表 2024年11月24日 0 点赞 0 评论 307 浏览 评分:0.0
注意空格(真是服了) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d",&a); for(b=1;b<=a;b++) {…… 题解列表 2024年11月24日 0 点赞 0 评论 158 浏览 评分:0.0