题解列表

筛选

题解 2879: 错误探测

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    int b[100][100];    int c=0;    int d=0;   ……

无聊的星期六

摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) print(&#39;%.2f&#39; % (sum(i for i in range(1,a+1))+……

无聊的星期六

摘要:解题思路:注意事项:参考代码:s=int(input()) &#39;&#39;&#39;print(&#39;%.2f&#39;%sum(i+ for i in range(s)))&#39;&#……

java求一元二次方程

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……

蓝桥杯2014年第五届真题-兰顿蚂蚁(python)

摘要:解题思路:把蚂蚁的行动、动作当作对象,创建关于mayi()的的对象,并对蚂蚁行动关于黑格、白格等转向设置函数point(self),在主函数中对行走后原位置黑白格取反注意事项:此代码中,每个格子的参数……

简单易懂方法

摘要:解题思路:用while True实现无限循环,观察发现,输入n,则第一行首尾为“*”,中间为n个空格,这样的行共有n行,总共有n+1行,且第n+1行为n+2个“*”注意事项:注意try和except的……

STL vector实现快速排序

摘要:解题思路:递归+双指针注意事项: vector索引必须用int, 不能用size_t参考代码:#include<iostream>#include<vector>using namespace std……

python--study||O.o

摘要:参考代码:#time是之前的飞机降落所需的时间 def dfs(step, time):     if step == n:         return True     for i in ……

python--study||O.o

摘要:参考代码:n = int(input()) arr = list(map(str, input().split())) #dp[i]是以i为数字结尾的最长接龙子序列的长度 dp = [0] * ……