一次过 简单栈问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ stack<char>q; string s; cin >>…… 题解列表 2023年03月08日 1 点赞 0 评论 644 浏览 评分:0.0
编写题解 1044: [编程入门]三个字符串的排序 ```c#include#include#include#includeintmain(){chara[3][128];//每一行存一串字符串chartemp[128];//交换字符串for(inti=0;i<3;i++){gets(a[i]);}for(inti=0;i<3;i++)//冒泡排序{f 题解列表 2023年03月08日 0 点赞 0 评论 592 浏览 评分:0.0
[编程入门]求和训练-题解 解题思路:利用三次循环进行求解,将a,b,c中的值依次加到Sn上注意事项:int类型可以赋值给float类型,不会损失精度c部分的除法,分子用1.0,可以将k转换为浮点数进行运算,得到的值记为浮点数编程代码:#include#includeintmain(){in 题解列表 2023年03月08日 0 点赞 0 评论 600 浏览 评分:9.9
简单for循环 摘要:解题思路:1、根据对称性,只看前n/2行即可 2、发现奇数行和偶数行的规律 奇数行i/2个*-,结尾i/2个-* 中间全是 题解列表 2023年03月08日 0 点赞 0 评论 545 浏览 评分:0.0
================================================================ 摘要:参考代码:#include <stdio.h>#include <string.h>int function(char str[]){ int h1,m1,s1,h2,m2,s2,t=0; …… 题解列表 2023年03月08日 0 点赞 0 评论 601 浏览 评分:0.0
优质题解 最长上升子序列(贪心+二分) 摘要:线性DP(O(n^2)):[传送门](https://blog.dotcpp.com/a/91960 "动态规划") ------------ ## 贪心+二分(nlogn) ##### *…… 题解列表 2023年03月08日 0 点赞 0 评论 1060 浏览 评分:7.3
c++解题思路 ```cpp#includeusingnamespacestd;structtime{intyear;intmonth;intday;};intn;intmain(){structtimest;cin>>st.year;cin>>st.month;cin>>st.day;if(st.year%400= 题解列表 2023年03月07日 0 点赞 0 评论 580 浏览 评分:9.9
charAt之字符串反转 解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannerinput=newScanner(System.in);Stringstr=input.next();Str 题解列表 2023年03月07日 0 点赞 0 评论 480 浏览 评分:0.0
1058: 二级C语言-求偶数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,s=0; scanf("%d",&n); int a[n]; for(int i=0;i<n;i++…… 题解列表 2023年03月07日 0 点赞 0 评论 398 浏览 评分:0.0