一 Eternity 一
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在文章《题解:P13145 [GCJ 2018 #2] Falling Balls》发表评论:
%%%
在讨论《90WA求条》回复:
```cpp #include using namespace std; const int INF = 2e9; int a[100001],f[100001],n; int main() { cin>>n; for(int i=1;i >a[i],f[i]=INF; f[1]=0; for(int i=2;i 0;…
在讨论《90WA求条》回复:
Hack: Input: ``` 85 692 693 694 695 696 697 698 699 700 701 702 703 704 705 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907…
贪心好题。 ### 思路 此题较小的数据和较大的时间容易让人误以为是其他算法,但是其实就是贪心。 - 考虑每个接受点(底部)管辖的球,是一个区间,按照从小到大,即 $1$ 号管辖 $1$ 至 $a_1$ 号球,$2$ 号管辖 $a_1+1$ 至 $a_1+a_2$ 号球,以此类推。 - 构造图即可。 下证贪心是正确的:…
在讨论《80pts,Wa on #9,10》回复:
已A,**此贴结**
```cpp //code by Dreamer_002 #include unsigned long long t,a,b,tb,pos; int main(){ scanf("%llu",&t); while(t--){ scanf("%llu%llu",&a,&b); while(!(b&1) && b!=0)b…
在讨论《只过subtask1二分+dp求调》回复:
已A,**此贴结**
```cpp //code by Dreamer_002 #include #include using namespace std; const int N = 2e5 + 2e3; const int M = 5005; struct red{ int l,r,w; }; struct blue{ int l,r;…
在讨论《为什么输出的形式不大一样,但是一个0分一个100分?》回复:
``` hack: 8 1 1 1 2 2 3 3 4 ```
```cpp //code by Dreamer_002 //20250629 #include #include const int goal[4][4]={{0,0,0,0},{0,1,2,3},{0,8,0,4},{0,7,6,5}}; const int dx[4]={0,1,-1,0},dy[4]={1,0,…
# 回顾 ## 序言 来也匆匆,去也匆匆。。。。。 从开始打CSP(我是一个菜菜菜菜的蒟蒻),我就开始不断刷题,打怪升级,水平也不断提升(尽管还是很菜) ~~现在是2024年,之前的内容我就简单带过。。。~~ ## 2022CSP 那时我真的是太作s了,以为只允许用Linux系统,于是就在Linux上比了CSP,或许是…
在讨论《题目感觉有问题》回复:
@[use123](/user/1346296) 大佬注意,能右转的情况下,必须右转(不能用三次左转代替),在左、右、前进都不行的情况下才能调头
在讨论《求优化90分TLE#10》回复:
发错了 ```cpp #include #include const long long N = 3030; const long long M = 30300; const long long mod = 1e9; struct BigInt{ long long a[N]; long long len; void…
```cpp #include #include const long long N = 1200; const long long M = 10100; const long long mod = 1e9; struct BigInt{ long long a[N]; long long len; void inpu…
在讨论《为什么错了》回复:
@[justinljt](/user/715637) 统计共有几组,不能以最大组号来判断!
在讨论《为什么错了》回复:
@[justinljt](/user/715637) 几分?
在讨论《爆0求助!!!(样例能过》回复:
@[thhuanghaizhe](/user/1260366) 大佬在么?
在讨论《爆0求助!!!(样例能过》回复:
@[thhuanghaizhe](/user/1260366) 大佬 ``` f[i][j]表示第i步时位于第j小组的最小耗时 ``` ``` f[i][0]=f[i][m] 断环为线 ```
在讨论《爆0求助!!!(样例能过》回复:
@[thhuanghaizhe](/user/1260366) 大佬,我的 ```cpp #include const int N = 2005; const int INF = 1000000000; long long f[N][N]; int a[N][N]; int n,m; long long minn(lo…
在讨论《爆0求助!!!(样例能过》回复:
@[thhuanghaizhe](/user/1260366) 大佬,您的dp[]代表什么?
```cpp #include #include #include #include #include using namespace std; const int N = 1000005;//10 6 map m; struct node{ int pre; int nex; int mov; }; node q[N…
在讨论《求hack(0分)》回复:
发现一个问题 ```cpp for(int i=1;i<=n-1;i++){ scanf("%d",&t[i]); t[i]+=t[i-1]; } ``` 改为 ```cpp for(int i=1;i<=n-1;i++){ scanf("%d",&t[i]); t[i]*=5; t[i]+=t[i-1]; } ```
```cpp #include const int N = 105; struct data{ int fish; int lake; }; data heap[N]; int n,T,f[N],d[N],t[N],ans,maxx,len; void put(int fis,int lak); void big();…
在讨论《求助》回复:
我太弱了
在讨论《求助》回复:
你的 ``` auto ``` 貌似废了?
在讨论《求助》回复:
```cpp for(auto x:m){ res+=m[x.first-c]*m[x.first]; } ``` 你的这段代码有点奇怪,看不懂
在讨论《求助》回复:
```cpp #include #include #include using namespace std; const int N = 10000005;///10000005 long long a[N]; int n,c; unordered_map m; int main() { scanf("%d%d",&n…
在讨论《求助》回复:
[https://blog.csdn.net/qq_45890970/article/details/123955261](https://blog.csdn.net/qq_45890970/article/details/123955261)