博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CodeChef November Lunchtime 2013 Lucy and the Number Game(简单题)
阅读量:7064 次
发布时间:2019-06-28

本文共 477 字,大约阅读时间需要 1 分钟。

n个人报数找到只有一个报过且最小的数。

代码如下:

1 #include 
2 #include
3 #include
4 #include
5 #include
6 #include
7 #define INF 0x7fffffff 8 #define LEN 1000100 9 using namespace std;10 11 struct P{12 char name[50];13 int num;14 }man[LEN];15 16 bool cmp(struct P a, struct P b){17 return a.num
View Code

 

转载于:https://www.cnblogs.com/shu-xiaohao/p/3440108.html

你可能感兴趣的文章
REST Security with JWT using Java and Spring Security
查看>>
oracle迁移mysql数据库注意(转)
查看>>
SynchronousQueue、LinkedBlockingQueue、ArrayBlockingQueue性能测试(转)
查看>>
wamp的安装使用(转)
查看>>
[android] 切换界面的通用处理
查看>>
C#用正则表达式一键Unicode转UTF8(解决LitJson中文问题)
查看>>
linux shell通配符、元字符、转义符
查看>>
sql中某条件不为空,可能有的小祖宗会喷了,这还用总结?emmm,我渣,我觉得有一点意思对于第二种(土味)...
查看>>
小程序使用smart模板的方法
查看>>
HTPC家庭娱乐和XBOX未来发展畅想<另:创业工作机会>
查看>>
MUI下拉刷新
查看>>
leetcode------Search a 2D Matrix
查看>>
数字水印技术的研究现状与发展趋势
查看>>
C#操纵Excel,此工作薄包含嵌入对象,Office 2007的设定方法
查看>>
【转载】ANSYS 动力分析 (9) - 瞬态动力分析 (1)
查看>>
我的第一篇博客 Javascript继承
查看>>
PHP观察者模式的简单实现
查看>>
Trivial File Transfer Protocol (TFTP)
查看>>
剑指offer有关链表的面试题
查看>>
C++版 - LeetCode 144. Binary Tree Preorder Traversal (二叉树先根序遍历,非递归)
查看>>