题解列表

筛选

奖学金 (C语言代码)

摘要:解题思路:利用结构体注意事项:参考代码:#include<stdio.h>typedef struct student{ int num; int chinese; int math; int Eng……

纪念品分组 (C语言代码)

摘要:解题思路:贪心思想,尽量让价格最高的和价格最低的匹配;否则她单独一组注意事项:不要自己写排序,不然会时间超限,用qsort()快排函数解决参考代码:#include<stdio.h>#include<……

小O的图案 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,k,i,j,x; while(scanf("%d",&n)!=EOF) { k=2*n-1; x……

统计字母个数 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main() { char ch; ……