1049: [编程入门]结构体之时间设计 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct today getstruct(void); void output(struct today x); struc…… 题解列表 2024年11月11日 1 点赞 0 评论 498 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:注意将条件考虑完整参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if(0<=a…… 题解列表 2024年11月11日 0 点赞 0 评论 447 浏览 评分:0.0
[STL训练]壮志难酬,字符串数组暴力! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符串数组,用于存储输入的字…… 题解列表 2024年11月11日 0 点赞 0 评论 480 浏览 评分:0.0
可以稍微少打一些代码 摘要:解题思路:注意事项:不要忘记switch语句的花括号参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); switch(a…… 题解列表 2024年11月11日 0 点赞 0 评论 426 浏览 评分:0.0
容易写到的直接解法pow()解释,代码逻辑非常简单 解题思路:直接pow()注意事项:longlongint的最大值:9223372036854775807double最大值:1.8乘以10的308次方2的一百次方等于1267650600228229401496703205376题目输入n范围是n<=100;所以用double类型才不会数据溢出, 题解列表 2024年11月11日 0 点赞 0 评论 635 浏览 评分:0.0
注意细节!!!! 摘要:解题思路:注意事项:一定要主要好细节!!!参考代码:#include<stdio.h>int main(){ float x; scanf("%f",&x); if(0<=x&&x<…… 题解列表 2024年11月11日 0 点赞 0 评论 455 浏览 评分:0.0
[STL训练]寻梦,无STL纯循环解法! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义整数变量a int a; …… 题解列表 2024年11月12日 0 点赞 0 评论 491 浏览 评分:0.0
用c语言解决字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { char ch;int j,z,k,s; j=z=k=s=0; while((ch=getc…… 题解列表 2024年11月12日 1 点赞 0 评论 831 浏览 评分:0.0
蓝桥杯算法提高VIP-数组替换 (*>.<*) 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; void Add (int a[], int m, int b[], int…… 题解列表 2024年11月12日 0 点赞 0 评论 417 浏览 评分:0.0
二级C语言-等差数列-题解(C语言代码) 摘要:解题思路:开头设置sum为-1;取巧注意事项:i<n参考代码:int main(){ int i, n,m=0; int sum = -1; scanf("%d", &n); for (i = 0; …… 题解列表 2024年11月12日 0 点赞 0 评论 521 浏览 评分:0.0