题解列表

筛选

类似1050题可解

摘要:解题思路:注意事项:部分地方还可以更精简参考代码:#include <stdio.h>#include <stdlib.h>typedef struct { char name[10]; char n……

编写题解 2777: 计算2的幂

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long a=1,n;    cin>>n……

题解 2794: 求平均年龄

摘要:解题思路:套个循环……注意事项:别抄我的,抄我的人我诅咒他电脑立刻关机参考代码:#include<bits/stdc++.h>#include<windows.h>using namespace st……

家人们,这个题解超简单!

摘要:解题思路:将金银铜分别输入三次即可,并先输入比了多少天即可。注意事项:不能把a,b,c的输入写在外面。参考代码:#include <bits/stdc++.h>using namespace std;……

冶炼金属--超快解法

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm>using namespace std;const int i……

-X进制(python) 前缀和

摘要:解题思路:  取A和B中每位的最大值+1为其对应位数的进制(最小为2进制),计算完进制后可以利用前缀和思想储存每一位的权重,最后用每一位的权重乘以差值并相加计算结果。注意事项: 只在最后一步取模容易在……