题解列表
编写题解 1003: [编程入门]密码破译
摘要:解题思路:注意事项:参考代码:#includeint main(){ char a,b,c,d,e; scanf("%c%c%c%c%c",&a,&b,&c,&d,&e); a=a+4; b=b+4;……
编写题解 2749: Hello, World!
摘要:解题思路:很简单注意事项:参考代码:printf("“Hello, World!”\n");……
1866: 三位数反转
摘要:解题思路:注意事项:参考代码:while True: try: a = int(input()) b = a // 100 s = (a - b * 1……
2771: 大象喝水
摘要:解题思路:注意事项:参考代码:import math h,r = map(int,input().strip().split()) v = math.pi * h * r**2 print(mat……
先求sum,找出最大值相减即可解决。
摘要:解题思路:先求总和,然后找出最大值;最后相减即可得到答案。注意事项:注意一下输出格式就好了,然后它是多组的输出。所以需要前面是while(scanf("%d",&a)!=EOF)参考代码://不与最大……
1185: 作业调度方案
摘要:```cpp
#include
using namespace std;
int work[21],num[501],lasttime[21],times[21][21],need[21][21……
2788: 晶晶赴约会
摘要:解题思路:注意事项:参考代码:import sys a = int(input())if a < 1 or a > 7: sys.exit() #退出程序elif a != ……