旧物有情 # 1124: C语言训练-大、小写问题 这道题要考虑一个细节 ```#includeusingnamespacestd;intmain(){strings;//注意,这道题88分的同学都是因为没有考虑到读入数据可能会带有空格getline(cin,s);for(inti=0;i='A'&&s[i] 题解列表 2024年10月17日 4 点赞 0 评论 536 浏览 评分:0.0
旧物有情 # 陶陶摘苹果 阅读理解,读懂了就很简单! ```#includeusingnamespacestd;constintN=15;inta[N];intmain(){//读取10个苹果到达地面的高度for(inti=1;i>a[i];//陶陶手伸直能碰到的最高高度inthigh;cin>>high;//板凳高30high+=30;//只要high 题解列表 2024年10月17日 2 点赞 0 评论 740 浏览 评分:9.9
旧物有情 # 不高兴的津津 模拟题如何写的又快又准?答案是多练 ```#includeusingnamespacestd;intmain(){//认为最开始是开心的boolhappy=true;//记录学习时间intsum=0;//记录最大时间intmax=0;//记录星期几intday=0;for(inti=1;i>x1>>x2;sum=x1+x2;//当天学习 题解列表 2024年10月17日 0 点赞 0 评论 497 浏览 评分:9.9
旧物有情 # 回文判断 两种方法 [TOC]#方法一:reverse翻转```#include#include#include#include#includeusingnamespacestd;intn,jin,yin,tong;intmain(){strings;cin>>s;stringtemp=s;reverse(s.begin 题解列表 2024年10月17日 0 点赞 0 评论 568 浏览 评分:0.0
旧物有情 # 字符串正反连接 超简单思路 ```#include#include#includeusingnamespacestd;intn,jin,yin,tong;intmain(){charstr[55];scanf("%s",str);intlen=strlen(str);for(inti=0;i=0;i--)printf("%c", 题解列表 2024年10月17日 0 点赞 0 评论 491 浏览 评分:0.0
旧物有情 # 奥运奖牌计数 一看就懂 摘要:``` #include #include using namespace std; int n,jin,yin,tong; int main(){ cin >> n; …… 题解列表 2024年10月17日 0 点赞 0 评论 387 浏览 评分:0.0
[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct student { int num; // 学号 char name[10]; //…… 题解列表 2024年10月17日 1 点赞 0 评论 594 浏览 评分:8.0
容易理解如何解决Sn求和问题 摘要:解题思路:从第二项开始后一项为前一项的10倍后加上前一项注意事项:需要包含#include<math.h>函数参考代码:#include<stdio.h>#include<math.h>int mai…… 题解列表 2024年10月16日 0 点赞 0 评论 494 浏览 评分:9.9
判断整除(回溯) ```javaimportjava.util.Scanner;publicclassMain{staticintn,k,plan=0;staticint[]nums;staticvoiddp(intp){//如果已经遍历到最后一个数if(p==n){intz=0;//计算当前符号组合下所有数的和for 题解列表 2024年10月16日 0 点赞 0 评论 443 浏览 评分:9.9
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码#include<iostream>#include<string>using namespace std;int main(){ string s; cin>…… 题解列表 2024年10月16日 1 点赞 0 评论 580 浏览 评分:0.0