[编程入门]有规律的数列求和-题解(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2020年12月14日 0 点赞 0 评论 458 浏览 评分:0.0
蓝桥杯P1003 -题解(C++代码) 摘要:##### 思路:1.如何处理输入? 2.如何比较字符串? 3.如何存储字符串。 ##### 收获:1.加深了stringstream的应用。 ```cpp #include #inclu…… 题解列表 2020年12月14日 0 点赞 0 评论 540 浏览 评分:0.0
[编程入门]结构体之时间设计-题解(C++代码) 摘要:#include<iostream> using namespace std; struct time { int year , month , date; }a; int jug…… 题解列表 2020年12月14日 0 点赞 0 评论 509 浏览 评分:0.0
A+B for Input-Output Practice (VI)-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i, x, m, sum = 0, n; while(~scanf("%d", &n)){ …… 题解列表 2020年12月14日 0 点赞 0 评论 195 浏览 评分:0.0
A+B for Input-Output Practice (V)-题解(C语言代码) 摘要:解题思路:注意事项:注意sum每次循环清零参考代码:#include<stdio.h>int main(){ int i, x, m, sum = 0, n; scanf("%d", &n…… 题解列表 2020年12月14日 0 点赞 0 评论 532 浏览 评分:7.3
A+B for Input-Output Practice (IV)-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, sum = 0, x, i; while(1){ scanf("%d",…… 题解列表 2020年12月14日 0 点赞 0 评论 219 浏览 评分:0.0
A+B for Input-Output Practice (III)-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b; while(1){ scanf("%d %d", &a, &b);…… 题解列表 2020年12月14日 0 点赞 0 评论 403 浏览 评分:0.0
A+B for Input-Output Practice (IV)-题解(C语言代码) 摘要:解题思路:#include<stdio.h>int main(){ int n,m; while(~scanf("%d",&n)&&n!=0) { int sum=0; while(n--) {…… 题解列表 2020年12月14日 0 点赞 0 评论 171 浏览 评分:0.0
优质题解 [编程入门]求和训练-题解(C语言代码) 摘要: 解题思路: ⑴.题目要求的是求以下三数的和; 1~a之和 1~b的平方和 1~c的倒数和 ⑵.可以先分别算出:1~a的和;1~b的平方和;1~c的倒数和 注意事项: …… 题解列表 2020年12月13日 0 点赞 18 评论 4886 浏览 评分:9.4
最长不含重复字符的子字符串-题解(C++尺取法) 摘要:#include<bits/stdc++.h> using namespace std; signed main() { string s; cin>>s; int res=-1; …… 题解列表 2020年12月13日 0 点赞 0 评论 431 浏览 评分:9.9