题解列表
信息学奥赛一本通T1322-拦截导弹问题(c++ 贪心解法)
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<cstring>
#include<cmath>
#include<algorithm>
#include……
帮我看看为什么提示格式错误,答案都对
摘要:#include<stdio.h>int main(){ int a,b,c,d,e; int y,r,s,i,w; int A,B,C,D,E; scanf("%d %d %d %d %d",&a……
1223: 敲七游戏
摘要:解题思路:一行解,融入许多函数,运行很爽。注意事项:参考代码:print(len(set(list(map(lambda x : x+1 if (x % 7 == 0 or '7' i……
1062: 二级C语言-公约公倍
基本思路:最大公约数一定比n、m中的最小的数据小或是一样。最小公倍数一定是n*m或者是更小的数。```c#includeintmain(){intn,m;//输入的两个整数。inti;intmin;//用来表示n、m中最小的数。inty,b;//最大公约数y,最小公倍数b。