题解列表

筛选

蓝桥杯基础练习VIP-时间转换

摘要:解题思路:    除法 取余注意事项:参考代码:import java.util.Scanner;public class Main {     public static void main(Str……

带参数宏定义练习

摘要:解题思路:    异或注意事项:    无参考代码:public static void main(String[] args) {     Scanner scanner = new Scanne……

不要想太多,这样简单

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){    int s;    s=a%b;    while(s!=0)    {       ……

接水问题 python

解题思路:先把学生里面前m个导入到数组中,然后通过k计算接水量,s即总人数减去除了开头接水人数的剩余人数,最后输出接水列表最大值注意事项:示例过大很容易超时所以直接设置列表长度为10000避免超出列表范围参考代码:n,m=map(int,input().split())stu=list(map(int

注意:两次相加

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n;    scanf("%d",&n);    int sn=0,a=2,aa=0;    fo……

1286: 最大配对

importjava.util.*;publicclass最大配对{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);intn=sc.nextInt();int[]arrb=newint[n];inttemp=0;in