摘要: 今天是本蒟蒻去附中培训第二天 教练说了一种很重要的思想:标记思想 简单来说就是先初始化数组,然后根据题意来将数组进行标记 我们可以通过两道简单的题目来体会一下 1.NOIP2006 明明的随机数 简单来说这道题就是去重然后排序输出 代码如下 #include<bits/stdc++.h>using 阅读全文
posted @ 2018-07-16 23:05 Nr386 阅读(270) 评论(2) 推荐(0)
摘要: 这是基本排序的一种方法 我觉得这是最简单的排序法了 #include<bits/stdc++.h>using namespace std;int main(){ int n,a[10086]; cin>>n; for(int i=0;i<n;i++)//输入 { cin>>a[i]; } for(i 阅读全文
posted @ 2018-06-17 18:29 Nr386 阅读(9932) 评论(2) 推荐(0)
摘要: 这道题可以说是NOIP以来最简单的题目了 个人认为这道题只是考你会不会编程2333 直接上代码 #include<iostream>#include<cstdio>using namespace std;int main(){ double homework,test,big_test,zong; 阅读全文
posted @ 2018-06-17 18:24 Nr386 阅读(188) 评论(1) 推荐(0)