上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 39 下一页
摘要: # A - Chord ```cpp #include using namespace std; int32_t main() { ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr); string s; cin >> s 阅读全文
posted @ 2023-07-31 19:40 PHarr 阅读(54) 评论(0) 推荐(0)
摘要: # A. Two Rival Students 让两个人向两侧走就好了。 ```cpp #include using namespace std; void solve(){ int n , x , a , b; cin >> n >> x >> a >> b; if( a > b ) swap( 阅读全文
posted @ 2023-07-28 15:52 PHarr 阅读(16) 评论(0) 推荐(0)
摘要: # 数字三角形 ```cpp #include using namespace std; #define int long long int32_t main() { ios::sync_with_stdio(false), cin.tie(nullptr); int n; while( cin > 阅读全文
posted @ 2023-07-28 09:36 PHarr 阅读(18) 评论(0) 推荐(0)
摘要: # A. Escalator Conversations ```cpp #include using namespace std; #define int long long void solve(){ int n , m , k ,H; cin >> n >> m >> k >> H; vecto 阅读全文
posted @ 2023-07-26 19:50 PHarr 阅读(93) 评论(0) 推荐(0)
摘要: # A-雨 ```cpp #include using namespace std; #define int long long void solve() { vector a(4); int x; for( auto &i : a ) cin >> i; cin >> x; for( auto i 阅读全文
posted @ 2023-07-26 19:49 PHarr 阅读(17) 评论(0) 推荐(0)
摘要: # 多项式输出 小细节比较多 ```cpp #include using namespace std; #define int long long int32_t main() { ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nul 阅读全文
posted @ 2023-07-25 18:26 PHarr 阅读(32) 评论(0) 推荐(0)
摘要: # A - First ABC ```cpp #include using namespace std; #define int long long int32_t main() { ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nu 阅读全文
posted @ 2023-07-25 13:15 PHarr 阅读(41) 评论(0) 推荐(0)
摘要: # A. There Are Two Types Of Burgers ```cpp #include using namespace std; #define int long long void solve() { int b, p, f, h, c; cin >> b >> p >> f>> 阅读全文
posted @ 2023-07-24 18:43 PHarr 阅读(20) 评论(0) 推荐(0)
摘要: # A. To My Critics ```cpp #include using namespace std; #define int long long void solve(){ vector a(3); for( auto & i : a ) cin >> i; sort( a.begin() 阅读全文
posted @ 2023-07-22 09:30 PHarr 阅读(120) 评论(0) 推荐(0)
摘要: # 循环同构 如果字符串$S$选择一个位置$i$满足 $$ S[i...n]+S[1...i-1] = T $$ 则称$S$与$T$循环同构 # 最小表示 字符串$S$的最小表示为所有与$S$循环同构中字典序最小的 # 最小表示法 对于一对字符串$A,B$,他们在原串中的起始位置分别为$i,j$,且 阅读全文
posted @ 2023-07-19 10:06 PHarr 阅读(32) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 39 下一页