摘要: 水电费水电费水电费 阅读全文
posted @ 2018-08-18 17:54 路明天 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 发斯蒂芬斯蒂芬斯蒂芬 阅读全文
posted @ 2018-08-18 17:53 路明天 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 第三个地方是广东省 阅读全文
posted @ 2018-08-18 12:16 路明天 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 是地方撒地方 阅读全文
posted @ 2018-08-18 12:16 路明天 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 恢复规划法规和地方 阅读全文
posted @ 2018-08-18 12:15 路明天 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 实在不觉得递归等方式有什么简单的地方,没错我就是用的最笨的方法模拟。 和我一样的小白看代码应该很容易理解。 include include include using namespace std; int N; int main(){ int m,n;scanf("%d",&N); int temp 阅读全文
posted @ 2018-08-18 12:14 路明天 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 要会使用math函数, 还要注意到用四舍五入的方法判断是否应该输出 include include int main() { double r1, p1, r2, p2, A, B; scanf("%lf %lf %lf %lf",&r1,&p1,&r2,&p2); r1 =r2;p1+=p2; A 阅读全文
posted @ 2018-08-18 12:14 路明天 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 实在不想写这个题,好费劲,头疼,这是粘的柳婼的代码 ,等我有空再自己用c写吧 include include using namespace std; int main() { vector v; for(int i = 0; i row; int j = 0, k = 0; while(j n; 阅读全文
posted @ 2018-08-18 12:13 路明天 阅读(777) 评论(1) 推荐(0) 编辑
摘要: 一开始就想用sscanf和sprintf去实现,但是没有设计好思路,卡住了。 看了网上别人的博客,都是用的很复杂的逻辑分别判断,一言不合就七八十航代码 今天早上看了柳神的代码,发现跟自己的思路一样,开心的不得鸟。 但是,但是,但是。 算法很简单,一个小地方却坑了我很久,注意1的时候number没有s 阅读全文
posted @ 2018-08-18 12:11 路明天 阅读(463) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include using namespace std; int main(){ double e;int N,D; scanf("%d %lf %d",&N,&e,&D); int kong=0,may=0,zong=0; int tianshu; while(scanf("%d",&tianshu)!=EO... 阅读全文
posted @ 2018-08-18 12:11 路明天 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 很简单的two points问题 注意:K是行数 include include include include include using namespace std; struct people{ char name[10]; int height; }arr[10005]; bool cmp( 阅读全文
posted @ 2018-08-18 12:10 路明天 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 就看着代码量一直到没什么好说的了 include int main(){ int N,K;scanf("%d",&N); int sum=0; for(int i=0;i 阅读全文
posted @ 2018-08-18 07:34 路明天 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 简单题,简单字符串处理加简单数学进制转换 include include include int main(){ char str[100100]; scanf("%[^\n]",str); int len=strlen(str); int sum=0; for(int i=0;i 阅读全文
posted @ 2018-08-18 07:32 路明天 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 这道题的逻辑怪复杂的,写起来蛮费时间的 结构体中要储存的信息多,整体不难,信息量大,容易把人搞蒙 include include include using namespace std; struct ti{ int tihao; int fen; int xuan; int Tnum; bool 阅读全文
posted @ 2018-08-18 07:31 路明天 阅读(757) 评论(0) 推荐(1) 编辑
摘要: 这个题也是个逻辑问题 此题用我这种方式很复杂,应该用map 用两个分别储存成绩,已领过奖的人, include include int arr[10010]={0}; bool ischeck[10010]; bool isprime(int a){ if(a==0||a==1) return fa 阅读全文
posted @ 2018-08-18 07:28 路明天 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 逻辑问题,对我来说还是挺有难度的,一开始想不通 我输入数据并以数据为下标,数据出现次数为内容存储 然后从后遍历计算所有大于当前下标的元素出现的次数 最后遍历一遍确定是否为爱丁顿数,如果大于当前已经找到的就替换,最后输出最大值 include include using namespace std; 阅读全文
posted @ 2018-08-18 07:25 路明天 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 简单逻辑题, include include using namespace std; int main(){ int N,M;//输入在第一行给出两个不超过 100 的正整数 N 和 M,分别是学生人数和判断题数量 scanf("%d%d",&N,&M); int score[M],ans[M]; 阅读全文
posted @ 2018-08-18 07:21 路明天 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 如果了解分数运算,本题很简单。我有对分数知识进行总结 "分数四则运算" include include using namespace std; int gongyue(int a,int b){ return !b?a:gongyue(b,a%b); } struct fenshu{ int fe 阅读全文
posted @ 2018-08-18 07:19 路明天 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 水题,没有难点 阅读全文
posted @ 2018-08-18 07:16 路明天 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 以前写的,逻辑不好,过后再改 include include include using namespace std; bool cmp(int a,int b){ return a 阅读全文
posted @ 2018-08-18 07:14 路明天 阅读(253) 评论(0) 推荐(0) 编辑