# 过于简单, 不会自杀

## A. CF9A


# Die Roll
## 题意翻译
小Y，小W和小D进行扔骰子（六面）游戏，谁投出的点数最大算谁胜利，现在已知小Y和小W的得分，请你帮小D求出她获胜的概率

注意：

1.以"分子/分母"输出，特别的，若不可能获胜输出"0/1"，100%获胜输出"1/1"

2.小Y和小W非常绅士，如果小D的得分和他们一样，他们也会算作小D获胜
Translated by @稀神探女
## 题目描述
Yakko, Wakko and Dot, world-famous animaniacs, decided to rest from acting in cartoons, and take a leave to travel a bit. Yakko dreamt to go to Pennsylvania, his Motherland and the Motherland of his ancestors. Wakko thought about Tasmania, its beaches, sun and sea. Dot chose Transylvania as the most mysterious and unpredictable place.

But to their great regret, the leave turned to be very short, so it will be enough to visit one of the three above named places. That's why Yakko, as the cleverest, came up with a truly genius idea: let each of the three roll an ordinary six-sided die, and the one with the highest amount of points will be the winner, and will take the other two to the place of his/her dreams.

Yakko thrown a die and got Y points, Wakko — W points. It was Dot's turn. But she didn't hurry. Dot wanted to know for sure what were her chances to visit Transylvania.

It is known that Yakko and Wakko are true gentlemen, that's why if they have the same amount of points with Dot, they will let Dot win.
## 输入输出格式
#### 输入格式

The only line of the input file contains two natural numbers Y and W — the results of Yakko's and Wakko's die rolls.
#### 输出格式

Output the required probability in the form of irreducible fraction in format «A/B», where A — the numerator, and B — the denominator. If the required probability equals to zero, output «0/1». If the required probability equals to 1, output «1/1».
## 输入输出样例
#### 输入样例 #1
```
4 2

```

#### 输出样例 #1
```
1/2

```

## 说明
Dot will go to Transylvania, if she is lucky to roll 4, 5 or 6 points.


