上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: ###题目描述: A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: 阅读全文
posted @ 2022-08-05 23:39 D_coding_blog 阅读(36) 评论(0) 推荐(0)
摘要: 题目描述: As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by s 阅读全文
posted @ 2022-08-05 22:59 D_coding_blog 阅读(49) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-07-23 20:26 D_coding_blog 阅读(2199) 评论(0) 推荐(1)
摘要: 阅读全文
posted @ 2022-07-17 17:01 D_coding_blog 阅读(57) 评论(0) 推荐(0)
摘要: 判断日期是否合法的模板(蓝桥杯常用) bool check(int year, int month, int day)//检查日期是否合法 { /*日期不合法三种情况: ① 月份不在1-12之间 日期不在1-31之间 ② 月份为2时,判断是否闰年,日期大于leap+28 ③ 日期大于每月最大日期 * 阅读全文
posted @ 2022-06-27 21:39 D_coding_blog 阅读(61) 评论(0) 推荐(0)
摘要: 在C++中只要#include<queue>即可使用队列类,其中在面试或笔试中常用的成员函数如下(按照最常用到不常用的顺序) 1. push 2. pop 3. size 4. empty 5. front 6. back 接下来逐一举例说明: 1. push 队列中由于是先进先出,push即在队尾 阅读全文
posted @ 2022-04-08 21:03 D_coding_blog 阅读(242) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std;int a[200][200];int n;void scan(int lever,bool even) { int x,y;//确定起点坐标 x = lever > n ? n : lever; y = le 阅读全文
posted @ 2021-11-27 12:33 D_coding_blog 阅读(46) 评论(0) 推荐(0)
摘要: 3302. 表达式求值 (模板题) 给定一个表达式,其中运算符仅包含 +,-,*,/(加 减 乘 整除),可能包含括号,请你求出表达式的最终值。 注意: 数据保证给定的表达式合法。 题目保证符号 - 只作为减号出现,不会作为负号出现,例如,-1+2,(2+2)*(-(1+1)+2) 之类表达式均不会 阅读全文
posted @ 2021-10-04 23:11 D_coding_blog 阅读(47) 评论(0) 推荐(0)
摘要: 题目描述: Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Spec 阅读全文
posted @ 2021-08-20 13:16 D_coding_blog 阅读(213) 评论(0) 推荐(0)
摘要: Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha 阅读全文
posted @ 2021-08-20 00:03 D_coding_blog 阅读(40) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页