摘要: part1 #include<bits/stdc++.h> #define int long long using namespace std; struct node1{int l,r,value;}; node1 node[2000020]; int a[500010]; void mt(int 阅读全文
posted @ 2024-01-25 10:46 Arthur_Douglas 阅读(24) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> #define int long long #define MAXM 200010 #define MAXN 100010 using namespace std; struct edge { int next,to,v; } e[MAXM]; in 阅读全文
posted @ 2024-01-25 10:45 Arthur_Douglas 阅读(22) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int n,m,ans=1,ans1=0,f[100001]; struct node { int x,y,t; } a[1000010]; int cmp(node x,node y) { if(x.t<y. 阅读全文
posted @ 2024-01-25 10:45 Arthur_Douglas 阅读(46) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int a[110][110],b[110][110],c[110][110],m,n,k; double s; int main() { cin>>n>>m>>k; for(int i=1;i<=n;i++) 阅读全文
posted @ 2024-01-25 10:44 Arthur_Douglas 阅读(18) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define int long long using namespace std; int n,k,m=1e9 + 7,c[1010][1010],a[1010][1010],a1[1010][1010],x[1010][1010]; void fi 阅读全文
posted @ 2024-01-25 10:44 Arthur_Douglas 阅读(20) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define int long long using namespace std; int n,a[1000009]; inline void read(register int &a) { a=0;char c; while((c=getchar( 阅读全文
posted @ 2024-01-25 10:41 Arthur_Douglas 阅读(24) 评论(0) 推荐(0)
摘要: rt 题目 有一道共 n 个选项的不定项选择题,它的答案至少包含一个选项,由于题目与选项的内容晦涩难懂,你打算通过尝试每一种可能的答案来通过这道题。 初始时所有选项都没有被勾选,你可以执行任意次下述操作: 勾选一个当前未被勾选的选项。 取消勾选一个当前已被勾选的选项。 当你勾选中的选项与答案一致时, 阅读全文
posted @ 2024-01-25 10:14 Arthur_Douglas 阅读(82) 评论(0) 推荐(0)
摘要: [COCI2006-2007#2] SJECIŠTA_题解 rt 我们来看一下题目描述 考虑一个有 $n$ 个顶点的凸多边形,且这个多边形没有任何三个(或以上) 的对角线交于一点。 这句话什么意思? 当顶点为$n$的图形为正多边形时便有可能出现一个点是有三条线相交而构成的 如图 如图情况就有三个以上 阅读全文
posted @ 2024-01-25 10:14 Arthur_Douglas 阅读(47) 评论(0) 推荐(0)
摘要: [rt](https://www.luogu.com.cn/problem/P5963) ## part1### 题意简述给你 $n$ 张纸牌,每张纸牌有两个面。将 $n$ 张纸牌按一定顺序填入框中。填入卡牌时,不一定需要按照卡牌和框的顺序进行填写(即可以进行位置的调换)。求在一定顺序下式子最小的结 阅读全文
posted @ 2024-01-25 10:13 Arthur_Douglas 阅读(54) 评论(0) 推荐(0)
摘要: 题目简述 有一块 $n \times m$ 的长方形蛋糕。蛋糕上有两个蜡烛,分别用 $(x_1,y_1)$ 和 $(x_2,y_2)$ 表示。现在有一把刀要把蛋糕切成两半,请问切入的终点和起点在哪? 思路 这道题分类讨论一下就会发现两个点分为两种情况。 第一种情况是竖着切。 第二种情况是横着切。 知 阅读全文
posted @ 2024-01-25 10:13 Arthur_Douglas 阅读(20) 评论(0) 推荐(0)