摘要: 题目描述 你有 1020 个格子,它们从 0 开始编号,初始时所有格子都还未染色,现在你按如下规则对它们染色: 1. 编号是 p1 倍数的格子(包括 0号格子,下同)染成红色。 2. 编号是 p2 倍数的格子染成蓝色。 3. 编号既是 p1 倍数又是 p2 倍数的格子,你可以选择染成红色或者蓝色。 阅读全文
posted @ 2020-04-27 23:05 liuchanglc 阅读(206) 评论(0) 推荐(1) 编辑
摘要: 题目描述 For their physical fitness program, N (2 ≤ N ≤ 1,000,000) cows have decided to run a relay race using the T (2 ≤ T ≤ 100) cow trails throughout t 阅读全文
posted @ 2020-04-27 22:16 liuchanglc 阅读(115) 评论(0) 推荐(1) 编辑
摘要: 题目描述 The only difference between the easy and the hard versions is the maximum value of k. You are given an infinite sequence of form "112123123412345 阅读全文
posted @ 2020-04-27 22:00 liuchanglc 阅读(296) 评论(0) 推荐(1) 编辑