ICode9

精准搜索请尝试: 精确搜索
  • YACS2022年7月丙组2022-07-18 01:05:10

    T1: 水仙花指数 模拟 代码实现 n = int(input()) ans = 0 while n != 0: ans += (n%10)**3 n //= 10 print(ans) T2:因数之和 遍历 \(i = 1, \cdots , N\),把 \(\lfloor\frac{N}{i}\rfloor \times i\) 累加进答案 代码实现 n = int(input()) ans = 0 for i in range(1,

  • YACS2022年6月月赛甲组2022-06-25 00:01:34

    T1:矩形覆盖 用 std::set 或线段树来维护扫描线即可 代码实现 #include <bits/stdc++.h> #define rep(i, n) for (int i = 1; i <= (n); ++i) using std::cin; using std::cout; using std::multiset; using ll = long long; struct Node { ll x, h; int type; bool

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有