Submission #1407097


Source Code Expand

Copy
#include <stdio.h>
int a[10001];
int main(){
  int n,i;
  scanf("%d",&n);
  for(i=0;i<n;i++)scanf("%d",&a[i]);
  for(i=n-1;n>=0;n-=2)printf("%d ",a[i]);
  i+=1;
  for(;i<n-2;i+=2)printf("%d ",a[i]);
  printf("%d",a[i]);
  return 0;
}

Submission Info

Submission Time
Task C - pushpush
User mayumini
Language C (GCC 5.4.1)
Score 0
Code Size 244 Byte
Status

Compile Error

./Main.c: In function ‘main’:
./Main.c:5:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&n);
   ^
./Main.c:6:19: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   for(i=0;i<n;i++)scanf("%d",&a[i]);
                   ^

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample1.txt, sample2.txt, sample3.txt, sample4.txt
All 0 / 300 even_0.txt, even_1.txt, even_2.txt, even_3.txt, odd_0.txt, odd_1.txt, odd_2.txt, odd_3.txt, sample1.txt, sample2.txt, sample3.txt, sample4.txt
Case Name Status Exec Time Memory
even_0.txt
even_1.txt
even_2.txt
even_3.txt
odd_0.txt
odd_1.txt
odd_2.txt
odd_3.txt
sample1.txt 0 ms 128 KB
sample2.txt 0 ms 128 KB
sample3.txt 0 ms 128 KB
sample4.txt 0 ms 128 KB