摘要: 2021-10-03 20:00 ATCoder周赛 A 略 B 略 C - Select Mul Problem Statement You are given an integer N. Consider permuting the digits in N and separate them i 阅读全文
posted @ 2021-10-03 09:56 ICE_棋 阅读(127) 评论(0) 推荐(0)
摘要: 题目:here 解法: 二分法: class Solution { public: vector<int> twoSum(vector<int>& numbers, int target) { for (int i = 0; i < numbers.size(); ++i) { int low = 阅读全文
posted @ 2021-10-02 21:54 ICE_棋 阅读(43) 评论(0) 推荐(0)
摘要: 题目描述 出题是一件痛苦的事情! 相同的题目看多了也会有审美疲劳,于是我舍弃了大家所熟悉的 A+B Problem,改用 A-B 了哈哈! 好吧,题目是这样的:给出一串数以及一个数字 CC,要求计算出所有 A - B = CA−B=C 的数对的个数(不同位置的数字一样的数对算不同的数对)。 输入格式 阅读全文
posted @ 2021-09-28 21:19 ICE_棋 阅读(229) 评论(0) 推荐(0)
摘要: 2021-09-26 20:00 ATCoder周赛 A - Find Multiple Problem Statement Print a number between A and B (inclusive) that is a multiple of C. If there is no such 阅读全文
posted @ 2021-09-27 10:11 ICE_棋 阅读(144) 评论(0) 推荐(0)