摘要: 欢迎来到我的博客 我是PHarr,常以PHarr这个ID在各大OJ闲逛 退役OI选手,现役ACM选手 毕业于焦作市解放区实验学校、焦作市外国语中学、焦作市第一中学、沁阳市第一中学 这个博客主要用来写写算法笔记,有时写点人生感悟 联系我 email : pharr.mx@outlook.com 荣誉墙 阅读全文
posted @ 2019-07-27 16:28 PHarr 阅读(356) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/gym/104883 A #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; using vi = vector<int>; 阅读全文
posted @ 2024-04-22 14:50 PHarr 阅读(1) 评论(0) 推荐(0) 编辑
摘要: A - Legendary Players #include<bits/stdc++.h> using namespace std; int main() { map<string, string> h; h["tourist"] = "3858"; h["ksun48"] = "3679"; h[ 阅读全文
posted @ 2024-04-17 11:43 PHarr 阅读(1) 评论(0) 推荐(0) 编辑
摘要: A - Divisible #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; #define int i64 using vi = vector<i64>; using 阅读全文
posted @ 2024-04-13 18:48 PHarr 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 题单链接 A - Frog 1 问题陈述 有\(N\)块石头,编号为\(1, 2, \ldots, N\)。每块\(i\)(\(1 \leq i \leq N\)),石头\(i\)的高度为\(h_i\)。 有一只青蛙,它最初在石块 \(1\) 上。它会重复下面的动作若干次以到达石块\(N\): 如果 阅读全文
posted @ 2024-03-31 22:54 PHarr 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 题单 A - 0的个数 这题算是一个思维题。 我的做法是就是统计每一位的 0 有多少个。 例如\(4032\) 个位的零有\(403\)种 十位的零有\(40*10\)种 百位的零有\(3*100 + 33\)种,即千位去\([1,3]\)个位低两位取\([00,99]\),或者千位取\(4\)低两 阅读全文
posted @ 2024-03-29 14:50 PHarr 阅读(1) 评论(0) 推荐(0) 编辑
摘要: A. Setting up Camp #include <bits/stdc++.h> using namespace std; using i32 = int32_t; void solve() { int a, b, c; cin >> a >> b >> c; int res = a + b 阅读全文
posted @ 2024-03-21 21:43 PHarr 阅读(32) 评论(0) 推荐(0) 编辑
摘要: P2669 [NOIP2015 普及组] 金币 #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; using ldb = long double; #define int 阅读全文
posted @ 2024-03-19 23:11 PHarr 阅读(4) 评论(0) 推荐(0) 编辑
摘要: A - Leftrightarrow #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; using ldb = long double; #define int long 阅读全文
posted @ 2024-03-19 20:15 PHarr 阅读(39) 评论(0) 推荐(0) 编辑
摘要: A. Rudolf and the Ticket #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = long long; using ldb = long double; #define in 阅读全文
posted @ 2024-03-12 21:17 PHarr 阅读(104) 评论(0) 推荐(0) 编辑
摘要: A - Spoiler #include <bits/stdc++.h> using namespace std; using i32 = int32_t; using i64 = int64_t; using ldb = long double; #define int i64 using vi 阅读全文
posted @ 2024-03-10 15:23 PHarr 阅读(24) 评论(0) 推荐(0) 编辑