#include<stdio.h> #include<algorithm> #include<math.h> using namespace std; int canzhao[100000],canzhao2[100000],laike[10005]; //分别存储谁是谁的配偶,标记这个来客的配偶已经来了,来的客人 bool cmp(int a,int b){ return a<b; } int main(){ int N,M;scanf("%d&quo…
有些题做得可能比较傻,有好方法,或者有错误还请告诉我,多多指教=.= 思路比较好的题目我都有讲的很详细. 剩下三道题有待优化,等改好了再上传. 标题 题目链接 解题链接 1001 害死人不偿命的(3n+1)猜想 (15) Do it 提示 1002 写出这个数 (20) Do it 提示 1003 我要通过!(20) Do it 提示 1004 成绩排名 (20) Do it 提示 1005 继续(3n+1)猜想 (25) Do it 提示 1006 换个格式输出整数 (15) Do it…