Loading

上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 85 下一页
摘要: A 找出来1到2020之间数位为2的数量。 不用特别去考虑,直接循环即可 B 求分子分母最小因子为1的。 跑两个for循环,写一个gcd就可以了 答案:2481215 int main() { // freopen("in.txt","r",stdin); ios::sync_with_stdio( 阅读全文
posted @ 2020-10-18 23:18 RioTian 阅读(1496) 评论(2) 推荐(1)
摘要: 预览图: HMTL代码部分 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <t 阅读全文
posted @ 2020-10-18 22:46 RioTian 阅读(1852) 评论(1) 推荐(1)
摘要: 引言: 当我们在文章某段代码中写太多内容时,进行适当的内容折叠是非常有必要的。 请尝试点击一下Code👇 Show Code int found(int a[],int left,int right,int x) { while (left > 1; if (a[mid] 点开上面的Code就出现 阅读全文
posted @ 2020-10-16 20:22 RioTian 阅读(5701) 评论(7) 推荐(3)
摘要: 1176A. Divide it! 题目链接:http://codeforces.com/problemset/problem/1176/A 题意: 给定一个数字 \(n\) 和三种操作 如果 n 能被 2 整除则 \(n /= 2\) 如果 n 能被 3 整除 \(n = \frac{2n}3\) 阅读全文
posted @ 2020-10-15 22:19 RioTian 阅读(188) 评论(0) 推荐(1)
摘要: 从知乎有一个很有趣的问题:房间里有100个人,每人都有100元钱,如果每过一分钟,每个人都要拿出一元钱随机给另一个人,最后这100个人的财富分布是怎样的? 这个问题,可以看成一个小型实验,模拟的是规则绝对公平时,社会财富的流向。财富随机流动的话,贫富差距是否就会消失呢? 城市数据团用程序模拟了这个过 阅读全文
posted @ 2020-10-15 07:48 RioTian 阅读(152) 评论(0) 推荐(2)
摘要: 【CodeForces】C. Drazil and Factorial 题目链接:Click Here 题意:找一个最大的数,使得每个位的阶乘的乘积与给定数相同。 首先將 2~9 轉成這樣(0,1為空): 2 → 2 (2! = 2不能以其他方式組成) 3 → 3 (3! = 6不能以其他方式組成) 阅读全文
posted @ 2020-10-14 20:59 RioTian 阅读(147) 评论(0) 推荐(1)
摘要: 题目地址:here 首先,这题需要处理字符串,我们用 trie分析 先忽略删除操作 拿样例 1 举个例子: 首先把最开始的字符串插入到树中 然后薇尔莉特打了一个字符 A 此时可以插入或者是不插入,就会有这样的情况: 不插入时,之前插入进去的字符均可以作为字符串的结尾 假设之前插入了 x个字母,每一个 阅读全文
posted @ 2020-10-14 19:41 RioTian 阅读(280) 评论(1) 推荐(1)
摘要: 三路快排是快速排序算法的升级版,用来处理有大量重复数据的数组。 主要思想是选取一个key,小于key的丢到左边,大于key的丢到右边,递归实现即可。 具体操作过程参考:https://blog.csdn.net/k_koris/article/details/80585979 C++代码: // A 阅读全文
posted @ 2020-10-14 19:07 RioTian 阅读(254) 评论(2) 推荐(1)
摘要: 正式更换编译器为: VS Code 如何配置环境:click here 代码格式化工具:clang-format A. Joysticks 题目连接: http://www.codeforces.com/contest/651/problem/A Description Friends are go 阅读全文
posted @ 2020-10-14 17:22 RioTian 阅读(184) 评论(0) 推荐(1)
摘要: Keyboard Shortcuts 自訂鍵盤快捷鍵 開啟設定面板 :點擊左下角管理圖示〉選擇「鍵盤快速鍵」。 編輯器開啟後,滑鼠移至變更項目上,點擊出現的變更圖示(橘框處),輸入要變更的快捷鍵組合。 ▎基本快捷鍵 / *代码字串* / Alt +↑/↓ 移动整行 Ctrl + F2 同时拾取同名的 阅读全文
posted @ 2020-10-14 13:36 RioTian 阅读(1411) 评论(0) 推荐(1)
摘要: IDE: Visual Studio Code Language: C/C++ 格式化工具: clang-format 安装 vscode安装扩展C/C++,扩展程序将自动安装clang-format: 配置首选项 打开首选项 快捷键: Command + , 搜索 clang-format进行配置 阅读全文
posted @ 2020-10-13 23:46 RioTian 阅读(4610) 评论(5) 推荐(1)
摘要: ### 准备 - Windows 【这个相信大家都有 笑: )】 - [VS Code](https://code.visualstudio.com/) - [MinGW-w64](http://mingw-w64.org/) - [C/C++](https://marketplace.visual 阅读全文
posted @ 2020-10-13 23:21 RioTian 阅读(2119) 评论(7) 推荐(2)
摘要: 因为火锅导致错过的上分机会😂,赛后发现人均AC5题 1430A. Number of Apartments 暴力搜索 #include<bits/stdc++.h> using namespace std; typedef long long ll; ll n; void solve() { ci 阅读全文
posted @ 2020-10-12 21:14 RioTian 阅读(210) 评论(0) 推荐(1)
摘要: 2019CCPC江西省赛(重现赛) 第一次组队(和队内dalao:hzf)参加比赛,这次比赛使用的是我的笔电,但因为我来的比较晚,没有提前磨合:比如我的64键位键盘导致hzf突然上手不习惯。 Solved A B C D E F G H I J K 4 / 11 Ø O Ø O Ø O - - - 阅读全文
posted @ 2020-10-12 20:54 RioTian 阅读(415) 评论(0) 推荐(1)
摘要: Codeforces Global Round 11 1427A. Avoiding Zero 题目链接:click here 待补 1427B. Chess Cheater 题目链接:click here Example input 8 5 2 WLWLL 6 5 LLLWWL 7 1 LWLWL 阅读全文
posted @ 2020-10-11 10:34 RioTian 阅读(229) 评论(0) 推荐(1)
上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 85 下一页