跳到正文

Obsent_foo

1287899

All those moments will be lost in time, like tears in the rain

资料、奖项与版本

资料

编号
1287899
抓取

奖项

2025 CSP-J
二等奖

版本

  1. v6当前
  2. v5
  3. v4
  4. v3
更早的 2 个版本
  1. v2
  2. v1

2026/9/1:奖项认证不会再有了,下一场就是CCC比赛了(加拿大CA)

C++
OI:
// 骗分过样例,暴力出奇迹。
// 爆搜挂着机,打表得省一。
// 长考出狭隘,重复出奇迹。
// AK靠运气,总司令不可以。
// 数学先推导,推完写打表。
// 贪心拿高分,卡常赢全场。
// DP搞不定,记忆化搜索。
// 图论写不出,强行最短路。
// 数据太随机,退火大模拟。
// 实在都不行,输出-1和0。

数学:
数学先推导,推完枚举找。
不行建个系,坐标解万题。
角度实在难,辅助线乱添。
长度算不出,平方先展开。
根式化不动,强行平方反复弄。
式子太复杂,暴力代入看一看。
填空想不出,特值又不难。
结论不确定,画图猜一番。
选择不会做,排除剩两项。
实在都不会,感觉最重要。
数列不会推,先猜通项。
函数不会做,先画图像。
几何不会证,坐标硬上。
概率算不出,列个表再讲。
实在都不行,三短一长选最长。

my bilibili

Obsent一笑轩

Obsent一笑轩小号

Other platforms

dmoj

codeforces

atcoder

github

巡·纸飞机

话说: | 听说:

你若不高抛 | 标枪太苍茫

谁又可以 | 如一道白光

替你飞翔 | 无法品尝

每一步 | 318

到底折多长 | 不能用领航

只看书上 | 强度太钢

如何变强 | 容易俯仰

我曾用: | 我玩遍:

长机短机 | 距离滞空

月半空王 | 特技冲浪

没一样很强 | 发现兴致转悲伤

我的设计布局 | 冲浪太难

锁头小翼 | 机子太狂

没一件像个样 | 到头都一样

虽然前途漫漫 | 可是终不退坑

仍遮不住我刷榜的锋芒 | 却始终坚强直坠也无妨

你看啊 | 你听啊

是自研 | 是PB

在落降! | 在叫嚷!

只要你: | 只要你:

目光是瞄准国榜 | 目光是瞄准国榜

刷败了又有何妨 | 20也不能阻挡

在20之内流浪 | 上国榜之前感伤

也不负这场硬闯 | 现不负这场勇往

你未必滞空很强 | 你不仅滞空很强

但距离也许勉勉强强 | 距离也勉勉强强

愿多年之后回想 | 而多年之后回想

仍不赴当年纸飞机梦想…… | 已不赴当年纸飞机梦想……

——By Obsent一笑轩


大事记:

2024/07/24 首A,入luogu

2025/3/7 AC100祭

2025/5/24 第一蓝P4289(现在是蓝绿)

2025/11/8 CSP-J 240 废了,不会用Linux调了1h

2026/7/15 第一紫P15543

2026/8/11 第一发最优解

2026/8/20 第一黑P3148(Accidently AI后重拍)

2026/9/1:转战加拿大

2026/10/14 第一题解

2026/10/21 过猪国杀

2026/10/25 金名

2026/11/15 红名

My tmplate:

C++
//by Obsent一笑轩
//Ctrl+Alt+G->P查看题目/F打卡/S提交
// #include <bits/extc++.h>
#pragma GCC optimize("O3,inline,unroll-loops,finite-math-only,no-trapping-math,fgcse,ftree-pre,fpeephole2,fcaller-saves,fcrossjumping,fthread-jumps,fschedule-insns,fschedule-insns2,ftree-tail-merge,fstrict-aliasing,fcse-follow-jumps,fcse-skip-blocks,findirect-inlining,fhoist-adjacent-loads,finline-small-functions,ftree-switch-conversion,foptimize-sibling-calls,fexpensive-optimizations,delete-null-pointer-checks")
#include <iostream>
#include <vector>
#include <map>
#include <random>
#include <set>
#include <queue>
#include <stack>
#include <deque>
#include <bitset>
#include <string>
#include <algorithm>
#include <math.h>
#include <cstring>
#include <bit>
// #include <list>
// #include <assert.h>
// #include <iomanip>
// #include <unordered_map>
// #include <unordered_set>
// #include <utility>
// #include <functional>
// #include <numeric>
#define endl "\n"
#define rep(i,a,b) for(int i((int)(a));i<=(int)(b);++i)
#define repr(i,a,b) for(int i((int)(a));i>=(int)(b);--i)
#define lowbit(x) (x&(-x))
#define fir first
#define sec second
#define pb push_back
#define mp make_pair
#define _R register
#define _I inline
#define gcd(a,b) __gcd(a,b)
#define lcm(a,b) ((a)/__gcd((a),(b))*(b))
#define log2(x) (__bit_width((unsigned)(x))-1)
#define elif else if
#ifdef Obsent
	// #include <windows.h>
	#define debugl cerr<<"File:"<<__FILE__<<" Line:"<<__LINE__<<'\n';
    #define my_getchar getchar
    #define my_putchar putchar
