-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomatic_answer.gen.cpp
10 lines (10 loc) · 4.08 KB
/
automatic_answer.gen.cpp
1
2
3
4
5
6
7
8
9
10
#include <iostream>
using namespace std;
int ar[]={3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,8,7,5,4,2,1,9,8,6,5,3,2,0,9,7,6,4,3,1,0,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