标程:【模板】文件输入输出

Andrewzdm 2020-03-28 12:39:39 2020-04-18 8:32:29 23 返回题目

#include <cstdio>
char a[1011];
int main() {
    freopen("copycat.in", "r", stdin);
    freopen("copycat.out", "w", stdout);
    int t;
    scanf("%d", &t);
    while (t--) 
    {
        scanf("%s", a);
        puts(a);
    }
    fclose(stdin);
    fclose(stdout);
    return 0;
}
{{ vote && vote.total.up }}

共 4 条回复

ixzhangbaop

ts

wurenchao

运行试试

wurenchao

cout << " *****" << endl; cout << " ****" << endl; cout << " ####....#." << endl; cout << " #..###.....##...." << endl; cout << " ###.......###### ### ###" << endl; cout << " ........... #...# #...#" << endl; cout << " ######### #.#.# #.#.#" << endl; cout << " ########## #.#.# #.#.#" << endl; cout << " ...#..###.... #...# #...#" << endl; cout << " ....***##..... ### ###" << endl; cout << " .... *****...." << endl; cout << " #### ####" << endl; cout << " ###### ######" << endl; cout << "##############################################################" << endl; cout << "#...#......#.##...#......#.##...#......#.##------------------#" << endl; cout << "###########################################------------------#" << endl; cout << "#..#....#....##..#....#....##..#....#....#####################" << endl; cout << "########################################## #----------#" << endl; cout << "#.....#......##.....#......##.....#......# #----------#" << endl; cout << "########################################## #----------#" << endl; cout << "#.#..#....#..##.#..#....#..##.#..#....#..# #----------#" << endl; cout << "########################################## ############" << endl; return 0;

cookiebus

Good job!