QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#297082 | #7965. 机器人 | Famiglistmo | AC ✓ | 688ms | 70456kb | C++17 | 6.5kb | 2024-01-03 22:28:46 | 2024-01-03 22:28:47 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
const int N=6e5+5;
// struct Item{
// int h,x,y,op;
// int replace_id;
// int trigger_op,trigger_id;
// }item[N];
struct Item {
int op, h, x, y, z;
int trigger_op, trigger_id;
int replace_id;
Item() {}
Item(int t1, int t2, int t3, int t4, int t5, int t6, int t7, int t9) : op(t1), h(t2), x(t3), y(t4), z(t5), trigger_op(t6), trigger_id(t7), replace_id(t9) {}
} item[2000005];
int p_cmd[105][15],p_robot[105][2];
string s;
int n,m,k,cnt,cur;
int getop(string& s){
if(s=="SLACKOFF")return 1;
if(s=="MOVE")return 2;
if(s=="SWAP")return 3;
if(s=="MIRROR")return 4;
if(s=="REPLACE")return 5;
if(s=="ACTIVATE")return 6;
if(s=="TRIGGER")return 7;
cout<<"QWQ\n",assert(0);
return 0;
}
int readin() {
int tmp = ++cnt, tmp1, tmp2, tmp3;
string s; cin >> s;
if (s == "SLACKOFF") item[tmp] = Item(1, 0, 0, 0, 0, 0, 0, 0);
else if (s == "MOVE") {
cin >> tmp1 >> tmp2;
item[tmp] = Item(2, tmp1, 0, 0, tmp2, 0, 0, 0);
}
else if (s == "SWAP") {
cin >> tmp1 >> tmp2 >> tmp3;
item[tmp] = Item(3, tmp1, tmp2, tmp3, 0, 0, 0, 0);
}
else if (s == "MIRROR") {
cin >> tmp1 >> tmp2;
item[tmp] = Item(4, tmp1, tmp2, 0, 0, 0, 0, 0);
}
else if (s == "REPLACE") {
cin >> tmp1 >> tmp2;
int xx = readin();
item[tmp] = Item(5, tmp1, tmp2, 0, 0, 0, 0, xx);
}
else if (s == "ACTIVATE") {
cin >> tmp1;
item[tmp] = Item(6, tmp1, 0, 0, 0, 0, 0, 0);
}
else if (s == "TRIGGER") {
string t; cin >> t; int xx = readin();
if (t == "SLACKOFF:") item[tmp] = Item(7, 0, 0, 0, 0, 1, xx, 0);
else if (t == "MOVE:") item[tmp] = Item(7, 0, 0, 0, 0, 2, xx, 0);
else if (t == "SWAP:") item[tmp] = Item(7, 0, 0, 0, 0, 3, xx, 0);
else if (t == "MIRROR:") item[tmp] = Item(7, 0, 0, 0, 0, 4, xx, 0);
else if (t == "REPLACE:") item[tmp] = Item(7, 0, 0, 0, 0, 5, xx, 0);
else if (t == "ACTIVATE:") item[tmp] = Item(7, 0, 0, 0, 0, 6, xx, 0);
else if (t == "TRIGGER:") item[tmp] = Item(7, 0, 0, 0, 0, 7, xx, 0);
}
return tmp;
}
void output(int x){
if(item[x].op==1) cerr<<"SLACKOFF";
if(item[x].op==2) cerr<<"MOVE "<<item[x].h<<" "<<item[x].x;
if(item[x].op==3) cerr<<"SWAP "<<item[x].h<<" "<<item[x].x<<" "<<item[x].y;
if(item[x].op==4) cerr<<"MIRROR "<<item[x].h<<" "<<item[x].x;
if(item[x].op==5) cerr<<"REPLACE "<<item[x].h<<" "<<item[x].x<<" ",output(item[x].replace_id);
if(item[x].op==6) cerr<<"ACTIVATE "<<item[x].h;
if(item[x].op==7) {
cerr<<"TRIGGER ";
if(item[x].trigger_op==1) cerr<<"SLACKOFF: ";
if(item[x].trigger_op==2) cerr<<"MOVE: ";
if(item[x].trigger_op==3) cerr<<"SWAP: ";
if(item[x].trigger_op==4) cerr<<"MIRROR: ";
if(item[x].trigger_op==5) cerr<<"REPLACE: ";
if(item[x].trigger_op==6) cerr<<"ACTIVATE: ";
if(item[x].trigger_op==7) cerr<<"TRIGGER: ";
output(item[x].trigger_id);
}
}
void output(){
// for(int i=0;i<n;++i){
// cerr<<p_robot[i][0]<<" "<<p_robot[i][1]<<endl;
// for(int j=1;j<=m;++j)
// output(p_cmd[i][j]),cerr<<endl;
// }
// cerr<<"----\n";
}
void work(int i,int x,bool lst);
void findtrigger(int i,int op,bool lst);
void run(int i);
#define trigger(op) if(p_robot[i][1]^i) findtrigger(p_robot[i][1],op,lst)
void chk(){ if(++cur>k)exit(0); }
void slack(int id, int x, bool ist) {
chk();
printf("Robot %d slacks off.\n", id);
if (id != p_robot[id][1]) findtrigger(p_robot[id][1], 1, ist);
}
void move(int id, int x, bool ist) {
chk();
p_robot[id][item[x].h] = (p_robot[id][item[x].h] + item[x].z) % n;
if (!item[x].h) printf("Robot %d moves its left hand towards Robot %d.\n", id, p_robot[id][item[x].h]);
else printf("Robot %d moves its right hand towards Robot %d.\n", id, p_robot[id][item[x].h]);
if (id != p_robot[id][1]) findtrigger(p_robot[id][1], 2, ist);
}
void swap(int id, int x, bool ist) {
chk();
printf("Robot %d swaps a line of command with Robot %d.\n", id, p_robot[id][item[x].h]);
swap(p_cmd[p_robot[id][item[x].h]][item[x].x], p_cmd[id][item[x].y]);
if (id != p_robot[id][1]) findtrigger(p_robot[id][1], 3, ist);
}
void mirror(int id, int x, bool ist) {
chk();
printf("Robot %d modifies a line of command of Robot %d.\n", id, p_robot[id][item[x].h]);
if (item[p_cmd[p_robot[id][item[x].h]][item[x].x]].op != 0 && item[p_cmd[p_robot[id][item[x].h]][item[x].x]].op != 7)
item[p_cmd[p_robot[id][item[x].h]][item[x].x]].h ^= 1;
else if (item[p_cmd[p_robot[id][item[x].h]][item[x].x]].op == 7) {
item[++cnt] = item[item[p_cmd[p_robot[id][item[x].h]][item[x].x]].trigger_id];
item[cnt].h ^= 1;
item[p_cmd[p_robot[id][item[x].h]][item[x].x]].trigger_id = cnt;
}
if (id != p_robot[id][1]) findtrigger(p_robot[id][1], 4, ist);
}
void replace(int id, int x, bool ist) {
chk();
printf("Robot %d replaces a line of command of Robot %d.\n", id, p_robot[id][item[x].h]);
item[++cnt] = item[item[x].replace_id];
p_cmd[p_robot[id][item[x].h]][item[x].x] = cnt;
if (id != p_robot[id][1]) findtrigger(p_robot[id][1], 5, ist);
}
void activate(int i,int x,int lst){
chk();
printf("Robot %d activates Robot %d.\n", i, p_robot[i][item[x].h]);
run(p_robot[i][item[x].h]);
if (i != p_robot[i][1]) findtrigger(p_robot[i][1], 6, lst);
}
void work(int id, int x, bool ist) {
if (item[x].op == 1) slack(id, x, ist);
if (item[x].op == 2) move(id, x, ist);
if (item[x].op == 3) swap(id, x, ist);
if (item[x].op == 4) mirror(id, x, ist);
if (item[x].op == 5) replace(id, x, ist);
if (item[x].op == 6) activate(id, x, ist);
}
void findtrigger(int id, int tp, bool frm_ist) {
for (int i = 1; i <= m; i++) {
if (item[p_cmd[id][i]].op == 7) {
if (item[p_cmd[id][i]].trigger_op != 7 && item[p_cmd[id][i]].trigger_op == tp) {
work(id, item[p_cmd[id][i]].trigger_id, 1); break;
}
if (item[p_cmd[id][i]].trigger_op == 7 && frm_ist) {
work(id, item[p_cmd[id][i]].trigger_id, 1); break;
}
}
}
}
void run(int id) {
if (k == cur) exit(0);
for (int i = 1; i <= m; i++) {
work(id, p_cmd[id][i], 0);
}
}
signed main(){
// freopen("5.in","r",stdin);
// freopen("mine.out","w",stdout);
// ios::sync_with_stdio(false);
// cin.tie(0),cout.tie(0);
cin>>n>>m>>k;
for(int i=0;i<n;++i){
cin>>p_robot[i][0]>>p_robot[i][1];
for(int j=1;j<=m;++j)
p_cmd[i][j]=readin();
}
for(int cur=0;;++cur){
if(cur==n)cur=0;
run(cur);
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 118ms
memory: 70456kb
input:
100 1 300000 1 1 REPLACE 0 1 REPLACE 0 1 REPLACE 1 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 1 1 REPLACE 1 1 REPLACE 0 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 0 1 REPLACE 1 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 1 1 REPLACE 0 1 REPLACE 0 1 REPLACE 1 1 REPLACE 0 1 REPLACE...
output:
Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 2. Robot 2 replaces a line of command of Robot 3. Robot 3 replaces a line of command of Robot 4. Robot 4 replaces a line of command of Robot 5. Robot 5 replaces a line of command of Robot 6. Robot 6 replaces a...
result:
ok 300000 lines
Test #2:
score: 0
Accepted
time: 25ms
memory: 22820kb
input:
100 10 300000 15 7 REPLACE 1 10 REPLACE 1 9 ACTIVATE 0 SWAP 1 7 4 MIRROR 0 10 TRIGGER ACTIVATE: REPLACE 1 6 SLACKOFF MOVE 0 63 SWAP 0 2 1 SWAP 1 3 7 SWAP 1 1 5 REPLACE 1 10 MIRROR 1 10 REPLACE 1 4 MIRROR 0 2 80 77 SWAP 0 8 8 ACTIVATE 1 MOVE 0 42 MIRROR 1 6 TRIGGER SWAP: SWAP 1 4 7 MIRROR 1 1 TRIGGER...
output:
Robot 0 replaces a line of command of Robot 7. Robot 0 swaps a line of command with Robot 7. Robot 0 modifies a line of command of Robot 15. Robot 0 activates Robot 15. Robot 15 modifies a line of command of Robot 0. Robot 15 modifies a line of command of Robot 0. Robot 15 replaces a line of command...
result:
ok 300000 lines
Test #3:
score: 0
Accepted
time: 21ms
memory: 31900kb
input:
100 10 300000 59 13 REPLACE 0 5 REPLACE 0 7 MOVE 1 10 MOVE 0 40 ACTIVATE 1 TRIGGER TRIGGER: SWAP 1 9 7 ACTIVATE 1 SWAP 0 9 3 TRIGGER MOVE: MIRROR 1 1 MIRROR 0 7 MIRROR 0 5 REPLACE 1 1 SLACKOFF 27 65 REPLACE 1 8 REPLACE 1 6 MIRROR 0 6 TRIGGER MIRROR: SWAP 1 8 6 MOVE 1 2 TRIGGER REPLACE: MIRROR 0 1 MI...
output:
Robot 0 replaces a line of command of Robot 59. Robot 0 moves its left hand towards Robot 99. Robot 0 activates Robot 13. Robot 13 slacks off. Robot 13 slacks off. Robot 13 slacks off. Robot 13 swaps a line of command with Robot 20. Robot 13 swaps a line of command with Robot 20. Robot 13 moves its ...
result:
ok 300000 lines
Test #4:
score: 0
Accepted
time: 28ms
memory: 16216kb
input:
100 10 300000 38 0 TRIGGER TRIGGER: REPLACE 0 5 MIRROR 1 1 TRIGGER REPLACE: MOVE 0 98 MOVE 1 27 MIRROR 0 2 MOVE 1 38 MIRROR 1 8 SLACKOFF SLACKOFF TRIGGER REPLACE: MOVE 1 25 TRIGGER MOVE: REPLACE 1 5 ACTIVATE 1 63 95 ACTIVATE 0 SWAP 0 7 10 REPLACE 0 6 SWAP 1 9 9 SWAP 1 4 1 SWAP 1 7 4 MIRROR 1 2 MOVE ...
output:
Robot 0 moves its right hand towards Robot 27. Robot 0 modifies a line of command of Robot 38. Robot 0 moves its right hand towards Robot 65. Robot 0 modifies a line of command of Robot 65. Robot 0 slacks off. Robot 65 slacks off. Robot 0 slacks off. Robot 65 slacks off. Robot 1 activates Robot 63. ...
result:
ok 300000 lines
Test #5:
score: 0
Accepted
time: 22ms
memory: 13516kb
input:
100 10 300000 27 67 REPLACE 1 6 MIRROR 1 6 TRIGGER MIRROR: REPLACE 0 8 MOVE 1 76 SLACKOFF MIRROR 1 3 REPLACE 0 3 ACTIVATE 1 ACTIVATE 1 MIRROR 0 6 MOVE 0 99 SWAP 1 5 4 SWAP 0 10 8 8 90 TRIGGER MIRROR: SWAP 1 5 7 MOVE 0 9 MOVE 1 67 TRIGGER TRIGGER: MIRROR 1 2 MIRROR 0 8 ACTIVATE 0 MIRROR 1 3 SLACKOFF ...
output:
Robot 0 replaces a line of command of Robot 67. Robot 0 slacks off. Robot 0 modifies a line of command of Robot 67. Robot 0 replaces a line of command of Robot 27. Robot 0 activates Robot 67. Robot 67 moves its left hand towards Robot 27. Robot 67 swaps a line of command with Robot 27. Robot 67 move...
result:
ok 300000 lines
Test #6:
score: 0
Accepted
time: 16ms
memory: 16128kb
input:
100 10 300000 18 16 SLACKOFF ACTIVATE 1 TRIGGER REPLACE: MIRROR 0 5 SLACKOFF MOVE 1 29 ACTIVATE 1 MIRROR 1 6 MOVE 1 25 SWAP 1 8 10 SWAP 1 4 8 36 42 SLACKOFF ACTIVATE 0 MOVE 0 53 TRIGGER TRIGGER: SLACKOFF SWAP 0 1 7 ACTIVATE 1 SLACKOFF MIRROR 0 5 MIRROR 1 4 SLACKOFF 97 55 REPLACE 0 10 MIRROR 1 8 MIRR...
output:
Robot 0 slacks off. Robot 0 activates Robot 16. Robot 16 moves its right hand towards Robot 10. Robot 16 slacks off. Robot 10 moves its right hand towards Robot 34. Robot 16 swaps a line of command with Robot 10. Robot 10 modifies a line of command of Robot 74. Robot 16 replaces a line of command of...
result:
ok 300000 lines
Test #7:
score: 0
Accepted
time: 28ms
memory: 12588kb
input:
100 10 300000 92 3 TRIGGER SLACKOFF: SWAP 1 2 10 ACTIVATE 0 ACTIVATE 1 MIRROR 0 1 SWAP 1 5 9 SLACKOFF TRIGGER MOVE: SWAP 0 9 7 SLACKOFF REPLACE 1 8 MOVE 0 35 REPLACE 1 8 ACTIVATE 0 41 55 REPLACE 1 5 TRIGGER SWAP: MIRROR 0 7 MIRROR 0 9 REPLACE 0 4 ACTIVATE 1 MOVE 1 56 TRIGGER TRIGGER: SLACKOFF TRIGGE...
output:
Robot 0 activates Robot 92. Robot 92 slacks off. Robot 92 activates Robot 51. Robot 51 replaces a line of command of Robot 8. Robot 51 swaps a line of command with Robot 8. Robot 51 moves its right hand towards Robot 53. Robot 51 slacks off. Robot 51 swaps a line of command with Robot 53. Robot 51 m...
result:
ok 300000 lines
Test #8:
score: 0
Accepted
time: 18ms
memory: 12496kb
input:
100 10 300000 87 58 SWAP 0 9 4 MIRROR 0 3 MOVE 0 2 ACTIVATE 0 SLACKOFF SWAP 0 10 3 MOVE 1 99 MIRROR 1 2 MOVE 1 81 TRIGGER SLACKOFF: SLACKOFF 74 11 SWAP 0 5 8 MIRROR 0 3 ACTIVATE 0 ACTIVATE 0 TRIGGER ACTIVATE: REPLACE 0 2 SLACKOFF TRIGGER SWAP: SLACKOFF MOVE 1 72 TRIGGER SWAP: SWAP 0 3 2 MOVE 0 84 SL...
output:
Robot 0 swaps a line of command with Robot 87. Robot 0 modifies a line of command of Robot 87. Robot 0 moves its left hand towards Robot 89. Robot 0 moves its right hand towards Robot 12. Robot 0 slacks off. Robot 0 swaps a line of command with Robot 89. Robot 0 moves its right hand towards Robot 11...
result:
ok 300000 lines
Test #9:
score: 0
Accepted
time: 31ms
memory: 18780kb
input:
100 10 300000 93 50 REPLACE 0 4 ACTIVATE 0 MIRROR 0 5 ACTIVATE 1 TRIGGER SLACKOFF: MOVE 0 81 ACTIVATE 1 MIRROR 1 2 REPLACE 0 6 MOVE 0 76 ACTIVATE 0 TRIGGER SWAP: SLACKOFF MOVE 1 57 63 93 ACTIVATE 1 SLACKOFF TRIGGER MOVE: REPLACE 0 10 MOVE 1 9 TRIGGER TRIGGER: SLACKOFF MIRROR 0 2 REPLACE 1 6 SLACKOFF...
output:
Robot 0 replaces a line of command of Robot 93. Robot 50 modifies a line of command of Robot 81. Robot 0 modifies a line of command of Robot 93. Robot 50 replaces a line of command of Robot 78. Robot 0 activates Robot 50. Robot 50 replaces a line of command of Robot 81. Robot 50 modifies a line of c...
result:
ok 300000 lines
Test #10:
score: 0
Accepted
time: 9ms
memory: 17860kb
input:
100 10 300000 2 72 MOVE 0 64 REPLACE 1 9 TRIGGER SLACKOFF: REPLACE 0 8 TRIGGER MIRROR: SWAP 0 7 5 SWAP 1 4 5 ACTIVATE 0 REPLACE 0 5 MIRROR 0 6 TRIGGER TRIGGER: REPLACE 1 10 MIRROR 0 3 MOVE 1 13 MIRROR 1 6 TRIGGER MIRROR: SWAP 1 7 9 SLACKOFF 32 86 MOVE 0 4 REPLACE 0 6 SLACKOFF ACTIVATE 0 TRIGGER TRIG...
output:
Robot 0 moves its left hand towards Robot 66. Robot 72 replaces a line of command of Robot 62. Robot 0 replaces a line of command of Robot 72. Robot 0 swaps a line of command with Robot 72. Robot 0 activates Robot 66. Robot 66 moves its left hand towards Robot 71. Robot 53 slacks off. Robot 66 activ...
result:
ok 300000 lines
Test #11:
score: 0
Accepted
time: 19ms
memory: 31892kb
input:
100 10 300000 9 42 SLACKOFF SLACKOFF TRIGGER MIRROR: REPLACE 1 5 MOVE 1 47 SLACKOFF ACTIVATE 1 MOVE 1 18 MOVE 0 70 MOVE 1 59 REPLACE 0 9 MOVE 0 63 SWAP 1 6 7 34 83 SWAP 1 2 4 MOVE 1 92 MIRROR 0 4 SWAP 0 5 10 SLACKOFF MOVE 1 61 MOVE 0 81 ACTIVATE 0 TRIGGER MIRROR: MOVE 0 40 SWAP 1 4 4 50 81 ACTIVATE ...
output:
Robot 0 slacks off. Robot 42 replaces a line of command of Robot 32. Robot 85 modifies a line of command of Robot 78. Robot 78 replaces a line of command of Robot 32. Robot 0 slacks off. Robot 42 replaces a line of command of Robot 32. Robot 85 modifies a line of command of Robot 78. Robot 78 replac...
result:
ok 300000 lines
Test #12:
score: 0
Accepted
time: 61ms
memory: 24272kb
input:
100 4 300000 0 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE 1 1 REPLACE...
output:
Robot 0 replaces a line of command of Robot 1. Robot 0 modifies a line of command of Robot 0. Robot 0 swaps a line of command with Robot 0. Robot 0 replaces a line of command of Robot 0. Robot 1 replaces a line of command of Robot 2. Robot 1 modifies a line of command of Robot 1. Robot 1 swaps a lin...
result:
ok 300000 lines
Test #13:
score: 0
Accepted
time: 23ms
memory: 14512kb
input:
100 10 300000 87 96 MIRROR 1 8 SWAP 0 1 8 MOVE 1 45 MOVE 0 54 TRIGGER REPLACE: SLACKOFF ACTIVATE 0 MOVE 0 39 SLACKOFF MIRROR 1 8 MIRROR 1 4 1 9 MOVE 0 4 REPLACE 0 1 MOVE 0 23 MOVE 1 32 MIRROR 1 2 TRIGGER REPLACE: SLACKOFF ACTIVATE 1 MOVE 0 8 MIRROR 1 9 SLACKOFF SLACKOFF 81 40 REPLACE 0 7 MOVE 0 4 AC...
output:
Robot 0 modifies a line of command of Robot 96. Robot 0 swaps a line of command with Robot 87. Robot 0 moves its right hand towards Robot 41. Robot 0 moves its left hand towards Robot 41. Robot 0 activates Robot 41. Robot 41 moves its left hand towards Robot 60. Robot 41 modifies a line of command o...
result:
ok 300000 lines
Test #14:
score: 0
Accepted
time: 35ms
memory: 17884kb
input:
100 10 300000 88 10 REPLACE 0 1 MIRROR 1 3 SWAP 1 5 2 TRIGGER REPLACE: REPLACE 1 4 SWAP 1 10 7 REPLACE 0 9 MIRROR 1 9 MIRROR 0 3 SWAP 0 1 7 TRIGGER MOVE: REPLACE 0 4 REPLACE 0 7 TRIGGER MOVE: REPLACE 0 4 REPLACE 0 2 MOVE 0 83 MIRROR 1 6 TRIGGER SWAP: REPLACE 0 4 REPLACE 1 10 MOVE 1 41 REPLACE 1 3 TR...
output:
Robot 0 replaces a line of command of Robot 88. Robot 0 swaps a line of command with Robot 10. Robot 0 replaces a line of command of Robot 88. Robot 0 modifies a line of command of Robot 88. Robot 10 replaces a line of command of Robot 34. Robot 0 swaps a line of command with Robot 88. Robot 0 modif...
result:
ok 300000 lines
Test #15:
score: 0
Accepted
time: 29ms
memory: 24732kb
input:
100 10 300000 2 31 MOVE 1 22 TRIGGER REPLACE: MOVE 1 71 SWAP 0 1 4 SWAP 1 7 4 SWAP 1 3 1 REPLACE 0 2 MIRROR 1 2 TRIGGER ACTIVATE: REPLACE 1 1 REPLACE 1 4 TRIGGER TRIGGER: MIRROR 0 6 TRIGGER TRIGGER: REPLACE 0 3 REPLACE 1 4 SWAP 0 6 10 REPLACE 1 6 MIRROR 1 10 REPLACE 0 8 MIRROR 0 8 75 20 TRIGGER SWAP...
output:
Robot 0 moves its right hand towards Robot 53. Robot 0 swaps a line of command with Robot 2. Robot 0 swaps a line of command with Robot 53. Robot 0 swaps a line of command with Robot 53. Robot 0 replaces a line of command of Robot 2. Robot 53 swaps a line of command with Robot 79. Robot 83 replaces ...
result:
ok 300000 lines
Test #16:
score: 0
Accepted
time: 31ms
memory: 17588kb
input:
100 10 300000 65 78 REPLACE 1 6 MOVE 1 94 SWAP 1 8 6 REPLACE 1 4 SWAP 0 3 6 REPLACE 0 2 MIRROR 1 6 MIRROR 0 9 TRIGGER MIRROR: REPLACE 1 8 TRIGGER ACTIVATE: REPLACE 1 3 TRIGGER SWAP: REPLACE 0 5 MIRROR 0 9 SWAP 1 7 6 MIRROR 1 8 TRIGGER TRIGGER: MIRROR 1 6 TRIGGER TRIGGER: MIRROR 0 5 39 15 SWAP 0 7 7 ...
output:
Robot 0 replaces a line of command of Robot 78. Robot 78 modifies a line of command of Robot 25. Robot 57 replaces a line of command of Robot 5. Robot 5 modifies a line of command of Robot 20. Robot 0 swaps a line of command with Robot 78. Robot 0 replaces a line of command of Robot 78. Robot 78 mod...
result:
ok 300000 lines
Test #17:
score: 0
Accepted
time: 30ms
memory: 28252kb
input:
100 10 300000 58 82 REPLACE 1 8 TRIGGER SLACKOFF: SWAP 0 7 4 TRIGGER ACTIVATE: REPLACE 0 6 REPLACE 0 9 REPLACE 0 2 REPLACE 0 4 TRIGGER ACTIVATE: REPLACE 1 6 TRIGGER SWAP: MOVE 1 78 MOVE 1 10 MIRROR 0 6 TRIGGER MIRROR: REPLACE 0 7 SWAP 0 1 3 TRIGGER SLACKOFF: MIRROR 1 2 MIRROR 0 1 SWAP 0 5 3 REPLACE ...
output:
Robot 0 replaces a line of command of Robot 82. Robot 0 moves its right hand towards Robot 92. Robot 92 modifies a line of command of Robot 19. Robot 2 replaces a line of command of Robot 43. Robot 51 modifies a line of command of Robot 36. Robot 0 modifies a line of command of Robot 58. Robot 0 mod...
result:
ok 300000 lines
Test #18:
score: 0
Accepted
time: 33ms
memory: 24176kb
input:
100 10 300000 38 89 REPLACE 1 8 MOVE 1 42 REPLACE 1 1 SWAP 0 5 6 REPLACE 0 3 MIRROR 1 7 TRIGGER MIRROR: MOVE 1 42 TRIGGER ACTIVATE: REPLACE 1 7 MIRROR 0 8 SLACKOFF SWAP 1 1 2 REPLACE 0 9 TRIGGER MOVE: MOVE 0 84 MOVE 1 60 TRIGGER ACTIVATE: SLACKOFF 81 51 REPLACE 1 2 TRIGGER REPLACE: REPLACE 0 2 MOVE ...
output:
Robot 0 replaces a line of command of Robot 89. Robot 89 swaps a line of command with Robot 87. Robot 87 modifies a line of command of Robot 30. Robot 6 replaces a line of command of Robot 0. Robot 0 replaces a line of command of Robot 89. Robot 89 swaps a line of command with Robot 87. Robot 87 mod...
result:
ok 300000 lines
Test #19:
score: 0
Accepted
time: 27ms
memory: 24632kb
input:
100 10 300000 81 35 MOVE 1 45 REPLACE 1 9 MOVE 1 21 TRIGGER MIRROR: MIRROR 1 1 SLACKOFF TRIGGER ACTIVATE: MOVE 1 11 MOVE 1 61 MOVE 0 68 REPLACE 0 3 REPLACE 1 9 REPLACE 0 2 TRIGGER SWAP: MOVE 1 86 REPLACE 0 10 REPLACE 1 6 REPLACE 0 4 TRIGGER MIRROR: REPLACE 1 1 REPLACE 1 5 REPLACE 1 9 TRIGGER MOVE: R...
output:
Robot 0 moves its right hand towards Robot 80. Robot 0 replaces a line of command of Robot 80. Robot 80 replaces a line of command of Robot 26. Robot 0 slacks off. Robot 80 modifies a line of command of Robot 26. Robot 26 modifies a line of command of Robot 8. Robot 8 replaces a line of command of R...
result:
ok 300000 lines
Test #20:
score: 0
Accepted
time: 32ms
memory: 24088kb
input:
100 10 300000 7 64 MIRROR 0 8 REPLACE 1 7 MIRROR 1 1 SWAP 1 9 3 REPLACE 1 6 REPLACE 0 3 SWAP 0 7 8 ACTIVATE 1 MOVE 1 49 REPLACE 1 9 MIRROR 0 2 MOVE 0 25 MIRROR 0 3 TRIGGER MOVE: REPLACE 0 3 TRIGGER REPLACE: MOVE 0 64 1 89 TRIGGER MOVE: SLACKOFF TRIGGER ACTIVATE: REPLACE 1 6 REPLACE 0 1 SWAP 1 4 5 TR...
output:
Robot 0 modifies a line of command of Robot 7. Robot 0 replaces a line of command of Robot 64. Robot 0 swaps a line of command with Robot 64. Robot 0 replaces a line of command of Robot 64. Robot 0 activates Robot 64. Robot 64 modifies a line of command of Robot 46. Robot 64 modifies a line of comma...
result:
ok 300000 lines
Test #21:
score: 0
Accepted
time: 34ms
memory: 28500kb
input:
100 10 300000 32 82 TRIGGER ACTIVATE: MIRROR 1 2 MIRROR 1 9 MOVE 0 90 TRIGGER SWAP: REPLACE 0 7 REPLACE 0 3 REPLACE 1 5 MIRROR 0 4 TRIGGER ACTIVATE: MIRROR 0 1 MOVE 1 99 MIRROR 0 9 MOVE 0 35 SWAP 1 6 6 MIRROR 0 6 79 97 SWAP 0 8 10 REPLACE 1 8 SWAP 0 7 4 REPLACE 1 5 REPLACE 1 1 REPLACE 0 9 MIRROR 1 6...
output:
Robot 0 modifies a line of command of Robot 82. Robot 0 moves its left hand towards Robot 22. Robot 82 modifies a line of command of Robot 48. Robot 48 modifies a line of command of Robot 36. Robot 0 moves its right hand towards Robot 81. Robot 0 modifies a line of command of Robot 22. Robot 81 modi...
result:
ok 300000 lines
Test #22:
score: 0
Accepted
time: 24ms
memory: 23188kb
input:
100 10 300000 51 19 MIRROR 0 7 SWAP 0 9 5 TRIGGER SWAP: MIRROR 0 8 SWAP 1 6 5 MOVE 1 57 REPLACE 1 10 TRIGGER MIRROR: REPLACE 1 7 REPLACE 1 10 MIRROR 0 3 MOVE 1 74 MOVE 0 55 SWAP 0 1 6 REPLACE 0 3 REPLACE 0 8 MIRROR 0 2 82 17 REPLACE 0 8 SWAP 0 2 8 REPLACE 0 10 TRIGGER SLACKOFF: MOVE 0 25 REPLACE 1 6...
output:
Robot 0 modifies a line of command of Robot 51. Robot 19 replaces a line of command of Robot 38. Robot 0 swaps a line of command with Robot 51. Robot 19 modifies a line of command of Robot 38. Robot 0 swaps a line of command with Robot 19. Robot 19 modifies a line of command of Robot 38. Robot 0 mod...
result:
ok 300000 lines
Test #23:
score: 0
Accepted
time: 29ms
memory: 10744kb
input:
10 7 300000 1 2 REPLACE 1 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE ...
output:
Robot 0 replaces a line of command of Robot 2. Robot 0 modifies a line of command of Robot 2. Robot 0 moves its right hand towards Robot 0. Robot 0 modifies a line of command of Robot 0. Robot 0 swaps a line of command with Robot 0. Robot 0 replaces a line of command of Robot 1. Robot 0 moves its ri...
result:
ok 300000 lines
Test #24:
score: 0
Accepted
time: 32ms
memory: 28396kb
input:
100 10 300000 87 5 MIRROR 0 7 SWAP 1 3 3 SLACKOFF MOVE 0 85 TRIGGER REPLACE: MIRROR 0 6 MIRROR 1 6 TRIGGER SLACKOFF: SWAP 0 8 1 REPLACE 1 7 REPLACE 1 9 MIRROR 0 9 TRIGGER SLACKOFF: REPLACE 0 9 TRIGGER MOVE: MIRROR 1 7 TRIGGER SWAP: SWAP 1 6 2 86 58 REPLACE 1 10 REPLACE 0 1 TRIGGER SWAP: MOVE 0 48 RE...
output:
Robot 0 modifies a line of command of Robot 87. Robot 0 swaps a line of command with Robot 5. Robot 0 replaces a line of command of Robot 87. Robot 0 moves its left hand towards Robot 72. Robot 0 modifies a line of command of Robot 5. Robot 0 replaces a line of command of Robot 5. Robot 1 replaces a...
result:
ok 300000 lines
Test #25:
score: 0
Accepted
time: 26ms
memory: 21472kb
input:
100 10 300000 61 99 MOVE 1 34 TRIGGER ACTIVATE: SWAP 0 3 2 ACTIVATE 1 ACTIVATE 1 MIRROR 0 5 TRIGGER ACTIVATE: MOVE 1 95 ACTIVATE 1 MIRROR 1 7 SWAP 1 7 7 ACTIVATE 0 73 37 SWAP 1 6 4 ACTIVATE 1 TRIGGER SWAP: SWAP 0 9 1 TRIGGER SWAP: SWAP 1 9 1 ACTIVATE 0 TRIGGER SWAP: SWAP 0 3 8 TRIGGER SWAP: MIRROR 0...
output:
Robot 0 moves its right hand towards Robot 33. Robot 33 moves its right hand towards Robot 85. Robot 85 swaps a line of command with Robot 3. Robot 75 swaps a line of command with Robot 16. Robot 16 swaps a line of command with Robot 29. Robot 29 swaps a line of command with Robot 22. Robot 22 modif...
result:
ok 300000 lines
Test #26:
score: 0
Accepted
time: 24ms
memory: 21512kb
input:
100 10 300000 1 43 SWAP 0 4 5 TRIGGER MIRROR: MIRROR 1 1 ACTIVATE 1 TRIGGER SWAP: MOVE 1 57 TRIGGER SWAP: SWAP 1 8 8 TRIGGER TRIGGER: SWAP 0 2 7 ACTIVATE 0 TRIGGER ACTIVATE: SWAP 0 1 5 TRIGGER TRIGGER: MIRROR 0 9 TRIGGER MIRROR: SWAP 1 2 8 34 18 SWAP 1 8 4 TRIGGER TRIGGER: SWAP 0 4 3 SWAP 1 7 4 TRIG...
output:
Robot 0 swaps a line of command with Robot 1. Robot 43 modifies a line of command of Robot 45. Robot 0 activates Robot 43. Robot 43 activates Robot 45. Robot 45 moves its right hand towards Robot 70. Robot 45 swaps a line of command with Robot 70. Robot 70 moves its left hand towards Robot 53. Robot...
result:
ok 300000 lines
Test #27:
score: 0
Accepted
time: 22ms
memory: 31920kb
input:
100 10 300000 17 40 MOVE 1 55 ACTIVATE 0 SWAP 0 6 5 ACTIVATE 1 SWAP 1 3 1 MIRROR 0 2 ACTIVATE 1 MIRROR 1 7 TRIGGER TRIGGER: SWAP 1 10 2 TRIGGER MOVE: SWAP 1 8 8 19 49 TRIGGER SWAP: SWAP 1 1 7 TRIGGER ACTIVATE: MIRROR 0 6 MOVE 0 76 TRIGGER ACTIVATE: SWAP 0 10 1 ACTIVATE 1 MIRROR 1 2 TRIGGER TRIGGER: ...
output:
Robot 0 moves its right hand towards Robot 95. Robot 95 modifies a line of command of Robot 87. Robot 26 swaps a line of command with Robot 4. Robot 4 swaps a line of command with Robot 66. Robot 81 moves its left hand towards Robot 4. Robot 80 moves its left hand towards Robot 42. Robot 66 swaps a ...
result:
ok 300000 lines
Test #28:
score: 0
Accepted
time: 81ms
memory: 31492kb
input:
100 10 300000 10 2 TRIGGER TRIGGER: REPLACE 0 8 TRIGGER REPLACE: REPLACE 0 6 TRIGGER REPLACE: REPLACE 1 9 TRIGGER TRIGGER: REPLACE 1 9 TRIGGER REPLACE: REPLACE 0 1 TRIGGER TRIGGER: REPLACE 0 3 TRIGGER TRIGGER: REPLACE 1 8 TRIGGER TRIGGER: REPLACE 1 8 TRIGGER TRIGGER: REPLACE 0 2 TRIGGER TRIGGER: REP...
output:
Robot 0 replaces a line of command of Robot 10. Robot 0 replaces a line of command of Robot 2. Robot 2 replaces a line of command of Robot 15. Robot 41 swaps a line of command with Robot 27. Robot 27 replaces a line of command of Robot 45. Robot 45 replaces a line of command of Robot 2. Robot 37 rep...
result:
ok 300000 lines
Test #29:
score: 0
Accepted
time: 90ms
memory: 33692kb
input:
100 10 300000 15 99 TRIGGER TRIGGER: REPLACE 0 2 TRIGGER TRIGGER: REPLACE 1 9 TRIGGER TRIGGER: REPLACE 0 7 TRIGGER TRIGGER: REPLACE 0 9 TRIGGER TRIGGER: REPLACE 1 4 REPLACE 0 6 TRIGGER TRIGGER: REPLACE 1 5 REPLACE 0 4 TRIGGER TRIGGER: REPLACE 1 8 REPLACE 0 1 TRIGGER TRIGGER: REPLACE 0 3 TRIGGER REPL...
output:
Robot 0 replaces a line of command of Robot 15. Robot 99 replaces a line of command of Robot 21. Robot 91 replaces a line of command of Robot 53. Robot 45 replaces a line of command of Robot 52. Robot 52 replaces a line of command of Robot 70. Robot 70 replaces a line of command of Robot 15. Robot 1...
result:
ok 300000 lines
Test #30:
score: 0
Accepted
time: 77ms
memory: 31996kb
input:
100 10 300000 74 88 REPLACE 1 1 TRIGGER TRIGGER: REPLACE 1 10 TRIGGER TRIGGER: REPLACE 0 3 TRIGGER TRIGGER: REPLACE 1 6 TRIGGER TRIGGER: REPLACE 0 5 TRIGGER REPLACE: REPLACE 1 10 REPLACE 0 7 TRIGGER TRIGGER: REPLACE 0 5 TRIGGER TRIGGER: REPLACE 1 6 REPLACE 0 3 TRIGGER TRIGGER: REPLACE 0 3 TRIGGER RE...
output:
Robot 0 replaces a line of command of Robot 88. Robot 88 replaces a line of command of Robot 53. Robot 99 replaces a line of command of Robot 43. Robot 43 replaces a line of command of Robot 94. Robot 94 replaces a line of command of Robot 50. Robot 92 replaces a line of command of Robot 0. Robot 0 ...
result:
ok 300000 lines
Test #31:
score: 0
Accepted
time: 71ms
memory: 32780kb
input:
100 10 300000 38 97 TRIGGER REPLACE: REPLACE 1 2 TRIGGER TRIGGER: REPLACE 1 6 TRIGGER REPLACE: REPLACE 0 9 TRIGGER TRIGGER: REPLACE 0 8 TRIGGER TRIGGER: REPLACE 1 3 TRIGGER TRIGGER: MIRROR 0 6 REPLACE 1 4 TRIGGER TRIGGER: REPLACE 1 4 TRIGGER TRIGGER: REPLACE 0 7 TRIGGER TRIGGER: MIRROR 1 4 TRIGGER R...
output:
Robot 0 replaces a line of command of Robot 97. Robot 97 replaces a line of command of Robot 28. Robot 28 replaces a line of command of Robot 0. Robot 90 replaces a line of command of Robot 12. Robot 12 replaces a line of command of Robot 5. Robot 33 replaces a line of command of Robot 99. Robot 99 ...
result:
ok 300000 lines
Test #32:
score: 0
Accepted
time: 141ms
memory: 37628kb
input:
100 10 300000 26 59 REPLACE 1 4 TRIGGER TRIGGER: REPLACE 0 8 REPLACE 1 5 TRIGGER REPLACE: REPLACE 0 1 TRIGGER REPLACE: REPLACE 1 1 TRIGGER REPLACE: REPLACE 1 9 TRIGGER TRIGGER: REPLACE 1 1 REPLACE 1 10 REPLACE 1 5 REPLACE 1 10 TRIGGER REPLACE: REPLACE 1 1 TRIGGER REPLACE: REPLACE 0 8 TRIGGER REPLACE...
output:
Robot 0 replaces a line of command of Robot 59. Robot 59 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 24. Robot 24 replaces a line of command of Robot 87. Robot 96 replaces a line of command of Robot 59. Robot 80 replaces a line of command of Robot 72. Robot 90 ...
result:
ok 300000 lines
Test #33:
score: 0
Accepted
time: 121ms
memory: 37140kb
input:
100 10 300000 51 74 REPLACE 0 4 REPLACE 0 2 REPLACE 0 3 TRIGGER REPLACE: REPLACE 1 9 TRIGGER REPLACE: REPLACE 0 8 TRIGGER REPLACE: REPLACE 0 2 REPLACE 1 1 TRIGGER REPLACE: REPLACE 1 6 TRIGGER TRIGGER: REPLACE 1 4 TRIGGER REPLACE: REPLACE 1 1 REPLACE 0 9 TRIGGER REPLACE: REPLACE 1 8 REPLACE 1 1 REPLA...
output:
Robot 0 replaces a line of command of Robot 51. Robot 74 replaces a line of command of Robot 72. Robot 72 replaces a line of command of Robot 92. Robot 31 replaces a line of command of Robot 33. Robot 34 replaces a line of command of Robot 12. Robot 16 replaces a line of command of Robot 99. Robot 9...
result:
ok 300000 lines
Test #34:
score: 0
Accepted
time: 29ms
memory: 11728kb
input:
100 10 300000 10 71 REPLACE 1 8 REPLACE 1 8 SLACKOFF SWAP 1 2 8 ACTIVATE 0 SWAP 0 1 8 ACTIVATE 1 TRIGGER SWAP: SLACKOFF MIRROR 0 5 SWAP 1 6 1 MOVE 1 27 SLACKOFF 48 60 ACTIVATE 1 ACTIVATE 1 REPLACE 0 7 ACTIVATE 0 MOVE 1 29 ACTIVATE 0 MIRROR 1 4 ACTIVATE 0 SWAP 1 2 5 SWAP 0 6 1 TRIGGER REPLACE: SLACKO...
output:
Robot 0 replaces a line of command of Robot 71. Robot 71 moves its right hand towards Robot 46. Robot 46 modifies a line of command of Robot 51. Robot 0 swaps a line of command with Robot 71. Robot 0 activates Robot 10. Robot 10 slacks off. Robot 10 slacks off. Robot 10 modifies a line of command of...
result:
ok 300000 lines
Test #35:
score: 0
Accepted
time: 128ms
memory: 36136kb
input:
100 10 300000 19 94 REPLACE 0 6 REPLACE 0 4 REPLACE 0 6 TRIGGER REPLACE: REPLACE 0 4 REPLACE 1 4 REPLACE 0 4 REPLACE 0 10 TRIGGER REPLACE: REPLACE 0 8 TRIGGER REPLACE: REPLACE 1 9 TRIGGER REPLACE: REPLACE 1 9 TRIGGER REPLACE: REPLACE 1 8 REPLACE 0 3 TRIGGER REPLACE: REPLACE 0 2 TRIGGER REPLACE: REPL...
output:
Robot 0 replaces a line of command of Robot 19. Robot 94 replaces a line of command of Robot 84. Robot 84 replaces a line of command of Robot 3. Robot 3 replaces a line of command of Robot 28. Robot 61 replaces a line of command of Robot 20. Robot 20 replaces a line of command of Robot 38. Robot 66 ...
result:
ok 300000 lines
Test #36:
score: 0
Accepted
time: 130ms
memory: 36924kb
input:
100 10 300000 37 10 TRIGGER REPLACE: REPLACE 1 5 TRIGGER REPLACE: REPLACE 0 3 REPLACE 1 2 TRIGGER REPLACE: REPLACE 1 4 REPLACE 0 2 TRIGGER TRIGGER: REPLACE 0 7 REPLACE 1 8 REPLACE 0 5 REPLACE 0 6 REPLACE 0 9 TRIGGER REPLACE: REPLACE 1 8 REPLACE 0 7 TRIGGER TRIGGER: REPLACE 0 10 REPLACE 1 3 TRIGGER T...
output:
Robot 0 replaces a line of command of Robot 37. Robot 10 replaces a line of command of Robot 84. Robot 68 replaces a line of command of Robot 75. Robot 75 replaces a line of command of Robot 22. Robot 66 replaces a line of command of Robot 9. Robot 37 replaces a line of command of Robot 14. Robot 14...
result:
ok 300000 lines
Test #37:
score: 0
Accepted
time: 140ms
memory: 36272kb
input:
100 10 300000 33 85 TRIGGER REPLACE: REPLACE 0 2 TRIGGER REPLACE: REPLACE 0 10 REPLACE 0 2 TRIGGER REPLACE: REPLACE 1 1 REPLACE 0 4 TRIGGER REPLACE: REPLACE 0 2 REPLACE 0 4 REPLACE 1 8 TRIGGER REPLACE: REPLACE 1 8 TRIGGER REPLACE: REPLACE 1 4 REPLACE 0 5 TRIGGER REPLACE: REPLACE 0 8 TRIGGER REPLACE:...
output:
Robot 0 replaces a line of command of Robot 33. Robot 85 replaces a line of command of Robot 31. Robot 19 replaces a line of command of Robot 95. Robot 95 replaces a line of command of Robot 38. Robot 38 replaces a line of command of Robot 15. Robot 60 replaces a line of command of Robot 65. Robot 9...
result:
ok 300000 lines
Test #38:
score: 0
Accepted
time: 57ms
memory: 17380kb
input:
2 10 300000 0 0 TRIGGER TRIGGER: REPLACE 0 2 REPLACE 0 3 TRIGGER REPLACE: REPLACE 0 5 REPLACE 0 9 REPLACE 0 1 REPLACE 1 8 REPLACE 1 1 REPLACE 1 4 TRIGGER REPLACE: REPLACE 1 7 REPLACE 0 6 TRIGGER TRIGGER: REPLACE 1 2 REPLACE 1 8 TRIGGER REPLACE: REPLACE 0 2 REPLACE 1 6 REPLACE 1 7 TRIGGER REPLACE: RE...
output:
Robot 0 replaces a line of command of Robot 0. Robot 0 replaces a line of command of Robot 0. Robot 1 replaces a line of command of Robot 0. Robot 0 replaces a line of command of Robot 0. Robot 1 replaces a line of command of Robot 0. Robot 0 replaces a line of command of Robot 0. Robot 1 replaces a...
result:
ok 300000 lines
Test #39:
score: 0
Accepted
time: 41ms
memory: 16504kb
input:
2 10 300000 1 1 TRIGGER TRIGGER: REPLACE 0 2 REPLACE 1 9 REPLACE 0 8 REPLACE 0 8 REPLACE 0 6 TRIGGER TRIGGER: REPLACE 1 10 TRIGGER TRIGGER: REPLACE 1 4 TRIGGER REPLACE: REPLACE 1 1 REPLACE 0 9 REPLACE 1 7 REPLACE 1 4 TRIGGER REPLACE: REPLACE 1 4 REPLACE 0 4 REPLACE 0 4 REPLACE 0 4 REPLACE 1 8 REPLAC...
output:
Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a...
result:
ok 300000 lines
Test #40:
score: 0
Accepted
time: 40ms
memory: 16668kb
input:
2 10 300000 1 1 REPLACE 0 10 REPLACE 1 10 REPLACE 1 2 REPLACE 1 1 TRIGGER REPLACE: REPLACE 0 9 REPLACE 0 5 REPLACE 0 8 TRIGGER REPLACE: REPLACE 1 7 TRIGGER REPLACE: REPLACE 0 7 REPLACE 1 9 TRIGGER REPLACE: REPLACE 0 9 REPLACE 1 6 REPLACE 0 5 REPLACE 0 5 TRIGGER REPLACE: REPLACE 1 2 TRIGGER REPLACE: ...
output:
Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a...
result:
ok 300000 lines
Test #41:
score: 0
Accepted
time: 121ms
memory: 29852kb
input:
2 10 300000 1 1 TRIGGER REPLACE: REPLACE 0 9 REPLACE 0 10 TRIGGER REPLACE: REPLACE 1 9 REPLACE 1 1 REPLACE 0 1 TRIGGER REPLACE: REPLACE 0 8 REPLACE 1 1 REPLACE 1 7 TRIGGER TRIGGER: REPLACE 0 8 REPLACE 0 4 TRIGGER REPLACE: REPLACE 1 3 TRIGGER REPLACE: REPLACE 1 9 TRIGGER TRIGGER: REPLACE 1 7 REPLACE ...
output:
Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a...
result:
ok 300000 lines
Test #42:
score: 0
Accepted
time: 128ms
memory: 36612kb
input:
2 10 300000 1 1 REPLACE 0 6 TRIGGER TRIGGER: REPLACE 1 1 REPLACE 1 9 TRIGGER REPLACE: REPLACE 0 9 REPLACE 0 10 TRIGGER REPLACE: REPLACE 1 6 TRIGGER REPLACE: REPLACE 1 7 TRIGGER REPLACE: REPLACE 0 3 REPLACE 0 9 REPLACE 0 2 TRIGGER TRIGGER: REPLACE 0 3 REPLACE 0 6 REPLACE 0 7 REPLACE 0 10 TRIGGER REPL...
output:
Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a line of command of Robot 1. Robot 1 replaces a line of command of Robot 1. Robot 0 replaces a...
result:
ok 300000 lines
Test #43:
score: 0
Accepted
time: 24ms
memory: 13680kb
input:
15 10 300000 8 12 MIRROR 0 4 MIRROR 1 8 MIRROR 1 9 SWAP 1 10 8 MIRROR 1 1 MIRROR 1 3 SWAP 0 8 10 MOVE 1 10 TRIGGER REPLACE: REPLACE 1 2 REPLACE 1 4 REPLACE 0 1 REPLACE 1 6 TRIGGER REPLACE: REPLACE 0 3 TRIGGER TRIGGER: REPLACE 1 6 REPLACE 0 10 REPLACE 0 5 REPLACE 0 8 REPLACE 1 10 REPLACE 0 8 REPLACE ...
output:
Robot 0 modifies a line of command of Robot 8. Robot 0 modifies a line of command of Robot 12. Robot 0 modifies a line of command of Robot 12. Robot 0 swaps a line of command with Robot 12. Robot 0 modifies a line of command of Robot 12. Robot 0 modifies a line of command of Robot 12. Robot 0 swaps ...
result:
ok 300000 lines
Test #44:
score: 0
Accepted
time: 54ms
memory: 20784kb
input:
99 10 300000 42 3 MIRROR 1 10 SWAP 0 10 8 MIRROR 1 10 REPLACE 1 9 REPLACE 0 7 REPLACE 0 8 REPLACE 1 8 REPLACE 0 10 REPLACE 1 8 REPLACE 0 10 REPLACE 0 2 REPLACE 1 2 REPLACE 0 5 REPLACE 0 2 REPLACE 1 1 REPLACE 1 5 REPLACE 0 3 REPLACE 1 9 REPLACE 0 3 REPLACE 0 9 REPLACE 0 5 REPLACE 0 7 REPLACE 0 9 REPL...
output:
Robot 0 modifies a line of command of Robot 3. Robot 0 swaps a line of command with Robot 42. Robot 0 modifies a line of command of Robot 3. Robot 0 replaces a line of command of Robot 3. Robot 0 replaces a line of command of Robot 3. Robot 0 modifies a line of command of Robot 42. Robot 0 slacks of...
result:
ok 300000 lines
Test #45:
score: 0
Accepted
time: 22ms
memory: 16692kb
input:
100 10 300000 88 61 MIRROR 1 8 SWAP 1 9 6 ACTIVATE 0 SWAP 1 3 1 SWAP 0 6 8 MIRROR 0 9 MIRROR 0 10 SWAP 1 2 4 SWAP 0 3 2 MIRROR 0 2 89 7 REPLACE 1 2 MOVE 0 85 SLACKOFF MIRROR 0 4 ACTIVATE 1 ACTIVATE 1 SLACKOFF MIRROR 1 6 MOVE 0 94 ACTIVATE 0 SLACKOFF 73 38 MOVE 1 61 SWAP 0 5 4 MOVE 1 87 MIRROR 1 3 MO...
output:
Robot 0 modifies a line of command of Robot 61. Robot 0 swaps a line of command with Robot 61. Robot 0 activates Robot 88. Robot 88 swaps a line of command with Robot 89. Robot 88 activates Robot 89. Robot 89 replaces a line of command of Robot 58. Robot 89 slacks off. Robot 58 moves its right hand ...
result:
ok 300000 lines
Test #46:
score: 0
Accepted
time: 42ms
memory: 29252kb
input:
37 10 300000 0 8 MIRROR 0 2 MIRROR 1 5 MIRROR 1 2 REPLACE 1 6 REPLACE 0 8 REPLACE 1 8 TRIGGER REPLACE: REPLACE 0 7 REPLACE 1 3 TRIGGER REPLACE: REPLACE 0 4 TRIGGER TRIGGER: REPLACE 0 8 REPLACE 0 7 REPLACE 0 6 REPLACE 1 8 REPLACE 1 8 REPLACE 0 8 TRIGGER REPLACE: REPLACE 0 7 REPLACE 0 1 REPLACE 0 4 RE...
output:
Robot 0 modifies a line of command of Robot 0. Robot 0 modifies a line of command of Robot 0. Robot 0 modifies a line of command of Robot 8. Robot 0 replaces a line of command of Robot 8. Robot 8 replaces a line of command of Robot 7. Robot 0 modifies a line of command of Robot 0. Robot 0 replaces a...
result:
ok 300000 lines
Test #47:
score: 0
Accepted
time: 688ms
memory: 69444kb
input:
100 10 300000 0 0 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLACE 0 1 REPLAC...
output:
Robot 0 replaces a line of command of Robot 0. Robot 0 replaces a line of command of Robot 0. Robot 0 replaces a line of command of Robot 0. Robot 0 replaces a line of command of Robot 0. Robot 0 replaces a line of command of Robot 0. Robot 0 replaces a line of command of Robot 0. Robot 0 replaces a...
result:
ok 300000 lines
Test #48:
score: 0
Accepted
time: 18ms
memory: 4000kb
input:
2 2 300000 0 0 MOVE 1 1 MOVE 0 1 0 1 TRIGGER MOVE: MOVE 0 1 SLACKOFF
output:
Robot 0 moves its right hand towards Robot 1. Robot 1 moves its left hand towards Robot 1. Robot 0 moves its left hand towards Robot 1. Robot 1 moves its left hand towards Robot 0. Robot 1 slacks off. Robot 0 moves its right hand towards Robot 0. Robot 0 moves its left hand towards Robot 0. Robot 1 ...
result:
ok 300000 lines
Test #49:
score: 0
Accepted
time: 20ms
memory: 4024kb
input:
2 2 300000 0 1 ACTIVATE 1 SLACKOFF 0 1 SWAP 0 2 2 MIRROR 0 1
output:
Robot 0 activates Robot 1. Robot 1 swaps a line of command with Robot 0. Robot 1 slacks off. Robot 0 modifies a line of command of Robot 0. Robot 1 swaps a line of command with Robot 0. Robot 1 modifies a line of command of Robot 0. Robot 0 activates Robot 1. Robot 1 swaps a line of command with Rob...
result:
ok 300000 lines
Test #50:
score: 0
Accepted
time: 23ms
memory: 6028kb
input:
3 2 300000 1 2 ACTIVATE 0 ACTIVATE 0 2 1 SWAP 0 2 2 TRIGGER ACTIVATE: REPLACE 0 2 SLACKOFF 0 1 TRIGGER MIRROR: SLACKOFF SLACKOFF
output:
Robot 0 activates Robot 1. Robot 1 swaps a line of command with Robot 2. Robot 1 slacks off. Robot 2 replaces a line of command of Robot 0. Robot 0 slacks off. Robot 1 swaps a line of command with Robot 2. Robot 2 slacks off. Robot 0 activates Robot 1. Robot 1 swaps a line of command with Robot 2. R...
result:
ok 300000 lines
Test #51:
score: 0
Accepted
time: 26ms
memory: 3752kb
input:
3 2 300000 0 1 SLACKOFF TRIGGER MOVE: SLACKOFF 1 2 TRIGGER TRIGGER: SLACKOFF TRIGGER SLACKOFF: MOVE 0 1 2 0 TRIGGER SLACKOFF: MOVE 1 2 TRIGGER TRIGGER: MOVE 1 1
output:
Robot 0 slacks off. Robot 1 moves its left hand towards Robot 2. Robot 2 moves its right hand towards Robot 1. Robot 1 slacks off. Robot 2 moves its right hand towards Robot 0. Robot 0 slacks off. Robot 1 slacks off. Robot 2 moves its right hand towards Robot 2. Robot 0 slacks off. Robot 1 moves its...
result:
ok 300000 lines
Test #52:
score: 0
Accepted
time: 30ms
memory: 13460kb
input:
100 10 300000 34 41 SWAP 0 4 5 SWAP 1 1 2 MIRROR 1 4 MOVE 0 24 SWAP 0 2 1 SWAP 1 6 7 SWAP 1 9 5 MIRROR 0 9 REPLACE 0 9 REPLACE 1 3 MIRROR 0 1 MIRROR 1 3 69 27 MOVE 1 79 MOVE 1 32 SWAP 0 1 7 MOVE 1 82 MIRROR 0 3 REPLACE 0 8 MIRROR 1 3 MIRROR 1 1 SWAP 1 5 8 SWAP 1 5 3 MOVE 0 34 60 64 MOVE 0 20 MIRROR ...
output:
Robot 0 swaps a line of command with Robot 34. Robot 41 replaces a line of command of Robot 94. Robot 0 swaps a line of command with Robot 41. Robot 41 replaces a line of command of Robot 94. Robot 0 modifies a line of command of Robot 41. Robot 0 moves its left hand towards Robot 58. Robot 0 replac...
result:
ok 300000 lines
Test #53:
score: 0
Accepted
time: 39ms
memory: 17776kb
input:
6 10 300000 1 5 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 1 1 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 REPLACE 0 3 RE...
output:
Robot 0 activates Robot 5. Robot 5 activates Robot 4. Robot 4 activates Robot 3. Robot 3 activates Robot 2. Robot 2 modifies a line of command of Robot 1. Robot 2 modifies a line of command of Robot 1. Robot 2 modifies a line of command of Robot 1. Robot 2 modifies a line of command of Robot 1. Robo...
result:
ok 300000 lines
Test #54:
score: 0
Accepted
time: 38ms
memory: 13576kb
input:
6 10 300000 1 5 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 ACTIVATE 1 1 1 SWAP 0 10 1 SWAP 0 9 2 ACTIVATE 0 SLACKOFF SLACKOFF SLACKOFF SLACKOFF SLACKOFF SWAP 0 10 2 REPLACE 0 10 REPLACE 0 2 REPLACE 0 2 REPLACE 0 2 REPLACE 0 2 REPLACE 0 2 REPLAC...
output:
Robot 0 activates Robot 5. Robot 5 activates Robot 4. Robot 4 activates Robot 3. Robot 3 activates Robot 2. Robot 2 modifies a line of command of Robot 1. Robot 2 modifies a line of command of Robot 1. Robot 2 modifies a line of command of Robot 1. Robot 2 modifies a line of command of Robot 1. Robo...
result:
ok 300000 lines
Test #55:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
2 1 1 0 1 REPLACE 0 1 TRIGGER SWAP: SLACKOFF 0 1 TRIGGER ACTIVATE: REPLACE 0 1 TRIGGER REPLACE: REPLACE 0 1 SLACKOFF
output:
Robot 0 replaces a line of command of Robot 0.
result:
ok single line: 'Robot 0 replaces a line of command of Robot 0.'
Test #56:
score: 0
Accepted
time: 33ms
memory: 20916kb
input:
100 10 300000 5 38 ACTIVATE 1 REPLACE 1 5 MIRROR 1 1 MIRROR 1 2 SWAP 0 8 7 TRIGGER REPLACE: SWAP 0 9 7 TRIGGER SLACKOFF: MIRROR 1 6 SWAP 1 7 8 SLACKOFF TRIGGER MIRROR: SLACKOFF ACTIVATE 0 0 97 ACTIVATE 0 SWAP 0 2 7 MOVE 0 20 SLACKOFF ACTIVATE 1 ACTIVATE 1 MIRROR 0 7 REPLACE 0 4 SWAP 1 6 4 MIRROR 1 6...
output:
Robot 0 activates Robot 38. Robot 38 moves its right hand towards Robot 56. Robot 38 moves its left hand towards Robot 14. Robot 38 modifies a line of command of Robot 56. Robot 56 slacks off. Robot 38 swaps a line of command with Robot 56. Robot 38 slacks off. Robot 38 activates Robot 56. Robot 56 ...
result:
ok 300000 lines
Test #57:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
2 2 1 0 1 TRIGGER MIRROR: SLACKOFF ACTIVATE 1 0 1 SLACKOFF TRIGGER ACTIVATE: REPLACE 0 1 TRIGGER REPLACE: REPLACE 0 1 SLACKOFF
output:
Robot 0 activates Robot 1.
result:
ok single line: 'Robot 0 activates Robot 1.'
Test #58:
score: 0
Accepted
time: 1ms
memory: 4000kb
input:
2 2 2 0 1 TRIGGER MIRROR: SLACKOFF ACTIVATE 1 0 1 SLACKOFF TRIGGER ACTIVATE: REPLACE 0 1 TRIGGER REPLACE: REPLACE 0 1 SLACKOFF
output:
Robot 0 activates Robot 1. Robot 1 slacks off.
result:
ok 2 lines
Test #59:
score: 0
Accepted
time: 17ms
memory: 19860kb
input:
100 10 300000 16 35 MOVE 1 49 SWAP 0 7 9 MIRROR 1 4 REPLACE 1 6 ACTIVATE 1 SWAP 0 6 4 MOVE 0 88 ACTIVATE 0 ACTIVATE 0 SLACKOFF SLACKOFF 77 32 REPLACE 0 6 SLACKOFF TRIGGER SLACKOFF: SWAP 1 4 5 MIRROR 1 10 SLACKOFF MOVE 1 94 REPLACE 0 2 SWAP 1 9 10 TRIGGER SWAP: MOVE 0 34 MIRROR 1 4 MOVE 0 23 TRIGGER ...
output:
Robot 0 moves its right hand towards Robot 84. Robot 0 swaps a line of command with Robot 16. Robot 0 modifies a line of command of Robot 84. Robot 0 replaces a line of command of Robot 84. Robot 0 swaps a line of command with Robot 16. Robot 0 moves its left hand towards Robot 4. Robot 0 activates ...
result:
ok 300000 lines
Test #60:
score: 0
Accepted
time: 25ms
memory: 17900kb
input:
100 10 300000 11 73 REPLACE 0 8 MIRROR 0 3 REPLACE 0 1 MIRROR 1 9 ACTIVATE 0 REPLACE 1 8 SWAP 1 1 3 TRIGGER SLACKOFF: MOVE 0 32 TRIGGER TRIGGER: MOVE 0 81 SWAP 0 3 6 MOVE 0 16 SLACKOFF SWAP 0 7 5 8 64 SWAP 1 3 3 SWAP 1 10 5 SLACKOFF REPLACE 0 8 REPLACE 1 9 ACTIVATE 0 MOVE 1 60 ACTIVATE 1 MIRROR 1 6 ...
output:
Robot 0 replaces a line of command of Robot 11. Robot 0 replaces a line of command of Robot 11. Robot 0 activates Robot 11. Robot 11 modifies a line of command of Robot 76. Robot 11 moves its left hand towards Robot 85. Robot 11 slacks off. Robot 11 swaps a line of command with Robot 76. Robot 11 ac...
result:
ok 300000 lines
Test #61:
score: 0
Accepted
time: 24ms
memory: 19964kb
input:
100 10 300000 16 28 TRIGGER REPLACE: REPLACE 1 1 SLACKOFF REPLACE 0 7 SWAP 0 4 7 ACTIVATE 1 REPLACE 0 9 SLACKOFF SWAP 1 1 8 TRIGGER REPLACE: REPLACE 0 4 SLACKOFF MOVE 1 54 REPLACE 1 10 MIRROR 1 5 MOVE 0 43 MOVE 1 56 31 26 TRIGGER MOVE: MOVE 0 35 MOVE 0 96 TRIGGER SLACKOFF: MIRROR 0 8 MOVE 1 86 MIRRO...
output:
Robot 0 replaces a line of command of Robot 16. Robot 0 activates Robot 28. Robot 28 replaces a line of command of Robot 66. Robot 28 activates Robot 8. Robot 8 moves its right hand towards Robot 50. Robot 8 moves its left hand towards Robot 60. Robot 8 modifies a line of command of Robot 50. Robot ...
result:
ok 300000 lines