跳到正文

forget_stupid_me

1543620

online|AFOed?

在洛谷打开
资料、奖项与版本

资料

编号
1543620
抓取

版本

  1. v3当前
  2. v2
  3. v1

3.19已经在洛谷连续打卡了50天3.19已经在洛谷连续打卡了 50 天

5.21已经在洛谷连续打卡了100天5.21已经在洛谷连续打卡了 100 天

7.24已经在洛谷连续打卡150天7.24已经在洛谷连续打卡150天

2025.9.12已经在洛谷连续打卡200天2025.9.12已经在洛谷连续打卡200天

2026.1.4已经在洛谷连续打卡300天2026.1.4已经在洛谷连续打卡300天 纪念ππ




























ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้ค้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้

C++
#include <iostream>
using namespace std;
inline int read() {
	int k = 0, f = 1;char c = getchar();
	while (c < '0' || c > '9') {
		if (c == '-')f = -1;
		c = getchar();
	}
	while (c >= '0' && c <= '9')k = (k << 3) + (k << 1) + (c ^ 48), c = getchar();
	return k * f;}
int main() {
	int n, m;
	n = read();
	return 0;}
C++
#include <iostream>
using namespace std;
int read() {
	int k = 0, f = 1;char c = getchar_unlocked();
	while (c < '0' || c > '9') {if (c == '-')f = -1;c = getchar_unlocked();}
	while (c >= '0' && c <= '9')k = (k << 3) + (k << 1) + (c ^ 48), c = getchar_unlocked();
	return k * f;}
int main() {
	int n, m,ans=0;
	n = read();
    for (int i=0;i<n;i++){
        m=read(),ans+=m;
    }
    printf("%d",ans);

	return 0;
}
C++
void print(int x) {
	if (x < 0)
		putchar_unlocked('-'), x = -x;

	if (x < 10)
		putchar_unlocked(x + '0');
	else
		print(x / 10), putchar_unlocked(x % 10 + '0');

}
C++
inline int read() {
	int x = 0, f = 1;
	char ch = getchar();

	while (ch < '0' || ch > '9') {
		if (ch == '-')
			f = -1;
		ch = getchar();
	}

	while (ch >= '0' && ch <= '9') {
		x = x * 10 + (ch - '0');
		ch = getchar();
	}

	return x * f;
}

inline void print(int x) {
	if (x < 0) {
		putchar('-');
		x = -x;
	}

	char buf[12];
	int len = 0;

	if (x == 0) {
		buf[len++] = '0';
	} else {
		while (x > 0) {
			buf[len++] = x % 10 + '0';
			x /= 10;
		}
	}

	for (int i = len - 1; i >= 0; i--) {

		putchar(buf[i]);
	}
}
C++
#define getchar_unlocked _getchar_nolock
#define putchar_unlocked _putchar_nolock

inline string read_str() {
	string s;
	char c = getchar_unlocked();

	while (c == ' ' || c == '\n' || c == '\r')
		c = getchar_unlocked();

	while (c != ' ' && c != '\n' && c != '\r' && c != EOF) {
		s += c;
		c = getchar_unlocked();
	}

	return s;
}

int read() {
	int k = 0, f = 1;
	char c = getchar_unlocked();

	while (c < '0' || c > '9') {
		if (c == '-')
			f = -1;
		c = getchar_unlocked();
	}

	while (c >= '0' && c <= '9')
		k = (k << 3) + (k << 1) + (c ^ 48), c = getchar_unlocked();
	return k * f;
}

inline void print(int x) {
	if (x < 0)
		putchar_unlocked('-'), x = -x;

	if (x < 10)
		putchar_unlocked(x + '0');
	else
		print(x / 10), putchar_unlocked(x % 10 + '0');
}
C++
#include <iostream>
#include <string>
using namespace std;

// 快速读取字符(Windows环境)
#define getchar_unlocked _getchar_nolock
#define putchar_unlocked _putchar_nolock

// 快速读取整数
inline int read_int() {
    int x = 0, f = 1;
    char c = getchar_unlocked();
    while (c < '0' || c > '9') {
        if (c == '-') f = -1;
        c = getchar_unlocked();
    }
    while (c >= '0' && c <= '9') {
        x = (x << 1) + (x << 3) + (c ^ 48);
        c = getchar_unlocked();
    }
    return x * f;
}

