摘要: The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of e 阅读全文
posted @ 2019-07-31 05:32 SteveYu 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "ins 阅读全文
posted @ 2019-07-31 04:51 SteveYu 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 注意:工作量比较大,容易逻辑失误 阅读全文
posted @ 2019-07-31 04:08 SteveYu 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 给定一系列正整数,请按要求对数字进行分类,并输出以下 5 个数字: A​1​​ = 能被 5 整除的数字中所有偶数的和; A​2​​ = 将被 5 除后余 1 的数字按给出顺序进行交错求和,即计算 n​1​​−n​2​​+n​3​​−n​4​​⋯; A​3​​ = 被 5 除后余 2 的数字的个数; 阅读全文
posted @ 2019-07-31 03:43 SteveYu 阅读(184) 评论(0) 推荐(0) 编辑
摘要: #include #define Posi 10000//消除初始绝对负数,进行运算强制取正 using namespace std; int main() { int a,b; cin>>a>>b; int arr[a]; for(int i=0;i>arr[i]; } for(int i=0;i<a-1;i++){ cout... 阅读全文
posted @ 2019-07-31 03:11 SteveYu 阅读(121) 评论(0) 推荐(0) 编辑