fast contest ryser xmas

AtCoder Beginner Contest 295

A - Probably English #include <bits/stdc++.h> using namespace std; int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch > '9') && ch ......
Beginner AtCoder Contest 295

nowcoder contest/911/F

https://ac.nowcoder.com/acm/contest/911/F 值域上维护右括号的个数,遇到左括号就查询前面有几个右括号 #include <iostream> #include <algorithm> #include <queue> using namespace std ; ......
nowcoder contest 911

AtCoder Beginner Contest 145

AtCoder Beginner Contest 145 https://atcoder.jp/contests/abc145 D - Knight 乍一看以为是dp,但是数据范围不允许。 仔细一看发现,两种操作的次数是固定的,可以枚举出来每种操作分别进行了多少次,如 $(1,2)$ 走了 $a$ ......
Beginner AtCoder Contest 145

AtCoder Beginner Contest 148

AtCoder Beginner Contest 148 https://atcoder.jp/contests/abc148 这场比较简单 D - Brick Break 二分 or LIS #include <bits/stdc++.h> #define ll long long using n ......
Beginner AtCoder Contest 148

AtCoder Beginner Contest 147

AtCoder Beginner Contest 147 https://atcoder.jp/contests/abc147 C - HonestOrUnkind2 推理题,爆搜。好那好难,一直不知道怎么下手 #include <bits/stdc++.h> using namespace std ......
Beginner AtCoder Contest 147

Codeforces Contest 1798

这场比较经典但是不太困难(都经典了说明没啥思维题)。 A. Showstopper 枚举一下交不交换,然后前面的状态就固定了,最后判断是否合法。 B. Three Sevens 从后往前把不行的都划掉。 C. Candy Store 考虑一段 $c_l=c_{l+1}=\dots c_{r}$,必然 ......
Codeforces Contest 1798

apt-get下载太慢了,用apt-fast加速度

apt-get下载太慢了,用apt-fast加速度 apt-fast 是一款替代 apt-get/apt 提升下载速度的软件,通过增加线程使下载软件速度加快。在下载软件包时,会大大缩短apt下载时间。使用过程与apt(apt-get)一样,只需要将apt(apt-get)改成apt-fast即可 s ......
加速度 apt apt-fast apt-get fast

AtCoder Beginner Contest 295 A-D题解

