摘要:
AC代码 include include include using namespace std; struct Sign { char SignInNumber[20]; int h, m, s; }earlist, least, temp; / struct Time { int h, m, s 阅读全文
摘要:
AC代码 阅读全文
摘要:
思路: 读取数组 计算边长 输出 AC代码 include include int const max_n = 85; using namespace std; int main() { ifdef ONLINE_JUDGE else freopen("1.txt", "r", stdin); en 阅读全文
摘要:
思路: 1. 使用数组保存每一行沙漏的最大符号数 2. 输入一个正整数和一个符号 3. 遍历数组,找到大于正整数的数组下标 j。 4. 三角形底边的字符数为 (j 1) 2 1 5. 打印沙漏 6. 打印剩余字符:x n[j 1] AC代码 include const int max_n = 200 阅读全文
摘要:
AC代码 include using namespace std; int main(){ int n = 0, m = 0; char a; scanf("%d %c", &n, &a); m = n%2==1?(n/2+1):(n/2); //printf("%d", m); for(int i 阅读全文
摘要:
AC代码 include include using namespace std; const int max_n = 11000; struct Stu { char name[20]; char gender; char id[20]; char grade; } boys_l, girls_h 阅读全文
摘要:
AC代码 include include const int max_n = 3; using namespace std; / struct Bet { double W, T, L }bet[3]; void init() { for(int i = 0; i T)?(W L?W:L):(T L 阅读全文
摘要:
题目AC汇总 甲级AC PAT A1001 A+B Format (20 分) PAT A1002 A+B for Polynomials(25) PAT A1005 Spell It Right (20) PAT A1006 Sign In and Sign Out (25) PAT A1009 阅读全文
摘要:
AC代码 阅读全文
摘要:
解题要点: 1. 使用结构体保存准考证号,考试座位号 2. 试机座位号作考生数组下标 3. 通过试机座位号获取考生号,座位号 4. 考生号使用long long存放 //课本AC代码 include const int maxn = 1010; struct Student { long long 阅读全文