Submission #3419267


Source Code Expand

#include <cstdio>
#include <cmath>
#include <cstring>
#include <algorithm>
#include <iostream>
using namespace std;

long long n;
char a[1000][1000];
int main(){
	scanf("%lld",&n);
    for(int i = 0;i < n;i++){
        for(int j = 0;j <= n;j++){
            scanf("%c",&a[i][j]);
        }
    }
    for(int i = 0;i < n;i++){
        for(int j = n;j >= 0;j--){
            printf("%c",a[i][j]);
        }
    }
    printf("\n");
	return 0;
}

Submission Info

Submission Time
Task B - 回転
User luogu_bot2
Language C++ (GCC 5.4.1)
Score 0
Code Size 464 Byte
Status WA
Exec Time 1 ms
Memory 256 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:11:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld",&n);
                  ^
./Main.cpp:14:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
             scanf("%c",&a[i][j]);
                                 ^

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
WA × 11
Set Name Test Cases
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt
Case Name Status Exec Time Memory
000.txt WA 1 ms 256 KB
001.txt WA 1 ms 256 KB
002.txt WA 1 ms 256 KB
003.txt WA 1 ms 256 KB
004.txt WA 1 ms 256 KB
005.txt WA 1 ms 256 KB
006.txt WA 1 ms 256 KB
007.txt WA 1 ms 256 KB
008.txt WA 1 ms 256 KB
009.txt WA 1 ms 256 KB
010.txt WA 1 ms 256 KB