QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#393220 | #8599. Кольорова таблиця | Network_Error | 24 | 1ms | 3780kb | C++14 | 966b | 2024-04-18 12:15:24 | 2024-04-18 12:15:25 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define pii pair<int,int>
#define piii tuple<int,int,int>
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define deb(var) cerr<<#var<<'='<<(var)<<"; "
//#define int long long
int n,m,c,L,a[110][110];
void out(int x){
cout<<(x==0?'R':x==1?'G':'B');
}
void work(){
cin>>n>>m>>c>>L;
for(int i=1;i<=n;i++){
char c;for(int j=1;j<=m;j++){
cin>>c;a[i][j]=c=='R'?0:c=='G'?1:2;
}
}
if(c==2){
int sum=0;
for(int i=1;i<=n;i++)
for(int j=1;j<=m;j++)sum+=a[i][j]!=(i+j)%2;
if(sum<=L){
for(int i=1;i<=n;i++)
for(int j=1;j<=m;j++){
out((i+j)&1);if(j==m)cout<<'\n';
}
}else{
for(int i=1;i<=n;i++)
for(int j=1;j<=m;j++){
out((i+j+1)&1);if(j==m)cout<<'\n';
}
}
}else{
}
}
signed main(){
ios::sync_with_stdio(0),
cin.tie(0),cout.tie(0);
int T=1;while(T--)work();return 0;
}
详细
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3668kb
input:
1 34 3 17 GGGRBGGBBGGBGBGBBRGGGRRRBBGGGBBRGB
output:
result:
wrong output format Unexpected end of file - token expected
Subtask #2:
score: 7
Accepted
Test #31:
score: 7
Accepted
time: 0ms
memory: 3552kb
input:
1 78 2 39 GRGGGRGRGRRRRGGRRRRGRGRGRGGGRGRRRRRRRGGRRGGGGGRGRGGGGGRRGRGRGGGRRRGRGGGRRRRRGG
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #32:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
1 18 2 9 GGRGRRRRGRRRGRGRRG
output:
GRGRGRGRGRGRGRGRGR
result:
ok ok
Test #33:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
1 63 2 31 RGRRRRRRRGGGRGRRRGGGRRRRGGRRGRRGRGRGGRGGRGRRRGRGRRRRGRRRGGRRGRR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #34:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
1 3 2 1 RGG
output:
RGR
result:
ok ok
Test #35:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
1 47 2 23 RRGRRRGGGRGGRRGGRGRRGRRRGGRRGRGGGGGGGRGRRRGGGGR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #36:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
1 96 2 48 GRRGGRRGGRRGGGGGRRGRRGGGRRGRGGRRRGGRRRGGGGRGRGRGGRGGGGRGRGRRGRGGGRRRGGGRGRGGRGRGRRRRRRGRRGRGGGGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #37:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
1 44 2 22 GRRGGRRRRRRRRRRGRRGRRGRGGGGGGGGRGGGGRGRGRGGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #38:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
1 88 2 44 GGRRRRGRRGRGGGRGRGRRGRGGGRRGGRRRRGRRGRGRGRRRRGRRRGRRGRRGRRRRGRGGGRRRGRGRGRGGGGGGGRRRRRGG
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #39:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
1 29 2 14 RGGGGRGRRGRRRRGRRRRGRGRGRRRGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #40:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
1 25 2 12 RRGGGGRRRRGGGGRGRRGGGRGGG
output:
GRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #41:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
1 73 2 36 RRGGRGGRGRRRRRGGRRGGRGRGGRGGGRGRGGGRRRGGRRGRRRRRRGGGRGGGGGGRGRGGGRRRRGRGR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #42:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
1 22 2 11 RGRRGGGRGGRRGGGRRGRGRR
output:
RGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #43:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
1 66 2 33 GGRGGGRGRGRGRGRRRRRGGRRRGRGGRGGGGRRRGGGRRGRRGRRGRRRGRRGGGRRRRRRGGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #44:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
1 10 2 5 GRGRRGRGRG
output:
RGRGRGRGRG
result:
ok ok
Test #45:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
1 51 2 25 GRGGGGGGGRGGRGGRRGGRGRRRGRRRRRGGRRRRGGRGRGGGRRRGGRR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #46:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
1 99 2 49 RRRGRGRGGRGGGRGGRRRRGGGRRGGRRRRRGRRGRGGRGRRRRRRGGRGRGGGRRRRGGGGGRGGRRRRRGRGGGRGRRGGGGGRGRGGGRGRRGGR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #47:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
1 39 2 19 RGRRRGRRGRGRRGRGRGGRRRRGRRGRRRRRRRGRRRR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #48:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
1 92 2 46 RGRGGGGRRGRGGRRGRRGGGRGGGGGGRGGRGRGGGGGGGGRRGRRGRGRGGRGGRGRGGGRRRRGRRGRGGRRRGRRGGGRGRRRRRRRR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #49:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
1 36 2 18 GGGRRGGRRGRRRGRGRRRGGGRGRRRGGGRGGGGG
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #50:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
1 15 2 7 GRRGGRGRGRRRGGG
output:
GRGRGRGRGRGRGRG
result:
ok ok
Test #51:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
1 59 2 29 RRGRGRGRRRGGRRGGGRGGRGGGGRGGGRRGRRRGGGRRGGRGGGGGGGRRRGGGRGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #52:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
1 99 2 49 RRGGRRRGRRGGGGRGGGGGGRRGRGRGGRGGGRRRRRGRRRRGRGGRGGGRRRRRGGRGGGGGRRGGRGGGRRGGGRGGRGRGGRRGRRGGGRRRGGR
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #53:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
1 52 2 26 RGGRGRGGGGGRRRRRGRRGGGGGGRRRGRRGRRRGRGRGGRGGRGGRRGRG
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #54:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
1 96 2 48 GGRRGRGGGGGGGGRRGGGGRRRRGGRRGGGRGRRRGGRGRGRRRGGGRGRGGRGRRGRRRGGRGGRGRRGRGRGGGRRRRRRGRGRRRGGGGRRG
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #55:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
1 40 2 20 GGRGRRRRGGRRRRGRGGGRGRGRRRGRGGRRGGGGGRGR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #56:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
1 85 2 42 GRGRGRRRRRRRGGGRGRRRGGRRGGGGRRGRRGGRGGRRRRGGGGGRRRRRGGGRRRGRRGGRGGRGGRGRGRRRRGGRGRRGR
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #57:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
1 25 2 12 RRGGRRGRRRRGRRRRGGRRRRGRR
output:
GRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #58:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
1 70 2 35 RGRRRRGRGRGRGRRGGRGRGGRGGRRGRRRGRGGRRRGGRGGGRGGRGRGRGRGRRRGRRRRGGRRGGG
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #59:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
1 26 2 13 RGRRGRRGGGGGRGGGRRGGGGGGRG
output:
RGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Test #60:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
1 100 2 50 GGGRRGRRRGGGRGGRRGRRGGRRGRGGRGRGGGRRRRRRRGRGRRRGRRRGRGRGGRRRRGGGGGRRGGRGRGGGRGGRRGRGRGRGGRGGRRRGRGRG
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG
result:
ok ok
Subtask #3:
score: 0
Wrong Answer
Test #61:
score: 0
Wrong Answer
time: 0ms
memory: 3708kb
input:
79 100 3 7900 RRRRBBGGGRGRGRGRGGGGRBBRRRGBRGRGRBBRGGBRRBBRGRGRBBBRGRBBRBBBRGGBGGRBGBBGGGBRGBRRGBBBGGGGRGGGRGRGBBGG RGBRBGGGGGRBGRGBGGBGRBRBBRBBRRGRGGGBRRBRGRGBBBBRGGGGBGGRGGGGRRBRGRRGGRRBGBGBBGRRGBRBRBBGGRGBRGBRRBRR RBRRGGBGRRGRGGRRRBGGBRRRRGBRRGBGBBBBRBRBBRBRGRBBGRGRBGGBBRGBGRGBRGRRGRRRRRRBRRRGBBBB...
output:
result:
wrong output format Unexpected end of file - token expected
Subtask #4:
score: 0
Wrong Answer
Test #91:
score: 0
Wrong Answer
time: 0ms
memory: 3688kb
input:
8 69 3 276 RGRBGRBRBRBRBGBRBRBRGRBRGRGRGRGRBRBGBRBGBGRBRGBGRBGBRGRGBRBGBGBGBRBRG RGRBGRBRBRBRBGBRBRBRGRBRGRGRGRGRBRBGBRBGBGRBRGBGRBGBRGRGBRBGBGBGBRBRG RGRBGRBRBRBRBGBRBRBRGRBRGRGRGRGRBRBGBRBGBGRBRGBGRBGBRGRGBRBGBGBGBRBRG RGRBGRBRBRBRBGBRBRBRGRBRGRGRGRGRBRBGBRBGBGRBRGBGRBGBRGRGBRBGBGBGBRBRG RGRBGRBRB...
output:
result:
wrong output format Unexpected end of file - token expected
Subtask #5:
score: 0
Wrong Answer
Test #121:
score: 0
Wrong Answer
time: 0ms
memory: 3596kb
input:
9 68 3 306 GBRBGRBGGGRBRRRRBBGRBGRBBBRBRBBRRRBRRRBBRBRGBBGGGGBRGBBGBBRRRGBGBGBR GBRBGRBGGGRBRRRRBBGRBGRBBBRBRBBRRRBRRRBBRBRGBBGGGGBRGBBGBBRRRGBGBGBR GBRBGRBGGGRBRRRRBBGRBGRBBBRBRBBRRRBRRRBBRBRGBBGGGGBRGBBGBBRRRGBGBGBR GBRBGRBGGGRBRRRRBBGRBGRBBBRBRBBRRRBRRRBBRBRGBBGGGGBRGBBGBBRRRGBGBGBR GBRBGRBGGGRBR...
output:
result:
wrong output format Unexpected end of file - token expected
Subtask #6:
score: 0
Wrong Answer
Test #151:
score: 0
Wrong Answer
time: 0ms
memory: 3668kb
input:
4 10 3 26 BGGRRBBRBG BGBGGBGRRB RBBBBBRGGR RGRBGGRGBB
output:
result:
wrong output format Unexpected end of file - token expected
Subtask #7:
score: 0
Wrong Answer
Test #181:
score: 0
Wrong Answer
time: 0ms
memory: 3608kb
input:
4 52 3 104 GRRGGGGBGRRBRGBRGRGRRBGBGBBRGGRRBBGBGBGBGGBRRRRBRRRG RGBGGGRGBGRBGRRBBBBRGRRBBBBGGBRGRBBRGGRBRGBRBGRBBGGR RBRGBGBGGRBBGGGRRRRBBRGRRGGBRGGRGRRGBRRRGRRBRGRGRBGG GRBBRRRRGGBRBBBGBBGGBRRGRGGBGGBRRGBRBBRRBGGBGBBBRRRR
output:
result:
wrong output format Unexpected end of file - token expected
Subtask #8:
score: 17
Accepted
Test #211:
score: 17
Accepted
time: 0ms
memory: 3688kb
input:
42 54 2 1134 GGRRGGGGGGGGRRGGRRRGGGRRGRRGGGGGGRRGGGGGGGGGGRGGRRRGRG RRRGGGRGGGRRRGGRRRRRRGGRGRGRGGRGGGRGRGRRGRRGGRGRRGGRRR RGGGRGRGGGRGGGGGRGGRGRGGGGGGGGGRRRGRRGGGRRGRGRGGGGGGRG RRGRGRRRRRRGGGGGGGRGGGRRRRGRGGRRGGGRGRRRRRGRRGRGRGGRGG GRGRGRGGGGGGGGRGGGGRGRRGRGRGGGGRGGRRGRRRGRRGRRRRRGGRRG RGGRRRGGGRGG...
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGR...
result:
ok ok
Test #212:
score: 0
Accepted
time: 0ms
memory: 3584kb
input:
70 95 2 3325 GRRGRGGGGGGRRGGRRGRGRGGRRGGRGGRRGRRRGGRGRGGGGRGRRRRGRGRGGGRRGGRRRGGGGRGRRRRRRRRGRRRGRRGGGRGRGGR GRGRRRGRGR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RGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG...
result:
ok ok
Test #219:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
46 13 2 299 RRRGGGGGRRGGG GRGGRRGGGRRRG GRRRRRGGRRRRG GGRRRGRRGRGRR RRRGRGGRGGRGG GGGGRRRGRGGGG RRRGRRRRRRGGR GRRGRRGRGRRGR GRRRRRRRRRGRR GGRGGRRGRRRRR GRRGGRGRGGGGG GGRGRRGRGRGRG RGGGRRRGGGRGG GRRRRGRGRGGRG GRGGGRGRRGGGR RRRRGGGGGGRGR GGGRRRRGGGGRR GGGGRRGRRRRGR RRGRRGRGGRRRR RRRRRGRRGGRRG GRRGGGRR...
output:
GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRGRGRGRGR GRGRGRGRGRGRG RGRGRG...
result:
ok ok
Test #220:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
4 80 2 160 RRRRGRRRGRGGGGGRRRRGGGGRRRRGRGGRGRGRGRRGRRGRGRGRGGGRGRRRGRGGRGRRRRRRRGGRGRGRRRGG RRRGRRGRRGGRGGRRGRGGGRRRGGGRGGGGRGGRGRRGRGRGRRGGGRRRRGGRRRGRRGGRRRRRRGGRGGRGRGGG GGRGGGGRRGRGGGRRRRRR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RGRGRGR ...
result:
ok ok
Test #222:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
52 64 2 1664 GRRRGRGRRGRGGRRRRGGRGGGRRRRGRRGGRRRRRRRRRGRGRRGRGRGRGGRRGRRRGRGG RGRGGRGRRGGRRRRRGGRGRGRRRRRRRRGGGRGGGRGRRGRGRGGRRGRRRRGRGGRGGGGG GRGRRRGRGGGGRRGGGRGGGRRGGGRRRGRRGRGGRGGGGRGGGRRGRRRRRGGGGRGGRGGG RRGRRRGRRGRRGRRRRRGGGRGRGGRGGGRRRRGRGGRGGGRRRGGGGGGGGRGRGGGGRGGG GRRRGGGRGRGRGGGGGGRGGGGGGGR...
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG...
result:
ok ok
Test #223:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
76 9 2 342 GGGGGRRGR RRGRGGRRR RRGRRRGGG RRRRGGRRG RRRRGGGGR RGGRRGGGG RGRRGGRRR RRGGGRRRR GGGGGGGRG GRGRRRGRG GGGRGRGGR GRGGRGRGR GRGGRRRRG GRRGRRGGG GRGRGGGGG RRRGRGGGG GGRGGRRRG GRRRGGRRR GRGRGRRRG RRRGRRRRR GRGGGRRRG RRRGGRGRG RGGGRRRRG RRRGRRGRR RGGGGGRGG RGGGGRRRG GRRGGRRRG RRRGRRRGR RGRGRRGRG...
output:
GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR GRGRGRGRG RGRGRGRGR ...
result:
ok ok
Test #224:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
4 57 2 114 RGGRRRGGRRGRGRGGGGRRRRGGRRGRRRGRRGRRGGGGRRRGGRGGRRRGRRGRG GGRGRGGGGRGGRGGGGGRRGGRRGGGGRGGRGRRRRGGGGGGGRRRRGGGGRGGRR GGGGRGGRRGGRRRGGGRGRRGGGGGRRRGRRGGRRGGRGRGRGRRRRRRGRGRRGR GRRGRGRRGRGGGRGGRRRGGRGRGRRRGRRRGGGRRGRRRGGGRGGRRRGGRGGGG
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR
result:
ok ok
Test #225:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
24 6 2 72 RRRRGR GGGRGG RGRGGR GGGGRG GGRRGG RRGGRG GRRGGR GRGRGR RRGGRR RGRGRG RRRGRR RGRGRG RGRGGG RRRGRG GGGRRR RGGRGG GGRGRG RRRRRR RGRRRG GGRGGR GRRGGR RRRGRR GRGRRR GGGGGG
output:
GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG
result:
ok ok
Test #226:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
52 50 2 1300 RRRGRRRGGGGRGRRGGRGGGRGGGRRGGGGRGGGRRRGRRRGRRRGGGG RRRGGRGGGRGRGRGRGGGGGGGRRRRGRGGGGGGGGGGRGRRGRRGGRR GRRRGGRRRRRGRRRRRRGRRRGRGRRRRGRGRGRGGGGRRGRGGRRGRR GGGRGGGGGGRGGRGRGGGGGGGGRRGRRGRGRGGRGGRGRGGGRRRRGR RGRGGRRRGRRGGGRGRRRRRRRRRGGRGRGRRGRGRRRRGGRGGGGGRG GRRGGRRRRRGRGGGRRRRGGGRGGGRGGGRG...
output:
GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR...
result:
ok ok
Test #227:
score: 0
Accepted
time: 1ms
memory: 3780kb
input:
80 90 2 3600 GRGRRRRRRGGGRGRGGGRGRGRGRGRGGRRGRGGGRGRRGGRGRRGGGGGRRGRGRGGGGRGGRRRGGGGRGRRGGGGGGGRRGRRGGG RGGGRGGRGRRGGRRRGGRGRGRGRRGRRGRRGRRGGGRGRRRRRRRRGGGRRGRGGGGGGRRRGRGGGGRGGRGRGRRRGRRRRRGRRG GRRGGGRRRRRGGGGRRGGGGRRRGRGGRRGGGRGRRRGGGRRRGRGGGRRGGGRGRGGRRRRRGGRGGGRGRRRRGRGRRGGGRRRRGG RGGRGRGRRGRGRR...
output:
G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RGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG...
result:
ok ok
Test #230:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
19 65 2 617 RGGGGGGRRRRRRGRGGRRGGRGGRRRGGRRGRGGRGRGGGRRGRGRRRGRGGRGRRGRRGRGGG RGGGGRRRGGRRGRGRRGGGRGGGRRRGGGRGRGGGRGRRGGRRGRRGRRGGRGRGRGRGRRGGR RGGRGGGRGGGGRRGRGGGRGGGGGGGGGRRGGRRRRRGGGGRGRGGRRRGGGGRGRGRRGGRGR GGRRRRGGGGGRRGRGGRGGGRGGRRRRGRGGGRRGGGGGRRGRRGGRGRGRGGRGRRGGGRRGG GGRGGGGRRRGGGRGGGRGGRRRR...
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG...
result:
ok ok
Test #231:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
39 6 2 117 RRGRGG RRRGGG GRRRGG RGRRRR GGGGRG GGGGRG GRRRRR GGGGRR RGGGGG RGGGRG GRRRRR RGRRGR GGGGGG RGRRRG GRGGGR GGRGGG RGRGRG GRRRRG RRRGGG GRGRRR GRGRGG GGGRGR GGGGRG GRRRGR RGGGGR GRRGGR GGRRGG GRGGRG GGRRGR RRGRRG RRGGGG GGGGRR RGRRRG RRGGGG RGGRRR RGRGRR GGRRGR GRRGGR RRGGGG
output:
GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR RGRGRG GRGRGR
result:
ok ok
Test #232:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
67 50 2 1675 GRRGRGRGGGGRRGRRGGGRGGGRRRGRRGRRGGRGGGGRGRRRGGRGGG RRRGGRRRGRRRGRGGGGRRRRGGGRRGGRRRGRGGGRGGGRGRGGRGGG GRRRGGRRGGGGGRGRRRGGGGGRGGGGRRGGRRRRGRGRGGRRRRRGRR GRRGGRGGRGGRRGGRRGRRRGGRRRGRRRGGGGGRRRRGRRGGRRRRGG RRGRRRRRGRRGGRGRGRGGGRGRGRGRRGGRRGGGGRGGRGGRGRGRRR RGRRRGRGGRRRRGRGGRGRGGGRGGRGRGRG...
output:
RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGR RGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG GRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRGRG...
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
score: 0
Wrong Answer
Test #241:
score: 0
Wrong Answer
time: 0ms
memory: 3756kb
input:
68 15 3 510 RRBGRGBBRBRGGGR GBRRRBBGBRBGBGR RGGGRBBBGGGGGBG BRRBRGRRGBRBGRR BRBBGBRBBRRRRRB GRRGGGGGGGGGGBR RBBRRBGRRRGRGRG GRGGGGRGRRGRRRB GGBRGBRBRRBRRBG RGRGBBBGGRGGRGB BRRGBGRGRGBGBBG GGRRBBBGRBRBBGB GBBRBBBBBBRRGBG BRBGGBBBRRBGGGB BBGGRBGBRRRBRBG BGGGBRRBRRGGRBG RRRBBBGRRBBBBRB GGRRRGRGGGBBRGB ...
output:
result:
wrong output format Unexpected end of file - token expected