成绩转换
时间限制:1000 ms | 内存限制:65535 KB
难度:1
描述
请编写一个判断学生成绩等级的程序,该程序的功能是:判断一个成绩(整数),
如果这个数大于等于90则输出A,
大于等于80则输出B,
大于等于70则输出C,
大于等于60则输出D,
小于60则输出E.
输入有多组测试数据,以EOF结束。
每组输入一个成绩u(0
...
分类:
其他好文 时间:
2014-08-30 12:38:29
阅读次数:
250
整除个数
时间限制:1000 ms | 内存限制:65535 KB
难度:1
描述 给你两个整数(均在1-100之间)a和b,将这两个整数之间(包括整数本身)所有能被3整除的数据从小到大输出,两个数之间空格隔开。保证两个整数之间至少有一个数能被3整除。
输入多组数据,以EOF结束。输入两个整数。
输出输出两个整数之间能被3整除的数。
样例输入
1 ...
分类:
其他好文 时间:
2014-08-30 12:38:19
阅读次数:
345
#include #include #include using namespace std;int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF){ if(!a&&!b) break; int ans=1; for(int i=1;i<=b;...
分类:
其他好文 时间:
2014-08-29 15:58:38
阅读次数:
111
在编译VS时候,出现fatal error C1010: unexpected end of file while looking for precompiled head。问题详细解释:致命错误C1010,在寻找预编译指示头文件时,文件未预期结束。就是没有找到预编译指示信息的问文件。顾名思义就是预编译因为缺少了预编译文件而失败。解决方法显然可以取消预编译,或者帮助编译器找到预编译文件。故解法:1...
分类:
其他好文 时间:
2014-08-27 13:05:57
阅读次数:
192
批量修改zencart型号:品牌名称+型号格式将下面代码保存为zc_change_model.php,上传到网站根目录运行即可,操作前先备份数据库Execute($products_query);$id_array = array();while(!$products->EOF){ $id_a...
分类:
其他好文 时间:
2014-08-27 10:49:47
阅读次数:
210
直接枚举就可以了。#include #include #include #include using namespace std;int a,b;vector ans;int main(){ while(scanf("%d%d",&a,&b)!=EOF){ if(a==0&&b==0) break....
分类:
其他好文 时间:
2014-08-27 10:43:07
阅读次数:
230
刚开始,做了水题#include #include #include using namespace std;int main(){ int n; int a31,a32,a41,a42,a121,a122,ans3,ans4,ans12; while(scanf("%d",&n)!=EOF){ ....
分类:
其他好文 时间:
2014-08-27 10:39:27
阅读次数:
216
1 //Accepted 176 KB 47 ms 2 //感谢大神们为我们这群渣渣铺平前进的道路!! 3 //用scanf("%s",s)!=EOF WA到死 4 #include 5 #include 6 #include 7 using namespace ...
分类:
其他好文 时间:
2014-08-24 23:45:43
阅读次数:
269
section 1 不解释~section 21.2.1 a+b coming 1 #include 2 long long z,x,y; 3 int main( ) 4 { 5 while( scanf( "%I64x%I64x",&x,&y ) != EOF ) 6 { 7 ...
分类:
其他好文 时间:
2014-08-24 19:18:32
阅读次数:
197
problem A#includeint a[500]={0};//素数大表 int main(){ int number; int anumber=0; int i=0; int flag=0; while(scanf("%d",&number)!=EOF) { if(anumber==0) .....
分类:
其他好文 时间:
2014-08-24 19:12:03
阅读次数:
162