摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
注意:工作量比较大,容易逻辑失误 阅读全文
摘要:
给定一系列正整数,请按要求对数字进行分类,并输出以下 5 个数字: A1 = 能被 5 整除的数字中所有偶数的和; A2 = 将被 5 除后余 1 的数字按给出顺序进行交错求和,即计算 n1−n2+n3−n4⋯; A3 = 被 5 除后余 2 的数字的个数; 阅读全文
摘要:
#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... 阅读全文