随笔分类 -  CSP

摘要:1 #include <iostream> 2 #include <vector> 3 #include <math.h> 4 5 int main(){ 6 int x{},sum{}; 7 std::cin>>x; 8 std::vector<int> n(x,0); 9 10 for(int 阅读全文
posted @ 2022-11-16 15:46 任由天明 阅读(131) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 5 int main() { 6 int x{},sum{}; 7 std::cin >> x; 8 std::vector<int> n(x, 0); 9 for 阅读全文
posted @ 2022-11-16 11:01 任由天明 阅读(35) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 5 int main() { 6 int x{},some{}; 7 std::cin >> x; 8 std::vector<std::vector<int>> n 阅读全文
posted @ 2022-11-15 16:20 任由天明 阅读(82) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 #include <algorithm> 4 #include <array> 5 6 int main() { 7 std::array<int, 9> ISBN{}; 8 char c{}; 9 int lenth{},sigl{-1}; 10 1 阅读全文
posted @ 2022-11-15 12:46 任由天明 阅读(324) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 #include <algorithm> 3 #include <vector> 4 5 int main() { 6 int x{},y{},lenth{}; 7 std::cin >> x; 8 std::vector<std::vector<in 阅读全文
posted @ 2022-11-15 10:59 任由天明 阅读(80) 评论(0) 推荐(0)
摘要:链接 1 #include <iostream> 2 #include <vector> 3 4 int main() { 5 int x{}, m{}; 6 std::cin >> x >> m; 7 std::vector<std::vector<int>> nc(x+1,std::vector 阅读全文
posted @ 2022-11-14 12:35 任由天明 阅读(124) 评论(0) 推荐(0)
摘要:1 #include <iostream> 2 #include <vector> 3 int main() { 4 int x{}, y{}; 5 std::cin >> x >> y;//读入第一行 6 std::vector<std::vector<int>> k(y,std::vector< 阅读全文
posted @ 2022-11-13 10:45 任由天明 阅读(154) 评论(0) 推荐(0)