Pinely

Pinely Round 3 (Div. 1 + Div. 2)

A 构造题,分两种情况考虑 上下都行,左右选一个 左右都行,上下选一个 void solve() { int n; cin >> n; vector<pair<int, int> > a(n); for(auto &t : a) cin >> t.x >> t.y; sort(a.begin(), ......
Div Pinely Round

Pinely Round 3 (Div. 1 + Div. 2)

A. Distinct Buttons #include<bits/stdc++.h> using namespace std; void solve(){ int n; cin>>n; int a=0,b=0,c=0,d=0; for(int i=1;i<=n;i++){ int x,y; cin ......
Div Pinely Round

CF contest 1909 Pinely Round 3 (Div. 1 + Div. 2) 题解(Vanilla的掉分赛)

[Pinely Round 3 (Div. 1 + Div. 2) - Codeforces](https://codeforces.com/contest/1909) $$ \color{purple}\large\textbf{世界上只有一种真正的英雄主义,} $$ $$ \color{red}... ......
题解 Div contest Vanilla Pinely

Pinely Round 3 (Div. 1 + Div. 2)

A 构造题,分两种情况考虑 上下都行,左右选一个 左右都行,上下选一个 void solve() { int n; cin >> n; vector<pair<int, int> > a(n); for(auto &t : a) cin >> t.x >> t.y; sort(a.begin(), ......
Div Pinely Round

Pinely Round 3 (Div. 1 + Div. 2) A~D

A. Distinct Buttons // #include <bits/stdc++.h> #include <iostream> #include <string> #include <cstring> #include <vector> #include <algorithm> #inclu ......
Div Pinely Round

Pinely Round 3 (Div. 1 + Div. 2)

\(A.Distinct Buttons\) https://codeforces.com/contest/1909/submission/238508091 \(B.Make Almost Equal With Mod\) https://codeforces.com/contest/1909/s ......
Div Pinely Round

Codeforces Pinely Round 2 (D~G)

D - Two-Colored Dominoes by yzt E - Speedrun 题意 给定 \(n,m,k\) 。你需要考虑一个序列 \(t\)。 \(n\) 个要求:\(t_i \equiv h_i\mod k\)。 \(m\) 个要求:\(t_{u_i} \le t_{v_i}\)。 ......
Codeforces Pinely Round

Pinely Round 2 (Div. 1 + Div. 2) (CF1863)

本来开了某场远古 Div 1,然后学了一堆前置知识至今仍然不会 E。换一场写来得及吗? A. Channel 模拟,略。 B. Split Sort Description 给你一个长度为 \(n\) 的排列。 每次操作你可以选择一个数 \(x\),然后类似于快速排序地把小于 \(x\) 和大于等于 ......
Div Pinely Round 1863 CF

Pinely Round 2 (Div. 1 + Div. 2)

Channel 简单分类讨论情况即可 算下最多有多少人在线即可 void solve(){ int n , a , q ; cin >> n >> a >>q ; int add = 0 , minn = 0 , maxx = 0 ; cin >>in +1 ; for(int i = 1 ; i ......
Div Pinely Round

Pinely Round 2 (Div. 1 + Div. 2)

# Preface 唉懒狗了这把比赛的时候突然不想打了跑去看AIR了,所以就没打了,后面补题的时候发现前面题挺合我口味的如果打了大概率能上橙 不过这种第二天早上有早八的时间还是很难打的,苦路西苦路西 # A. Channel 统计当存在某个时刻在线人数为$n$时就是```YES``` 否则把所有的` ......
Div Pinely Round

Pinely Round 2 (Div. 1 + Div. 2)

# Pinely Round 2 (Div. 1 + Div. 2) [比赛链接](https://codeforces.com/contest/1863) 因为第二天早上满课,所以这个比赛没有打,但是补题还是要有的。 ## A题Channel [A题链接](https://codeforces.c ......
Div Pinely Round

Pinely Round 2 (Div. 1 + Div. 2)

# [Pinely Round 2 (Div. 1 + Div. 2) - Codeforces](https://codeforces.com/contest/1863) ## A Channel **题意:总共有$n$个人,最开始有$a$个人在线上,再给你$q$次消息,每次消息$+$表示上线,$ ......
Div Pinely Round

【题解】Pinely Round 2 D,E,F(CF1863)

## D.Two-Colored Dominoes ### 题目描述: 有一个$n\times m$棋盘,被分成若干小格。棋盘上还有一些多米诺骨牌。每张骨牌覆盖相邻的两个小格(即共用一条边的两个小格),没有两张骨牌重叠。 皮特认为这块棋盘太无聊了,需要涂上颜色。他要把多米诺骨牌的格子涂成黑色和白色。 ......
题解 Pinely Round 1863 CF

Pinely Round 2 (Div. 1 + Div. 2)(A-D)

Dashboard - Pinely Round 2 (Div. 1 + Div. 2) - Codeforces A.题意是一共有n个用户,当前有a个用户在线,然后有m个用户上/下线通知,问是否有一时刻所有用户都在线。 简单的模拟,按照+-统计最大的和n的关系,和上线用户数量的关系判断下就行。 当 ......
Div Pinely Round A-D
共14篇  :1/1页 首页上一页1下一页尾页