版本比较
【K-R1】五一赛•赛后题解
标题
增加 1 行删除 1 行
11【K-1】五一赛•赛后题解【K-R1】五一赛•赛后题解正文
增加 3 行删除 3 行
11 行未改动121314151616171819207 行未改动2829303132323334353614 行未改动5152535455555657585932 行未改动11 行未改动 cout<<a+b; return 0;}```## T2 [$\color{red}\text{【K-1】四则运算计算器}$](https://www.luogu.com.cn/problem/U647071?contestId=324578)## T2 [$\color{red}\text{【K-R1-T2】四则运算计算器}$](https://www.luogu.com.cn/problem/U647071?contestId=324578)根据题目要求进行计算和输出对应算式即可。```cpp#include <iostream>using namespace std;7 行未改动 if(c==4) cout<<a<<"/"<<b<<"="<<a/b; return 0;}```## T3 [$\color{red}\text{【K-1】罗马数字}$](https://www.luogu.com.cn/problem/U649172?contestId=324578)## T3 [$\color{red}\text{【K-R1-T3】罗马数字}$](https://www.luogu.com.cn/problem/U649172?contestId=324578)**注意特判 $4$ 和 $9$ 这两个数字即可。**```cpp#include <iostream>#include <string>14 行未改动 cout<<s<<endl; return 0;}```## T4 [$\color{orange}\text{【K-1】恩格尔系数}$](https://www.luogu.com.cn/problem/U678883?contestId=324578)## T4 [$\color{orange}\text{【K-R1-T4】恩格尔系数}$](https://www.luogu.com.cn/problem/U678883?contestId=324578)根据题目计算即可,下列给出的代码使用的是百分数比较。```cpp#include <iostream>using namespace std;32 行未改动