// 快速读取字符串(读取到空格/换行停止)
inline string read_str() {
    string s;
    char c = getchar_unlocked();
    // 跳过前导空白字符
    while (c == ' ' || c == '\n' || c == '\r') c = getchar_unlocked();
    // 读取字符串直到空白字符
    while (c != ' ' && c != '\n' && c != '\r' && c != EOF) {
        s += c;
        c = getchar_unlocked();
    }
    return s;
}

// 快速读取整行(包括空格)
inline string read_line() {
    string s;
    char c = getchar_unlocked();
    while (c != '\n' && c != '\r' && c != EOF) {
        s += c;
        c = getchar_unlocked();
    }
    return s;
}

// 快速输出整数
inline void write_int(int x) {
    if (x < 0) {
        putchar_unlocked('-');
        x = -x;
    }
    if (x > 9) write_int(x / 10);
    putchar_unlocked(x % 10 + '0');
}

// 快速输出字符串
inline void write_str(const string& s) {
    for (char c : s) {
        putchar_unlocked(c);
    }
}

// 快速输出C风格字符串
inline void write_str(const char* s) {
    while (*s) {
        putchar_unlocked(*s);
        s++;
    }
}

// 快速输出整数并换行
inline void writeln_int(int x) {
    write_int(x);
    putchar_unlocked('\n');
}

// 快速输出字符串并换行
inline void writeln_str(const string& s) {
    write_str(s);
    putchar_unlocked('\n');
}

// 快速输出C风格字符串并换行
inline void writeln_str(const char* s) {
    write_str(s);
    putchar_unlocked('\n');
}

筛

C++
const int N = 1e8 + 5;
vector<int> pri;
bool prime[N];
void pre(int n) {
	for (int i = 2; i <= n; ++i) {

		if (!prime[i]) {
			pri.push_back(i);
		}

		for (int pri_j : pri) {
			if (i * pri_j > n)
				break;
			prime[i * pri_j] = 1;
		}
	}
}
C++
#include <iostream>
#include <vector>
using namespace std;
const int N = 1e8 + 5;
vector<int> pri;
int vis[N];
int n, q;

inline int read() {
	int k = 0, f = 1;
	char c = getchar_unlocked();

	while (c < '0' || c > '9') {
		if (c == '-')
			f = -1;
		c = getchar_unlocked();
	}

	while (c >= '0' && c <= '9')
		k = (k << 3) + (k << 1) + (c ^ 48), c = getchar_unlocked();
	return k * f;
}

inline void print(int x) {
	if (x < 0)
		putchar_unlocked('-'), x = -x;

	if (x < 10)
		putchar_unlocked(x + '0');
	else
		print(x * 0x1999999A >> 32), putchar_unlocked(x % 10 + '0');
}

signed main() {
	n = read();

	for (int i = 2; i <= n; i++) {

		if (vis[i] == 0)
			vis[i] = i, pri.push_back(i);

		for (int j : pri) {
			if (i * j > n || j > vis[i])
				break;
			vis[i * j] = j;
		}
	}

	q = read();

	while (q--) {
		n = read();
		print(pri[n - 1]), putchar_unlocked('\n');
	}

	return 0;
}
共 5 篇
  1. 生活·游记

    2026CSP-J/S幽冀

    CSP-J考试中,T1因保存时忘记修改而险些出错,T2采用双指针法解决,T3运用贪心策略,T4因未优化算法导致超时。CSP-S考试则因T1贪心思路错误、T2阅读理解失误而表现不佳,最终仅取得"光荣拿下"的成绩。文中以幽默方式自嘲称"现在真要成打杂的了",并附有相关图片。

  2. 个人记录

    Linux

    以下为常用Linux命令及其用途的简明总结: 以上命令为Linux基础操作核心指令,掌握其使用可有效管理文件系统与进程控制。

  3. 个人记录

    宿舍昆虫记·蚊子篇

    宿舍这个被书本、被褥与青春气息填满的小空间,暗藏着一个喧嚣而隐秘的昆虫王国。蚊子作为其中最令人困扰的居民,虽不似蝉蝶般张扬,却以种类繁多、数量庞大和高超的隐匿技巧,成为宿舍生态中难以驱散的主角。它们在白天潜伏于床板缝隙、衣褶暗处,体色与环境完美融合;待夜幕降临,便如细雨般从四面八方涌现,悄无声息地在人不备时吸血。这种无声无息的侵袭与繁盛,让蚊子成为宿舍生活中最熟悉又最神秘的存在。

    1 赞
  4. 个人记录

    21341235465342445678675598765342

    #include <bits/stdc++.h> using namespace std; long long a[1000005], b; long long ans; int n, m; int main() { cin >> n >> m; for (int i = 1; …