摘要:
#include <iostream> #include <cstdio> #include <functional>//less<int> #include <algorithm> using namespace std; int main(){ int n; scanf("%d",&n); in 阅读全文
摘要:
1019 General Palindromic Number (20分) A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For ex 阅读全文
摘要:
#include <iostream> #include <iomanip>//小数点必带这个头文件 using namespace std; int main(){ double t = 552.54467; double a = 3.1544545454; int b = 244; cout<< 阅读全文
摘要:
c++中的结构体排序,最常用到的应该就是对结构体的某一个元素进行排序,其他元素与被排序元素关联 比如这样的结构体 typedef struct student{ int id; int math; int chinese; int english; }student; score[3]代表三门成绩, 阅读全文
摘要:
012 The Best Rank (25分) To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Progr 阅读全文