摘要:
原题: https://www.patest.cn/contests/pat b practise/1039 思路: 还是那个套路, 直接把ASCII字符, 当成数组下标. 完整实现: c include include int main (void) { char have[1010]; int 阅读全文
摘要:
原题: https://www.patest.cn/contests/pat b practise/1038 思路: 分数当成数组下标用, so easy! 实现: c include int main (void) { int n; // 学生总数 int s; // 要查询的学生数 int sc 阅读全文
摘要:
原题: https://www.patest.cn/contests/pat b practise/1036 思路: 当 n = 3, n = 4时是特殊情况 完整实现: c include int main (void) { int width; int height; char ch; char 阅读全文
摘要:
原题: https://www.patest.cn/contests/pat b practise/1037 思路: 本题和处理时间转换类似, 先转成标准单位K, 打印的时候再格式化. 完整实现: c include int main (void) { int width; int height; 阅读全文
摘要:
原题: https://www.patest.cn/contests/pat b practise/1031 思路: 虽然容易, 但是不细心, 也挺耽误时间. 完整实现: c include int main (void) { int weight[17] = { 7, 9, 10, 5, 8, 4 阅读全文