489

CF992 Codeforces Round 489 (Div. 2)

CF992A Nastya and an Array 答案为非零数的个数。 #include<iostream> #include<cstdio> #include<map> using namespace std; const int N=100005; int n; int a[N]; map< ......
Codeforces Round 992 489 Div

【每日一题】Problem 489C. Given Length and Sum of Digits...

[原题](https://codeforces.com/problemset/problem/489/C) #### 解决思路 结果值越大,要求满足后续数位能成立的情况下,当前数位的值尽可能大;取最小结果同理 ##### 误区 1. 注意边界 - 一般情况下,数字开头不能为 0,除非数字长度为 ** ......
Problem Digits Length Given 489

【每日一题】Problem 489B. BerSU Ball

[原题](https://codeforces.com/problemset/problem/489/B) #### 解决思路 排序+双指针 ```C++ #include int main() { int n; std::cin >> n; std::vector a(n + 1, 0); for ......
Problem BerSU Ball 489
共3篇  :1/1页 首页上一页1下一页尾页