当前位置:网站首页>2018年江苏省信息与未来程序设计小能手比赛试题--(新)鸡兔同笼标程
2018年江苏省信息与未来程序设计小能手比赛试题--(新)鸡兔同笼标程
2022-07-16 04:11:00 【ceshyong】
#include<bits/stdc++.h>
using namespace std;
int t,x,y;
int main()
{
cin>>t;
for(int i=1;i<=t;i++)
{
cin>>x>>y;
if(y<=x*3) cout<<0<<' ';
else cout<<y-x*3<<' ';
if(y<=x*2) cout<<0<<endl;
else cout<<(y-x*2)/2<<endl;
}
return 0;
}
边栏推荐
- Dpdk flow filter summary (flow director/ rte_flow)
- 用例解读:openinstall多场景应用分析
- 为什么 Qt Creator 的编译如此之慢?
- ORA-19625异常处理记录
- Common protocols of tcp/ip
- Bluetooth technology | the first Bluetooth Le audio compatible devices will be launched this year, and the endurance of Bluetooth headsets will be improved by leaps and bounds
- Get started quickly, Jupiter notebook
- Basic UNIX domain protocol programming
- AB PLC学习笔记
- MulterError: Unexpected field
猜你喜欢

基于AMDP的BW转换专家例程

Get started quickly, Jupiter notebook

Halcon 3D create_ pose

Leetcode - interview question 02.05 List summation

2.18 haas506 2.0开发教程 - 阿里云M2M设备间通信 - 规则引擎/Topic消息路由(仅支持2.2以上版本)

constrained graphic layout generation via latent optimization

Dls-12b/dc220v double position relay

Low power test scheme of jishili multimeter

Software testing zero basic testing - Basic Concepts

Tools to measure the gap between two distributions: cross entropy and KL divergence
随机推荐
[deep learning] environment configuration of hands-on learning and deep learning
DLS-12B/DC220V双位置继电器
Research progress of transfer learning in medical image classification
Task-Customized Self-Supervised Pre-training with Scalable Dynamic Routing
递归求解二叉树的遍历(常考基础例题)
312312dd
AB PLC学习笔记
Static routing technology
文献学习(part99)--Fast unfolding of communities in large networks
贝加莱PLC-更改轴任务扫描时间和周期位置下发
2022-07-信息论-吴军
Why does QT creator compile so slowly?
使用pssh批量在多台主机上执行命令
The static variable looks a little dizzy, and the GDB assembly is awake
山东省中小企业数字化转型论坛成功举办,九州云赋能中小企业数智升级
单细胞文献学习(part4)--SCANPY: large-scale single-cell gene expression data analysis
leetcode445. 两数相加 II
Recursively solve the traversal of binary trees (often test basic examples)
leetcode - 面试题 02.05. 链表求和
QA robot section 1 - Introduction