比赛地址 A.Probably English 1 void solve() 2 { 3 int n;cin>>n; 4 set<string>st; 5 st.insert("and"); 6 st.insert("not"); 7 st.insert("that"); 8 st.insert(" ......
题解 Beginner AtCoder Contest 295

AtCoder Beginner Contest 146

AtCoder Beginner Contest 146 https://atcoder.jp/contests/abc146 C - Buy an Integer 这个O(1)推式子的做法不知道为什么WA:https://atcoder.jp/contests/abc146/submissions ......
Beginner AtCoder Contest 146

AtCoder Beginner Contest 248 F(连通性状压dp)

F 连通性状压dp 思路 看了dls的讲解后才明白一点点。 状态$dp[i][j][k]$表示到表示到i列,删除了j条边,点i和n-1+i是否联通,对于下一列点, 若当前i和n-1+i连通,则多出来的三条边连任意两条,使得下一列点i+1和n+i连通,否则下一列点不连通。 若当前点i和n-1+i不连通 ......
性状 Beginner AtCoder Contest 248

AtCoder Educational DP Contest

1.A 没什么难度,直接算就可以了。 点击查看代码 #include<bits/stdc++.h> #define int long long #define Yes printf("Yes\n") #define No printf("No\n") #define YES printf("YES\ ......
Educational AtCoder Contest DP

AtCoder Grand Contest 019 F Yes or No

洛谷传送门 AtCoder 传送门 首先容易发现最优策略是回答剩余多的选项。设 $n$ 为剩余 Yes 的数量,$m$ 为剩余 No 的数量,考虑将 $(n,m)$ 放到平面上,若 $n > m$ 则回答 Yes 并向左走,$n < m$ 则回答 No 并向下走,$n=m$ 则随意。 如果按照这样的 ......
AtCoder Contest Grand 019 Yes

AtCoder Grand Contest 008 F Black Radius

洛谷传送门 AtCoder 传送门 神题!!!!111 考虑如何不重不漏地计数。先考虑全为 1 的情况,令 $f(u,d)$ 为与 $u$ 的距离 $\le d$ 的点集。 首先单独算全集,那么对于不是全集的集合就会有一些比较好的性质。 考虑若有若干个 $f(u,d)$ 同构,那 只在 $d$ 最小 ......
AtCoder Contest Radius Grand Black

实现 Fast.api.open 默认全屏打开

实现 Fast.api.open 默认全屏打开 发布于 2021-01-19 10:36:08 在后台的 JS 中调用 Fast.api.open() 方法时,如果需要使弹出层默认全屏打开,有三种实现方式 1. 设置属性 area 的值为 ['100%', '100%'](该方式破坏了Layer的全 ......
Fast open api

SMU Spring 2023 Trial Contest Round 1(6/8)

SMU Spring 2023 Trial Contest Round 1(6/8) A. Prepend and Append Prepend and Append 只需考虑给定字符串两端是否符合10或01即可,双指针从两端模拟即可。 #include <iostream>using namesp ......
Contest Spring Round Trial 2023

SMU Spring 2023 Trial Contest Round 1

A. Prepend and Append 如果两段字符不同就可以删掉,如果不能删了就是最初的字符串 #include <bits/stdc++.h> using namespace std; void solve() { int n; string s; cin >> n >> s; int l ......
Contest Spring Round Trial 2023

AtCoder Beginner Contest 246

AtCoder Beginner Contest 246 D 题意 求一个$x\geq n$ 使得$x=a^3+a^2b+ab^2+b^3$且$n\leq10^{18}$ 思路 变形 $x=(a+b)(a^2+b^2)$ ,那么a、b的范围在1e6 从大到小枚举每个a,那么每个符合情况的b的最小值一 ......
Beginner AtCoder Contest 246

SMU Spring 2023 Trial Contest Round 1

A. Prepend and Append 用ans记录n的值,然后双指针从前后判断是否一个为0一个为1,是的话则ans-2,否则退出循环即可. #include<bits/stdc++.h> using namespace std; int t,n; char a[2010]; int main( ......
Contest Spring Round Trial 2023

The 2023 ICPC Asia Hong Kong Regional Programming Contest

The 2023 ICPC Asia Hong Kong Regional Programming Contest A. TreeScript 给你一个根,让你构造一棵树,每个节点被创造的时候必须知道它的父节点的地址和需要寄存器存放当前节点的地址,现在给定你每个节点之间的关系,并且现在根节点已经被创 ......
Programming Regional Contest 2023 ICPC

AtCoder Beginner Contest 141

AtCoder Beginner Contest 141 D - Powerful Discount Tickets 贪心 + 堆 #include <bits/stdc++.h> #define ll long long using namespace std; const int N = 1e5 ......
Beginner AtCoder Contest 141

AtCoder Beginner Contest 294

题解报告 基本的一些理解和问题都在注释中 A:Filter //水题 #include <cstdio> #include <algorithm> #include <cstring> #include <iostream> using namespace std; int main(void) { ......
Beginner AtCoder Contest 294

[rejected] master -> master (non-fast-forward)错误

本地库和远程库没有同步导致无法提交合并,冲突导致无法push git pull origin master --allow-unrelated-histories //从远端仓库拉去不相关历史 git push origin master//推送到远端master分支 ......

比 JSON.stringify 快两倍的fast-json-stringify

前言 相信大家对JSON.stringify并不陌生,通常在很多场景下都会用到这个API,最常见的就是HTTP请求中的数据传输, 因为HTTP 协议是一个文本协议,传输的格式都是字符串,但我们在代码中常常操作的是 JSON 格式的数据,所以我们需要在返回响应数据前将 JSON 数据序列化为字符串。但 ......
stringify fast-json-stringify JSON fast json
共893篇  :30/30页 首页上一页30下一页尾页