LA 3510

来源:互联网 发布:阿里云vps硬盘io 2017 编辑:程序博客网 时间:2024/04/28 08:36
#include<cstdio>#include<cstdlib>#include<cstring>#include<iostream>using namespace std;string a[14] = {"id", "id-", "rot", "rot-", "sym", "sym-", "bhsym", "bhsym-", "bvsym", "bvsym-", "div", "div-", "mix", "mix-"};int main(){    int T = 100;    freopen("data.in", "w", stdout);    printf("%d\n", T);    for (int i = 0; i < T; i++)    {        if (i) printf("\n");        printf("1024\n");        for (int j = 0; j < 5; j++)            printf("%s%c", a[rand() % 14].c_str(), (j == 4 ?  ' ' : '\n'));    }}


打表代码,正解留坑。

0 0
原创粉丝点击