- “柱は天まで届く柱で、弦は切れたらすぐ替える弦だ”
- “鬼に全てを奪われた者は鬼殺隊に入り、人に全てを奪われた者は鬼となる”
- 2025-07-03 注册洛谷
- 2026-02-11 通过题数达100题
- 2026-08-07 通过题数达200题
- 2026-09-25 等级分上涨至210
虽然我只拿了0分【LGR-302-Div.2】洛谷 9 月月赛 I & 月都异变调查 - 2026-10-18 等级分上涨至304
虽然我还是只拿0分【LGR-304-Div.2】洛谷 10 月月赛 II & CZOI Round 8 - 2026-10-19 通过题数达300题
oc
- Ivy Violet Black(艾薇·维奥莱特·布莱克)
- Ina Vilo Malfoy(伊娜·薇洛·马尔福)
- 鱗滝 錆月(鳞泷 锖月)
斯莱特林·Slytherin
“我们来自泥潭,渴望权力,充满野心,强大而冷静,优雅自持,从不后悔,我们是斯莱特林!”
斯莱特林从不以高傲为耻——斯莱特林行为守则
- 保持优雅。
- 拒绝任何形式的侮辱。
- 不要轻易做出承诺。
- 谋定而后动。
- 做事力求完美。
- 避免情绪表面化,学会微笑
- 适应环境,改变环境。
- 为斯莱特林荣耀而荣耀,为斯莱特林骄傲而骄傲。
- 审时度势,及时修正计划,拒绝混乱与偏差。
- 荣誉重于一切。
圈子
- 猫武士
- 主推:叶池,松鸦羽
- 副推:冬青叶,炭心,雷星
- cp:✔松半,松棍,灰猎✖虎鸽
- 雷:日神
- 哈利·波特
- 主推:小天狼星·布莱克
- 副推:德拉科·马尔福,卢娜·洛夫古德,赫敏·格兰杰,韦斯莱双子(乔治·韦斯莱、弗雷德·韦斯莱)
- cp:✔德哈,GGAD✖德赫,哈伏
- 雷:乌姆里奇,贝拉特里克斯·莱斯特兰奇
- 鬼灭之刃
- 主推:锖兔
- 副推:富冈义勇,真菰
- cp:✔锖义,蛇恋,有无,日黑✖义忍,义炭
- 雷:暂无
- 葬送的芙莉莲
- 主推:芙莉莲
- 副推:菲伦
- cp:✔辛芙,修菲✖暂无
- 雷:暂无
让AI给我写了个计算距离我推生日的代码
注释被华丽哥附体了
#include <bits/stdc++.h>
struct Fave {
std::string name;
int month;
int day;
};
// 华丽の辅助函数:计算两个日期之间的天数差
int getDaysDiff(int y1, int m1, int d1, int y2, int m2, int d2) {
std::tm t1 = {};
t1.tm_year = y1 - 1900;
t1.tm_mon = m1 - 1;
t1.tm_mday = d1;
t1.tm_hour = 12;
t1.tm_isdst = -1;
std::tm t2 = {};
t2.tm_year = y2 - 1900;
t2.tm_mon = m2 - 1;
t2.tm_mday = d2;
t2.tm_hour = 12;
t2.tm_isdst = -1;
std::time_t time1 = std::mktime(&t1);
std::time_t time2 = std::mktime(&t2);
if (time1 == -1 || time2 == -1) return -1;
double seconds = std::difftime(time2, time1);
return static_cast<int>(std::floor(seconds / 86400.0 + 0.5));
}
int main() {
// 1. 华丽の获取当前华丽の时间
std::time_t now = std::time(nullptr);
std::tm* local_time = std::localtime(&now);
int current_year = local_time->tm_year + 1900;
int current_month = local_time->tm_mon + 1;
int current_day = local_time->tm_mday;
// 在这里配置华丽の生日
// 格式: {"名字", 月份, 日期}
// 可自行修改为你华丽の推们
std::vector<Fave> my_faves = {
//我华丽の主推们
{"Sirius Black", 11, 3},
{"錆兎", 8, 15},
//我华丽の副推们
{"Draco Malfoy", 6, 5},
{"Luna Lovegood", 2, 13},
{"Hermione Granger", 9, 19},
{"Fred Weasley and George Weasley", 4, 1},
{"冨岡 義勇", 2, 8},
//我华丽のoc们
{"Ivy Black", 11, 19},
{"Ina Malfoy", 6, 5},
{"錆月", 8, 15}
//有一些华丽の推们不知道生日哇。。。
};
std::cout << "今天是 " << current_year << "-" << (current_month < 10 ? "0" : "") << current_month << "-" << (current_day < 10 ? "0" : "") << current_day << "\n";
std::vector<std::pair<std::string, int>> upcoming_birthdays;
bool has_birthday_today = false;
// 2. 华丽の遍历判断
for (const auto& fave : my_faves) {
if (current_month == fave.month && current_day == fave.day) {
std::cout << "祝 " << fave.name << " 生日快乐!Happy Birthday!\n";
has_birthday_today = true;
}
else {
// 华丽の计算下一个生日年份
int next_birthday_year = current_year;
if (current_month > fave.month || (current_month == fave.month && current_day > fave.day)) {
next_birthday_year++;
}
int days_left = getDaysDiff(current_year, current_month, current_day, next_birthday_year, fave.month, fave.day);
if (days_left >= 0) upcoming_birthdays.emplace_back(fave.name, days_left);
}
}
// 3. 华丽の排序:按剩余天数从小到大
std::sort(upcoming_birthdays.begin(), upcoming_birthdays.end(), [](const std::pair<std::string, int>& a, const std::pair<std::string, int>& b) {
return a.second < b.second;
});
// 4. 输出排序后华丽の列表
if (!upcoming_birthdays.empty()) {
//华丽の分界线
std::cout << "----------------------------------------\n";
for (const auto& item : upcoming_birthdays) {
std::cout << "距离 " << item.first << " 的生日还有 " << item.second << " 天\n";
}
}
return 0;
// 华丽の完结撒花
// 感谢华丽のAI写下以上华丽の代码
// 华丽の注释被华丽の华丽哥附体了
}下面是AI写の一个计算喜欢了crush多少天的代码
#include <iostream>
#include <ctime>
#include <cmath>
#include <iomanip>
long long calculateDaysDiff(int y1, int m1, int d1, int y2, int m2, int d2) {
struct tm t1 = {};
struct tm t2 = {};
t1.tm_year = y1 - 1900;
t1.tm_mon = m1 - 1;
t1.tm_mday = d1;
t1.tm_hour = 0;
t1.tm_min = 0;
t1.tm_sec = 0;
t1.tm_isdst = -1;
t2.tm_year = y2 - 1900;
t2.tm_mon = m2 - 1;
t2.tm_mday = d2;
t2.tm_hour = 0;
t2.tm_min = 0;
t2.tm_sec = 0;
t2.tm_isdst = -1;
std::time_t timestamp1 = std::mktime(&t1);
std::time_t timestamp2 = std::mktime(&t2);
double seconds_diff = std::difftime(timestamp2, timestamp1);
long long days_diff = static_cast<long long>(std::round(seconds_diff / 86400.0));
return days_diff;
}
int main() {
// 1. 设置起始日期
int start_year = 2026;
int start_month = 9;
int start_day = 11;
// 2. 获取当前日期
std::time_t now = std::time(nullptr);
struct tm* current_tm = std::localtime(&now);
int current_year = current_tm->tm_year + 1900;
int current_month = current_tm->tm_mon + 1;
int current_day = current_tm->tm_mday;
// 3. 计算差值
long long days = calculateDaysDiff(start_year, start_month, start_day, current_year, current_month, current_day);
std::cout << "已经喜欢ta " << days << " 天了" << std::endl;
return 0;//完结撒花
}
