当前位置:网站首页>2018 Jiangsu Provincial Information and future programming expert competition test question -- (New) chicken and rabbit in the same cage standard schedule
2018 Jiangsu Provincial Information and future programming expert competition test question -- (New) chicken and rabbit in the same cage standard schedule
2022-07-18 13:48: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;
}
边栏推荐
- 测试/开发程序员幽默的 “自嘲“?印象流派......
- Go: about grpc
- Sword finger offer 04 Search in two-dimensional array
- Low power test scheme of jishili multimeter
- 记一篇IT培训日记068-心里有点不平衡
- Securities account Guotai Junan? Is it safe?
- 【luogu P2151】HH去散步(DP)(矩阵乘法)
- leetcode 2. Add two numbers
- Function overloading
- Collection和Collections区别
猜你喜欢
![ORA-600:[qertbGetPartitionNumber:qesma2],[],[],[]](/img/08/5c9a27c0b488f76e3815ce76047082.png)
ORA-600:[qertbGetPartitionNumber:qesma2],[],[],[]

山东省中小企业数字化转型论坛成功举办,九州云赋能中小企业数智升级

Sword finger offer 26 Substructure of tree

Sword finger offer 48 The longest substring without repeated characters

Three horses join hands with Qianyuan public welfare foundation | cool in summer, pay tribute to the adherents!

Sword finger offer 50 The first character that appears only once

2.4_9 Mysql 按分隔符,行转列

【锁相环】基于MATLAB的全数字锁相环设计与仿真

Introduction of oscilloscope bandwidth

2.4_ 9 MySQL by separator, row to column
随机推荐
Modèles de boîtes, flux de documents, positionnement, mise en page et conception réactive
Ora-19625 exception handling record
Hcip the next day
leetcode445. 两数相加 II
The second day of MATLAB learning (basic grammar, variables, commands and creating your own files)
Es query case
Micro, m3o micro service series (I)
July 2022 information theory Wu Jun
[phase locked loop] design and Simulation of all digital phase locked loop based on MATLAB
[deep learning] environment configuration of hands-on learning and deep learning
idea 将dev分支代码合并到master类推
Flutter ListView controller. Animateto is invalid
Flutter ListView controller.animateTo 无效
Rust中的函数function与方法method的区别
测试/开发程序员幽默的 “自嘲“?印象流派......
7.15模拟赛总结
视频处理:视频抽样
Collection和Collections区别
Go: about grpc
filebeat收集kubernetes集群日志