C/C++
—Luz—
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
折半查找原理(C++)
#include<stdio.h>#include<iostream>using namespace std;int find(int a[],int num){ int low=0; int high=8; int mid=(low+high)/2; while(a[mid]!=num) { if(high<=low) return -...原创 2018-06-07 19:08:32 · 506 阅读 · 0 评论 -
HDU-2094谁是冠军
谁是冠军题目我的思路是把输入的名字 输掉的都把对应的 flag 改成 1 还有重的名字也改为1 方便最后的得出结论#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<iostream>#include<math.h>using namespace std;char name[10...原创 2018-08-07 17:25:31 · 260 阅读 · 0 评论
分享