动态规划-选数异或 动态规划求两数异或等于x的区间左端最大值```cpp#include#includeusingnamespacestd;typedeflonglongll;constintN=1e5+5;lln,m,x;intdp[N];//a^b=xa,b中早出现的数字位置mapmp;intmax(inta, 题解列表 2022年05月13日 0 点赞 3 评论 2336 浏览 评分:6.7
1036 带参数宏定义练习 参考代码:#凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数a,b=map(int,input().split())print(b,a) 题解列表 2022年05月17日 2 点赞 0 评论 805 浏览 评分:6.7
小南解题--纸张尺寸--58ms 摘要:zgn946 13:48 2022/6/12省赛时写的--小南'''for i in range(9): d=[max(b,c)//2,min(b,c)] d.s…… 题解列表 2022年06月12日 0 点赞 0 评论 1037 浏览 评分:6.7
信息学奥赛一本通T1256-献给阿尔吉侬的花束(BFS) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;class Node {public: int x, y, step; …… 题解列表 2022年08月01日 0 点赞 0 评论 1005 浏览 评分:6.7
数组逆序重放 解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassP2836{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);inta=scanner.nextInt(); 题解列表 2022年10月12日 0 点赞 0 评论 1191 浏览 评分:6.7
编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:n=int(input()) if n%2!=0: print('odd') else: print('even'…… 题解列表 2022年10月18日 1 点赞 0 评论 1793 浏览 评分:6.7
计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; int sum=0; scanf("%d %d",&n,&m); in…… 题解列表 2022年11月17日 0 点赞 0 评论 783 浏览 评分:6.7
选择法)最大数位置 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[1001]; int i; int j; int n; int max…… 题解列表 2022年11月21日 0 点赞 0 评论 683 浏览 评分:6.7
幂的末尾C语言实现 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int a,b,i; scanf("%d %d",&a,&b); int c=1; for(i=1;i<=b;…… 题解列表 2022年12月16日 0 点赞 0 评论 829 浏览 评分:6.7
2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:l = [] n = int(input()) a,b = map(int,input().split()) x = b / a for i in range(0…… 题解列表 2023年02月08日 0 点赞 0 评论 727 浏览 评分:6.7