CF 253A(最大间隔相异队列)
来源:互联网 发布:俄罗斯共青城现状 知乎 编辑:程序博客网 时间:2024/05/01 11:40
分成2种情况考虑-男多女少和女多男少
考虑以下2种情况:
BGBGBB
BGBGGG-->GBGBGG 显然后面间隔较多
Program Boys;var n,m,i:longint;begin assign(input,'input.txt'); assign(output,'output.txt'); reset(input); rewrite(output); read(n,m); if n<m then begin for i:=1 to n do write('GB'); for i:=n+1 to m do write('G'); end else begin for i:=1 to m do write('BG'); for i:=m+1 to n do write('B'); end; writeln; close(input);close(output);end.
- CF 253A(最大间隔相异队列)
- 最大间隔
- 最大间隔
- 最大间隔
- 最大间隔
- 最大间隔
- CF 264A(向内的双向队列)
- CF 196B(Psychos in a Line-单调队列贪心)
- CF 319B Psychos in a Line 【单调队列】
- CF 319B Psychos in a Line 【单调队列】
- 【CF 453A】 Little Pony and Expected Maximum (最大期望)
- RMQ CF Approximating a Constant Range 区间最大最小值问题
- CF#253 (Div. 2) A.
- 数组的最大间隔
- [蘑菇街]最大间隔
- 牛客网-贪心-最大间隔
- CF 253A. Anton and Letters
- 华为机试---最大间隔
- linux学习
- VirtualBox 虚拟机中安装 Ubuntu 12.04
- Android eclipse中程序调试
- Sumsets Uva10125 poj
- Integer笔记
- CF 253A(最大间隔相异队列)
- Windows Server 2003中的磁盘管理
- jsp注意点
- ubuntu
- x264_mb_predict_mv_16x16 函数分析
- android 学习 实现切换动画,
- 静态链接库与动态链接库LINUX_C
- 实现一个View的横线
- 使用android设备管理员模式 实现强制锁屏 清除数据等