#else
	#define debugl do{}while(0)
	#define Sleep(x) do{}while(0)
    #define my_getchar getchar_unlocked
    #define my_putchar putchar_unlocked
#endif
using namespace std;
typedef long long ll;
typedef map<int,int> mii;
typedef map<ll,ll> mll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
// typedef __int128 i128;
namespace Fast_IO{
    _I void write(ll x,bool mode){
		x<0?x=-x,my_putchar('-'):0;
		unsigned short f[30],top(0);
		do f[++top]=x%10,x/=10; while(x);
		while(top)my_putchar(f[top--]|48);
		mode?my_putchar('\n'):my_putchar(' ');
	}
	_I void writestr(string s,bool mode){
		rep(i,0,s.size()-1)my_putchar(s[i]);
		mode?my_putchar('\n'):my_putchar(' ');
	}
	_I ll read(){
		ll x(0);bool f(true);char ch(my_getchar());
		while(!isdigit(ch)){
			if(ch=='-')f=false;
			ch=my_getchar();
		}
		while(isdigit(ch))x=x*10+ch-'0',ch=my_getchar();
		return f?x:-x;
	}
	_I string readstr(){
		string s;char ch(my_getchar());
		while(ch!=EOF&&isspace(ch))ch=my_getchar();
		while(ch!=EOF&&!isspace(ch))s+=ch,ch=my_getchar();
		return s;
	}
}
using namespace Fast_IO;
constexpr int Inf=0x3f3f3f3f;
constexpr ll Inf_ll=(1LL<<62);

// variate declare here

signed main(void){
	// srand((unsigned)time(NULL));
	#ifdef Obsent
		if(freopen("tmp.in","r",stdin)!=NULL) cerr<<"Input File Open Successfully\n";
		else cerr<<"Input File Cannot Open\n";
		// if(freopen("tmp.out","w",stdout)!=NULL)cerr<<"Output File Open Successfully\n";
		// else cerr<<"Output File Cannot Open\n";
	#endif

	// cin.tie(nullptr),cout.tie(nullptr)->ios::sync_with_stdio(false);

	//code here

	return 0;
} 
共 3 篇
  1. 题解

    题解:P17693 砕月

    本文题解针对洛谷题目P17693,提出了一种基于动态规划的高效解法。核心思路是通过分析数组a的合法性条件,将问题转化为动态规划模型:当填入第i个元素时,需满足当前位置i≥x_{a_i}且前缀最大值≥y_{a_i}。设计dp[i][j]表示填入i个元素且最大值为j的方案数,利用前缀和优化和桶思想降低复杂度。具体实现中,通过维护辅助数组c统计满足条件的数,并采用滚动数组减少空间占用。最终算法时间复杂度为O(n²),空间复杂度O(n),可高效处理n≤5000的规模,成功通过题目要求。

    4 赞
  2. 生活·游记

    XWFLS期末考试邮寄

    这是一篇南京XWFLS初中生期末考试的幽默记录,作者以OI学习者视角吐槽考试压力。文中通过"day -inf"到"day inf+3"的时间线,展现了备考期间的焦虑(如美术成绩垫底、政治考试看错题险些爆零)、考试当天的意外(如英语作文与模拟题重复、地理考砸但侥幸得A)、以及最终以总分270/300(差两分进前80)获得"五自标兵""优干"等荣誉称号的全过程。特别提到该校虽为南京顶尖初中但不重视OI,作者在备战中考的同时还要兼顾各类学科考核,最终以年级前120名的成绩完成这场"学术马拉松"。

  3. 题解

    题解:P13678 [GCPC 2023] Mischievous Math

    该问题要求构造三个互不相同的整数a、b、c(范围1-100且不等于给定的d),使得它们通过四则运算和括号无法组合出d。 思路:根据d的大小选择不同的a、b、c组合。当d较大时,选择较小的数(如1、2、3),因为它们的运算结果上限为9;当d较小时,选择较大的数(如100、80、70),以降低组合出d的可能性。 分界点:当d≥9时输出1 2 3,因此时它们的运算最大值为9,无法达到d;当d<9时输出100 80 70,避免因数值差距过大导致组合困难。 代码逻辑:根据输入的d值,若d≥10则输出"1 2 3",否则输出"100 80 70",确保所选组合无法通过运算得到d。