摘要:        
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
阅读(225)
评论(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
阅读(238)
评论(0)
推荐(0)
        
            
        
        
摘要:        
注意:工作量比较大,容易逻辑失误    阅读全文
posted @ 2019-07-31 04:08
SteveYu
阅读(183)
评论(0)
推荐(0)
        
            
        
        
摘要:        
给定一系列正整数,请按要求对数字进行分类,并输出以下 5 个数字: A1 = 能被 5 整除的数字中所有偶数的和; A2 = 将被 5 除后余 1 的数字按给出顺序进行交错求和,即计算 n1−n2+n3−n4⋯; A3 = 被 5 除后余 2 的数字的个数;    阅读全文
posted @ 2019-07-31 03:43
SteveYu
阅读(200)
评论(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
阅读(131)
评论(0)
推荐(0)
        

浙公网安备 33010602011771号