摘要:
cin和cout输入输出格式Cout 输出 1>. bool型输出cout . 整型输出const int ival = 17 ; // 'ival' is constant, so value never changecout . 浮点型输出cout . 科学计数法(scien... 阅读全文
摘要:
求N以内的真分数个数For example, if N = 5, the number of possible irreducible fractions are 11 as below.0 1/5 1/4 1/3 2/5 1/2 3/5 2/3 3/4 4/5 1 Input1 --> case ... 阅读全文
摘要:
//https://leetcode.com/problems/number-of-digit-one/Given an integer n, count the total number of digit 1 appearing in all non-negative integers less ... 阅读全文
摘要:
并查集主要解决图的连通性问题,比如: 1、随意给你两个点,让你判断它们是否连通; 2、问你整幅图一共有几个连通分支;初始化:void init(int size) { for(int i = 0; i using namespace std;int N, E, Answer;int pre... 阅读全文