摘要:
将原图与纸张按同样的方式放好,再通过长宽比例算缩小比例code:#include iostream#include cstdio#include cstdlibusing namespace std;int a, b, c, d, flag;double mark1, mark2;void cmp(int &a, int &b){ if(ab) { flag=a; a=b; b=flag; }}int main(){ while (scanf("%d%d%d%d",&a, &b, &c, &d), a && b && c && d) { cmp(a,b); cmp(c,d); m 阅读全文
摘要:
数学推论题,有胜负场的话,总分加3,平局总分加2,所以:平局数=3*总场数-总分数172k 0mscode:#include iostream#include cstdio#include stringusing namespace std;int main(){ int team, n; char name[20]; while(scanf("%d%d",&team, &n), team) { int sum=0, point, i=team; while(i--) { scanf("%s%d", name, &point); sum+=point; } printf("%d\n 阅读全文