| 比赛 | csp2025模拟练习1 | 评测结果 | AWWWWAWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWAWWWWWWWWWWWWW |
|---|---|---|---|
| 题目名称 | 彩色道路 | 最终得分 | 6 |
| 用户昵称 | 陆晨洗 | 运行时间 | 18.900 s |
| 代码语言 | C++ | 内存使用 | 3.68 MiB |
| 提交时间 | 2025-10-28 11:10:06 | ||
#include<bits/stdc++.h>
using namespace std;
int n,m;
int main()
{
freopen("paintoads.in","r",stdin);
freopen("paintoads.out","w",stdout);
int x,y,i,j;
cin>>n>>m;
for(i=1;i<=m;i++)
{
cin>>x>>y;
if(y=x+1)
{
if(x%2==1)
{
cout<<"R";
}
else
{
cout<<"B";
}
}
else
{
cout<<"G"<<endl;
}
}
return 0;
}