2012年8月13日
摘要:
http://acm.hdu.edu.cn/game/entry/problem/show.php?chapterid=1§ionid=2&problemid=5题目不难,比较麻烦,注意getchar()吸收回车,getline()接收字符串等的使用,空格的ascii是32View Code #include"iostream"#include"string"#include"stdio.h"using namespace std;int main(){ int ii,i,j,t,len; string str 阅读全文
posted @ 2012-08-13 19:50
剑雪封喉
阅读(221)
评论(0)
推荐(0)
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1202Problem Description每学期的期末,大家都会忙于计算自己的平均成绩,这个成绩对于评奖学金是直接有关的。国外大学都是计算GPA(grade point average) 又称GPR(grade point ratio),即成绩点数与学分的加权平均值来代表一个学生的成绩的。那么如何来计算GPA呢?一般大学采用之计分法A90 - 100 4 点B80 - 89 3 点C70 - 79 2 点D60 - 69 1 点E0 - 59 0 点例如:某位学生修习三门课,其课目、学分及成绩分别为:英文: 阅读全文
posted @ 2012-08-13 16:47
剑雪封喉
阅读(419)
评论(0)
推荐(0)
浙公网安备 33010602011771号