[题目链接](https://www.luogu.com.cn/problem/CF9A)

---

## B. CF4A


# Watermelon
## 题意翻译
判断输入的正整数能否分成两个正偶数，能则输出`YES`，不能则输出`NO`。
## 题目描述
One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and the scales showed $ w $ kilos. They rushed home, dying of thirst, and decided to divide the berry, however they faced a hard problem.

Pete and Billy are great fans of even numbers, that's why they want to divide the watermelon in such a way that each of the two parts weighs even number of kilos, at the same time it is not obligatory that the parts are equal. The boys are extremely tired and want to start their meal as soon as possible, that's why you should help them and find out, if they can divide the watermelon in the way they want. For sure, each of them should get a part of positive weight.
## 输入输出格式
#### 输入格式

The first (and the only) input line contains integer number $ w $ ( $ 1<=w<=100 $ ) — the weight of the watermelon bought by the boys.
#### 输出格式

Print YES, if the boys can divide the watermelon into two parts, each of them weighing even number of kilos; and NO in the opposite case.
## 输入输出样例
#### 输入样例 #1
```
8

```

#### 输出样例 #1
```
YES

```

## 说明
For example, the boys can divide the watermelon into two parts of 2 and 6 kilos respectively (another variant — two parts of 4 and 4 kilos).


[题目链接](https://www.luogu.com.cn/problem/CF4A)

---

## C. ？？？

1. [![](https://s1.ax1x.com/2023/04/25/p9u0iI1.png)](https://acjudge.com/)
2. [首页](https://acjudge.com/)
3. [题库](https://acjudge.com/p)
4. [训练](https://acjudge.com/training)
5. [比赛](https://acjudge.com/contest)
6. [作业](https://acjudge.com/homework)
7. [讨论](https://acjudge.com/discuss)
8. [评测记录](https://acjudge.com/record?uidOrName=500)
9. [排名](https://acjudge.com/ranking)
10. ![](https://img1.imgtp.com/2023/03/17/GypKwC6r.png) **ACjudge**
11. [胡峻瑜 ](https://acjudge.com/user/500)

# [**欢迎加入 潍坊快提ACjudge!(土拨军团)**](https://acjudge.com/)

[一本通启蒙版题库 - ACjudge](https://acjudge.com/d/ybtbaslocal/p)

[学python, 做游戏](http://cc.acjudge.online:16600/)

[![6月.jpeg](https://img1.imgtp.com/2023/06/12/vqGB7omB.jpeg "6月.jpeg")](https://acjudge.com/d/beichenoi/)

[![蓝图杯.jpeg](https://img1.imgtp.com/2023/05/25/BT8BQhgO.jpeg "6月.jpeg")](https://acjudge.com/d/wfoj/)

[![学员博客](https://img1.imgtp.com/2023/04/02/vIIMhQy6.jpeg "学员博客")](https://acjudge.com/blog/7/64297a5f295a458cfe8447c2#1680439903745)

[![lyp](https://img1.imgtp.com/2023/01/28/FwIvdYV3.jpeg "刘一平")](https://acjudge.com/blog/7/6311a19996307f08614c5132)

![春季招生](https://img1.imgtp.com/2023/01/28/ZuvP48YW.jpeg "春季招生")[![土拨鼠题库](https://img1.imgtp.com/2023/01/28/FDr0JmED.jpeg "土拨鼠题库")](https://acjudge.com/d/marmothub/p)

[![ThinkBox](https://img1.imgtp.com/2023/01/28/30WLUWo1.jpeg "ThinkBox")](https://acjudge.com/d/thinkbox/)

[![入门组训练计划](https://img1.imgtp.com/2023/01/28/Nc0oqRqu.jpeg "入门组训练计划")](https://acjudge.com/blog/7/63d4dfa9ad4210044fa33012)

[![入门组日常训练](https://img1.imgtp.com/2023/01/28/pbGkV1PL.jpeg "入门组日常训练")](https://acjudge.com/blog/7/63d4e1fbad4210044fa331a7)

[![算法基础训练计划](https://img1.imgtp.com/2023/01/28/2Sa0AtY9.jpeg "算法基础训练计划")](https://acjudge.com/d/algorithmbasics/training)

[![算法基础日常训练](https://img1.imgtp.com/2023/01/28/Htb5SlCu.jpeg "算法基础日常训练")](https://acjudge.com/blog/7/63d4e867ad4210044fa334d4)

[![历年真题解析](https://img1.imgtp.com/2023/01/28/QUOrsTYw.jpeg "历年真题解析")](https://acjudge.com/blog/7/63d4e998ad4210044fa3354c)

[![初赛](https://img1.imgtp.com/2023/01/28/yMxiTTy1.jpeg "初赛")](https://acjudge.com/blog/7/63d4ea77ad4210044fa335b2)

[![软件工具](https://img1.imgtp.com/2023/01/28/IP258RmK.jpeg "软件工具")](https://acjudge.com/blog/7/63d4ee7aad4210044fa3384b)

[QQ交流群](https://qm.qq.com/cgi-bin/qm/qr?k=gu86KgKXsFiU-y-PuAslngr1cLrz1VsD&jump_from=webapi)

## **远程评测**

[luoug题库](https://acjudge.com/d/Luogu/p)[CCF历年题库](https://acjudge.com/d/csp/p) [Codeforces题库](https://acjudge.com/d/codeforces/p) [SPOJ题库](https://acjudge.com/d/spoj/p) [UOJ题库](https://acjudge.com/d/uoj/p) [POJ题库](https://acjudge.com/d/poj/p) [USACO题库](https://acjudge.com/d/usaco/p) [算法竞赛进阶指南](https://acjudge.com/d/algorithm/p)

[codingbat题库](https://acjudge.com/d/codingbat/p) [首页 - ACjudge(一本通启蒙版)](http://idletick.com:14080/)

![春季招生](https://img1.imgtp.com/2023/01/28/ZuvP48YW.jpeg "春季招生")

# 比赛

1. **24**
   
   **2023-6**
   
   # [六下一 课堂测验](https://acjudge.com/contest/6494f1aa8474442d91a587a0)
   
   * [乐多](https://acjudge.com/contest?rule=ledo)
   * Rated
   * 2 小时
   * 11
2. **24**
   
   **2023-6**
   
   # [六上二 课堂测验 循环](https://acjudge.com/contest/6494f8ff8474442d91a58a7f)
   
   * [乐多](https://acjudge.com/contest?rule=ledo)
   * Rated
   * 2 小时
   * 10
3. **24**
   
   **2023-6**
   
   # [六上一 课堂测验 入门](https://acjudge.com/contest/6494f8118474442d91a58a4b)
   
   * [乐多](https://acjudge.com/contest?rule=ledo)
   * Rated
   * 2 小时
   * 10
4. **23**
   
   **2023-6**
   
   # [五 课堂测验 循环结构](https://acjudge.com/contest/6494edea8474442d91a58756)
   
   * [乐多](https://acjudge.com/contest?rule=ledo)
   * Rated
   * 240 小时
   * 8
5. **18**
   
   **2023-6**
   
   # [七下二 课堂测验 循环结构](https://acjudge.com/contest/648dc9968474442d91a4496e)
   
   * [乐多](https://acjudge.com/contest?rule=ledo)
   * Rated
   * 2 小时
   * 11

* [更多 >](https://acjudge.com/contest)

# 作业

1. **8**
   
   **2023-7**
   
   # [五 作业0630](https://acjudge.com/homework/649eca12b597c68bdeb4f002)
   
   * 状态: 正在进行…
   * 开始时间: **1 天前**
   * 截止时间: **1 周后**
2. **12**
   
   **2023-6**
   
   # [七下一 分支2](https://acjudge.com/homework/647c3c3f733d5dc97bcae4c4)
   
   * 状态: 已结束
   * 开始时间: **3 周前**
   * 最终截止时间: **2 周前**
3. **5**
   
   **2023-6**
   
   # [七下一 分支作业](https://acjudge.com/homework/6472ff36733d5dc97bc89aa6)
   
   * 状态: 已结束
   * 开始时间: **1 个月前**
   * 最终截止时间: **3 周前**
4. **5**
   
   **2023-6**
   
   # [夏子淇循环练习](https://acjudge.com/homework/647330cd733d5dc97bc8ba85)
   
   * 状态: 已结束
   * 开始时间: **1 个月前**
   * 最终截止时间: **3 周前**
5. **29**
   
   **2023-5**
   
   # [七下一 顺序练习最后一遍](https://acjudge.com/homework/6469c8a94abddbf3bae1f6f5)
   
   * 状态: 已结束
   * 开始时间: **1 个月前**
   * 最终截止时间: **1 个月前**

* [更多 >](https://acjudge.com/homework)

# 训练

1. 100
   
   已参加
   
   # [为学习"C++"指明方向](https://acjudge.com/training/62d7aa89041664044d4f6af9)
   
   为学习C++指明方向
   
   * 16 小节, 182 道题
   * **未参加**
2. 32
   
   已参加
   
   # [为学习"算法"指明方向](https://acjudge.com/training/62d7aae2041664044d4f6b1a)
   
   为学习"算法"指明方向
   
   * 11 小节, 169 道题
   * **未参加**
3. 14
   
   已参加
   
   # [为学习"数据结构"指明方向](https://acjudge.com/training/62d7ab34041664044d4f6b31)
   
   为学习"数据结构"指明方向
   
   * 4 小节, 31 道题
   * **未参加**
4. 11
   
   已参加
   
   # [为学习"图论"指明方向](https://acjudge.com/training/62d7ab55041664044d4f6b3a)
   
   为学习"图论"指明方向
   
   * 6 小节, 35 道题
   * **未参加**
5. 59
   
   已参加
   
   # [顺序结构训练题单](https://acjudge.com/training/62d7c811e06b580452532e51)
   
   顺序结构题单
   
   * 4 小节, 34 道题
   * **未参加**

* [更多 >](https://acjudge.com/training)

# Ranking

| 排名 | 用户名 | RP | 个人简介 |
| - | - | - | - |
| ------------------------------ |

| 1  | ![](https://acjudge.com/file/7/.avatar.png) [帅\~ (kunkka) ](https://acjudge.com/user/7)MOD                                                                | 299 | 刘老师 

* [更多 >](https://acjudge.com/ranking)

# 讨论

1. 67
   
   评论
   
   # [每日一题](https://acjudge.com/discuss/62ee6d5587acbbbf8f0d4be0#1665401697057)
   
   * [ 每日一题](https://acjudge.com/discuss/node/%E6%AF%8F%E6%97%A5%E4%B8%80%E9%A2%98)
   * 179 次查看
   * ![](https://acjudge.com/file/7/.avatar.png) [帅\~ (kunkka) ](https://acjudge.com/user/7)@ **8 个月前**
2. 0
   
   评论
   
   # 
   
   * [ 五 课堂测验 循环结构](https://acjudge.com/discuss/contest/6494edea8474442d91a58756)
   * 1 次查看
   * ![](https://acjudge.com/file/45/.avatar.jpg) [zhy ](https://acjudge.com/user/45)@ **1 天前**
3. 0
   
   评论
   
   # [114514](https://acjudge.com/discuss/649c2b7feb3d77153632b16e#1687956351621)
   
   * [ 五 课堂测验 循环结构](https://acjudge.com/discuss/contest/6494edea8474442d91a58756)
   * 2 次查看
   * ![](https://acjudge.com/file/45/.avatar.jpg) [zhy ](https://acjudge.com/user/45)@ **2 天前**
4. 0
   
   评论
   
   # [114514](https://acjudge.com/discuss/649c2b06eb3d77153632b155#1687956230720)
   
   * [ 五 课堂测验 循环结构](https://acjudge.com/discuss/contest/6494edea8474442d91a58756)
   * 1 次查看
   * ![](https://acjudge.com/file/45/.avatar.jpg) [zhy ](https://acjudge.com/user/45)@ **2 天前**
5. 0
   
   评论
   
   # [答案](https://acjudge.com/discuss/648e9bda8474442d91a46ae7#1687067610033)
   
   * [ 七下一 课堂测验 顺序与分支](https://acjudge.com/discuss/contest/648dc5f68474442d91a4476d)
   * 3 次查看
   * ![](https://acjudge.com/file/623/.avatar.jpeg) [褚志鸿 ](https://acjudge.com/user/623)@ **1 周前**

* [更多 >](https://acjudge.com/discuss)

# 一言

请，好好的看着我！

# 搜索

[ ] 搜索

# 讨论节点

* ## 探索
  
  1. [题解](https://acjudge.com/discuss/node/%E9%A2%98%E8%A7%A3)
  2. [问答](https://acjudge.com/discuss/node/%E9%97%AE%E7%AD%94)
  3. [分享](https://acjudge.com/discuss/node/%E5%88%86%E4%BA%AB)
* ## 算法
  
  1. [贪心](https://acjudge.com/discuss/node/%E8%B4%AA%E5%BF%83)
  2. [背包](https://acjudge.com/discuss/node/%E8%83%8C%E5%8C%85)
  3. [网络流](https://acjudge.com/discuss/node/%E7%BD%91%E7%BB%9C%E6%B5%81)
  4. [数论](https://acjudge.com/discuss/node/%E6%95%B0%E8%AE%BA)
  5. [搜索](https://acjudge.com/discuss/node/%E6%90%9C%E7%B4%A2)
  6. [排序](https://acjudge.com/discuss/node/%E6%8E%92%E5%BA%8F)
  7. [并查集](https://acjudge.com/discuss/node/%E5%B9%B6%E6%9F%A5%E9%9B%86)
  8. [图论](https://acjudge.com/discuss/node/%E5%9B%BE%E8%AE%BA)
  9. [博弈论](https://acjudge.com/discuss/node/%E5%8D%9A%E5%BC%88%E8%AE%BA)
  10. [动态规划](https://acjudge.com/discuss/node/%E5%8A%A8%E6%80%81%E8%A7%84%E5%88%92)
  11. [几何](https://acjudge.com/discuss/node/%E5%87%A0%E4%BD%95)
* ## 泛
  
  1. [语言基础(中)](https://acjudge.com/discuss/node/%E8%AF%AD%E8%A8%80%E5%9F%BA%E7%A1%80(%E4%B8%AD))
  2. [语言基础(下)](https://acjudge.com/discuss/node/%E8%AF%AD%E8%A8%80%E5%9F%BA%E7%A1%80(%E4%B8%8B))
  3. [语言基础(上)](https://acjudge.com/discuss/node/%E8%AF%AD%E8%A8%80%E5%9F%BA%E7%A1%80(%E4%B8%8A))
  4. [编程](https://acjudge.com/discuss/node/%E7%BC%96%E7%A8%8B)
  5. [游戏](https://acjudge.com/discuss/node/%E6%B8%B8%E6%88%8F)
  6. [数据库](https://acjudge.com/discuss/node/%E6%95%B0%E6%8D%AE%E5%BA%93)
  7. [数学](https://acjudge.com/discuss/node/%E6%95%B0%E5%AD%A6)
  8. [保送](https://acjudge.com/discuss/node/%E4%BF%9D%E9%80%81)
  9. [Python](https://acjudge.com/discuss/node/Python)
  10. [Java](https://acjudge.com/discuss/node/Java)
  11. [C++](https://acjudge.com/discuss/node/C%2B%2B)
  12. [C](https://acjudge.com/discuss/node/C)
  13. [ACM](https://acjudge.com/discuss/node/ACM)
* ## 在线题库
  
  1. [洛谷](https://acjudge.com/discuss/node/%E6%B4%9B%E8%B0%B7)
  2. [USACO](https://acjudge.com/discuss/node/USACO)
  3. [UOJ](https://acjudge.com/discuss/node/UOJ)
  4. [TopCoder](https://acjudge.com/discuss/node/TopCoder)
  5. [RQNOJ](https://acjudge.com/discuss/node/RQNOJ)
  6. [POJ](https://acjudge.com/discuss/node/POJ)
  7. [LOJ](https://acjudge.com/discuss/node/LOJ)
  8. [CodeForces](https://acjudge.com/discuss/node/CodeForces)
  9. [BZOJ](https://acjudge.com/discuss/node/BZOJ)
* ## 团队
  
  1. [每日一题](https://acjudge.com/discuss/node/%E6%AF%8F%E6%97%A5%E4%B8%80%E9%A2%98)
  2. [月赛](https://acjudge.com/discuss/node/%E6%9C%88%E8%B5%9B)
  3. [建议](https://acjudge.com/discuss/node/%E5%BB%BA%E8%AE%AE)
  4. [团队](https://acjudge.com/discuss/node/%E5%9B%A2%E9%98%9F)
* ## 数据结构
  
  1. [栈和队列](https://acjudge.com/discuss/node/%E6%A0%88%E5%92%8C%E9%98%9F%E5%88%97)
  2. [散列表](https://acjudge.com/discuss/node/%E6%95%A3%E5%88%97%E8%A1%A8)
  3. [搜索树](https://acjudge.com/discuss/node/%E6%90%9C%E7%B4%A2%E6%A0%91)
  4. [堆](https://acjudge.com/discuss/node/%E5%A0%86)
  5. [图](https://acjudge.com/discuss/node/%E5%9B%BE)

# 推荐

* ## 中文
  
  1. [LibreOJ](https://loj.ac/)
  2. [洛谷](https://www.luogu.com.cn/)
  3. [UOJ](https://uoj.ac/)
  4. [CometOJ](https://www.cometoj.com/)
  5. [Vijos](https://vijos.org/)
* ## English
  
  1. [Codeforces](https://codeforces.com/)
  2. [AtCoder](https://atcoder.jp/)
  3. [CodeChef](https://www.codechef.com/)
  4. [SPOJ](https://www.spoj.com/)
  5. [TopCoder](https://www.topcoder.com/)
  6. [OnlineJudge](https://onlinejudge.org/)
* ## 工具
  
  1. [OIerDb](https://oier.baoshuo.dev/)

# 状态

* [评测队列](https://acjudge.com/record)
* [服务状态](https://acjudge.com/status)

# 开发

* [开源](https://github.com/hydro-dev/Hydro)
* [API](https://acjudge.com/api)

# 支持

* [帮助](https://acjudge.com/wiki/help)
* [QQ 群](https://acjudge.com/wiki/about#contact)

1. [关于](https://acjudge.com/wiki/about)
2. [联系我们](https://acjudge.com/wiki/about#contact)
3. [隐私](https://acjudge.com/wiki/about#privacy)
4. [服务条款](https://acjudge.com/wiki/about#tos)
5. [版权申诉](https://acjudge.com/wiki/about#contact)
6. Language
7. [Legacy mode](https://acjudge.com/legacy?legacy=true)
8. 主题
9. 
10. ![text](https://acjudge.com/file/2/%E5%A4%87%E6%A1%88%E5%9B%BE%E6%A0%87.png)
11. 
12. [![](https://acjudge.com/)鲁公网安备 37079402001599号](http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=37079402001599)
13. 

* 
* 
* 
* [![](https://acjudge.com/)鲁ICP备2022025036号-1](https://beian.miit.gov.cn/)
* 
* 
* Worker 0, 24ms
* Powered by [Hydro v4.9.20](https://hydro.js.org/) Community

[×]()拖拽到此处

图片将完成下载

由AIX智能下载器(图片/视频/音乐/文档)提供



---

## D. 3的倍数

# Background

轩轩今天学习了3的倍数特征，回家后他要复习一下今天学习的知识，于是他想用编程来复习

# Format

## Input

输入一个三位数n，判断它是否是3的倍数

## Output

如果它是3的倍数，输出"Yes",如果它不是3的倍数，输出"No"

# Samples

```input1
567
```

```output1
Yes
```

# Limitation

1s, 1024KiB for each test case.



---

## E. wueh

# Background
Special for beginners, ^_^

# Description
Given two integers x and y, print the sum.

# Format

## Input
Two integers x and y, satisfying $0\leq x,y\leq 32767$ .

## Output
One integer, the sum of x and y.

# Samples

```input1
123 500
```

```output1
623
```

# Limitation
1s, 1024KiB for each test case.

---

## F. 【例6.1】 比赛成绩

<h2>说明</h2>

CSP复赛往往有四道题，按照赛制，一场比赛的分数是比赛中四道题的分数之和。现在给出选手在一场比赛中四道题的得分情况，求比赛的总成绩。
<h2>输入格式</h2>

一行四个不大于 100 的非负整数，表示选手每道题的得分。

<h2>输出格式</h2>

一个数，为这场比赛的总成绩。

<h2>样例</h2>
<pre><code class="language-input1">100 75 25 0</code></pre><pre><code class="language-output1">200
</code></pre>


---

## G. 土拨鼠，上灯台

# 故事背景

“土拨鼠，上灯台，偷油吃，下不来……”这是小盆友们最熟悉的歌谣。今天，n只土拨鼠真要去上灯台。

# 题目描述

为了防止土拨鼠上灯台时被猫发现（不要问我为什么不要被猫发现，因为它叫土拨“鼠”），只有体型小于k的土拨鼠才能不被猫发现。请你编写一个程序，判断n只土拨鼠中有几只能顺利的上灯台。
# 输入

两行。第一行为整数n（0<n<101）和k(4<k<21)，表示n只土拨鼠和不让猫发现的最大的k体型。第二行为n个整数，表示每只土拨鼠的体型（1~100）。

# 输出

一个整数m，表示有几只土拨鼠能够上灯台，没有输出-1。

# 样例

```样例输入
5 10
12 13 6 9 10
```

```样例输出
3
```


---

## H. 土拨鼠的时间简单题1

# Background

土拨鼠译正是一个懒惰的坏孩子,

# Description

现在是`h:m:s`点, 他想知道已经经过了一天中的多少秒

# Format

## Input

输入三个正整数 `h,m,s`，分别表示小时、分钟、秒。

## Output

输出一个正整数，表示这是今天的第几秒。

# Samples

```input1
13 5 20
```

```output1
47120
```

# Limitation

$0≤h<24,0≤m<60,0≤s<60$。



---

## I. 土拨鼠一家总共有几个南桐

# Background
Special for beginners, ^_^

# Description
Given two integers x and y, print the sum.

# Format

## Input
Two integers x and y, satisfying $0\leq x,y\leq 32767$ .

## Output
One integer, the sum of x and y.

# Samples

```input1
123 500
```

```output1
623
```

# Limitation
1s, 1024KiB for each test case.

---

## J. 锑君倒霉日

太累了，不想出好题

为什么是13，
**13倒霉！**

```c++
int main() {
  cout<<13;
  return 0;
}
```



---

## K. 345245245245

# Background

Special for beginners, ^_^

# Description624372367623745672364572367562387657236987563

Given two integers x and y, print the sum.
2
45
23
4523
54
234
5

# Format

24523452345235
43255
2

## Input

2542345235442353245

2234Two5 integers x and y, satisfying $0\leq x,y\leq 327522367$ .
45235
235

## Output

One integer, the sum of x and y.

# Samples

```input1
123 500
```

```output1
623
```

# Limitation

1145145
s, 1145145KiB for each test case.



---

## L. 三角形

# 背景

没啥背景

# 说明

给出三角形周长n,求最长边长度m,

# 输入格式

一个整数n

# 输出格式

一个整数m

# 样例

## 输入样例

```
17
```

## 输出样例

```
8
```

# 数据范围与约定

对于 **100%** 的数据，n小于等于10000



---

## M. 无

# Background
Special for beginners, ^_^

# Description
Given two integers x and y, print the sum.

# Format

## Input
Two integers x and y, satisfying $0\leq x,y\leq 32767$ .

## Output
One integer, the sum of x and y.

# Samples

```input1
123 500
```

```output1
623
```

# Limitation
1s, 1024KiB for each test case.

---

## N. 饮料

# 故事背景

夏天到了，土拨鼠想去超市买几瓶不同的饮料放在家里。超市中的饮料各种各样，有的贵，有的便宜，有的甜，有的酸。如果土拨鼠想买 $n$ 瓶饮料，那么他会先看饮料的甜度，再看买这瓶饮料的人数（热度），最后看价格。请你在超市所有的饮料中为土拨鼠按它的想法给他挑出这 $n$ 瓶饮料。

# 题目描述

给定超市中每瓶饮料的名称、甜度、热度（买这瓶饮料的人数）和价格，帮土拨鼠选出他想要的饮料。（价格可能是小数）

方法：

先看甜度，再看热度，最后看价格。

# 输入

第 1 行为两个整数 $m$ 和 $n$，表示超市中的总饮料数 $m$ 和土拨鼠想要的饮料数 $n$ 。

第 2 到 $n$+1 行，每行包含饮料的名称、甜度、热度和价格。保证每瓶饮料的价格不同。

# 输出

$n$ 行。每行一个字符串，表示排序好后第 $i$ 瓶饮料的名称。

# 样例

```input1
5 3
meizhiyuan 10 30 5
guolicheng 12 30 4
kele 15 40 3
chapai 7 25 6
bingtangxueli 15 15 3
```

```output1
kele
bingtangxueli
guolicheng
```

# 提示

排序方法：

先比甜度，甜度大的排靠前。

甜度相同，再比热度，热度搞得排靠前。

甜度热度都相同，再比价格，价格低的排靠前。

以上为你 $sort$ 排序时的 $compare$ 函数提供了帮助。



---

## O. a+b

# Background

a+b

# Description

Given two integers x and y, print the sum.

# Format

## Input

Two integers x and y, satisfying $0\leq x,y\leq 32767$ .

## Output

One integer, the sum of x and y.

# Samples

```input1
1 2
```

```output1
3
```

# Limitation

1s, 1024KiB for each test case.



---

## P. 给雷姆酱送白丝

# [REMOI 114514 Loli组]给雷姆酱送白丝

## 题目描述

Shiro是雷姆的舔狗。有一次Shiro在与雷姆的视频通话中得知雷姆的白丝已经很久没有换过了，如果Shiro愿意给雷姆送上一双崭新的白丝，那么雷姆就会将她用了很久的白丝送给Shiro。这对于舔狗Shiro来说可是不可多得的好机会，他内心十分坚毅！

Shiro是一名大陆国人，而雷姆是日本鬼族。Shiro已经到达了韩国，他打算依靠连接两岸的海域上的岛屿来到达日本。

在这片海域上一共有 $n$ 座岛屿排成一排，标号为 $1,2,3, \ldots ,n$。每座岛屿有两个权值，分别为劳累度 $a_i$ 和坚毅度 $b_i$。

对于一座劳累度为 $a$，坚毅度为 $b$ 的小岛，如果这个小岛满足 $(a\oplus c) \leq \min(b,d)$，Shiro到达这座岛探险就会对拿到雷姆的白丝充满信心，其中 $c$ 表示Shiro到岛上去之前就有的劳累度（称作初始劳累度），同理 $d$ 代表Shiro的初始坚毅度。$\oplus$ 表示二进制异或（即二进制表示下不进位的加法）。

为了更加方便地拿到雷姆的白丝，Shiro会向你询问 $q$ 次，每次给出一个区间 $[l_i,r_i]$ 和两个数 $c_i,d_i$，你需要告诉Shiro若她的初始劳累度为 $c_i$，初始坚毅度为 $d_i$，则有多少个标号在 $[l_i,r_i]$ 这个区间内的岛屿能让Shiro对拿到雷姆的白丝充满信心。

## 输入格式

第一行两个正整数 $n,q$ 分别表示岛屿的数量和询问的数量。

接下来 $n$ 行，每行两个整数 $a_i,b_i$ 分别表示第 $i$ 座岛屿的劳累度和坚毅度。

接下来 $q$ 行，每行四个正整数 $l_i,r_i,c_i,d_i$ 分别表示区间左端点，区间右端点，初始劳累度与初始坚毅度。

## 输出格式

输出一共 $q$ 行，每行一个整数对应一个询问的答案。

## 样例 #1

### 样例输入 #1

```
4 2
1 1
4 2
5 1
2 7
1 4 6 5
2 4 3 3
```

### 样例输出 #1

```
2
1
```

## 样例 #2

### 样例输入 #2

```
20 10
215 144
2 110
174 132
214 142
116 108
155 192
236 208
216 214
99 220
236 118
190 81
230 131
10 238
189 198
183 13
45 193
14 234
208 192
126 19
49 38
7 14 251 184
2 18 89 76
11 15 49 196
8 11 83 139
10 15 119 239
9 16 148 120
11 17 225 34
15 16 3 46
14 15 86 227
7 18 252 103
```

### 样例输出 #2

```
7
2
2
2
1
3
1
1
0
7
```

## 提示

测试点 $1,2$ 满足 $1\leq n,q\leq 5000$。

测试点 $3,4$ 满足 $1\leq n,q\leq 10^4$。

测试点 $5,6,7$ 满足 $1\leq n,q\leq 10^5$ 且 $\max\{d_i\}\leq \min\{b_i\}$。

测试点 $8,9,10,11$ 满足 $1\leq n,q\leq 10^5$ 且 $\min\{d_i\}\geq \max\{b_i\}$。

测试点 $12,13$ 满足 $1\leq n,q\leq 10^5$ 且 $l_i=1,r_i=n$。

测试点 $14,15,16$ 满足 $1\leq n,q\leq 7\times 10^4$。

测试点 $17,18,19,20$ 满足 $1\leq n,q\leq 10^5$。

所有数据满足 $1\leq n,q\leq 10^5$， $1\leq a_i,b_i,c_i,d_i\leq 2^{24}-1$。



---
