随笔分类 - 机试
摘要:■ 题目描述 【统计文本数量】 题目描述 有一个文件,包含以一定规则写作的文本,请统计文件中包含的文本数量。 规则如下: 1. 文本以”;”分隔,最后一条可以没有”;”,但空文本不能算语句,比如”COMMAND A; ;”只能算一条语句 注意,无字符/空白字符/制表符都算作”空”文本; 2. 文本可
阅读全文
摘要:#include<bits/stdc++.h> using namespace std; int temp = 1; int count1 =0; void cout1(int k, int j) { for (int i = 0; i < k; i++) { cout << i+j; if (i
阅读全文
摘要:#include<bits/stdc++.h> using namespace std; int num, sum,sum1=0,count1 =0, r; int a[100]; vector<int>vec; int main() { for (int i = 0; i < 100; i++)
阅读全文