题解列表

筛选

C++ 究极三目运算符

摘要:解题思路:注意事项:参考代码:#include<cstring>#include<stdio.h>int main(){     int n,t,k,j,i=1;char c[124][124];  ……

时间显示题目

解题思路:注意事项:参考代码:n=int(input())m=(n//3600000)//24n1=n//1000-m*3600*24h=n1//3600m=(n1-h*3600)//60s=n1%60iflen(str(h))==1:h=('0'+str(h))iflen(str(m

时间转换【C++】

摘要:```cpp #include using namespace std; int main(){ int t; cin >> t; int shi = t / 3600; ……

C语言训练-最大数问题

摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){   int a[1000], max,i=0;   scanf("%d", &a[0]);   max = a……

转换字符【c++】

摘要:```cpp #include using namespace std; int main(){ string s1, s2, s3 = "", s4 =""; cin >> ……

浅水一波【c++】

摘要:```cpp #include using namespace std; int main(){ double a, b, x; cin >> a >> b; x = -b……