Submission #25981159


Source Code Expand

#include<stdio.h>
#include<string.h>


void main(){
  char s[3][16];
  char T[1024];
  int i;
  
  scanf("%s",s[0]);
  scanf("%s",s[1]);
  scanf("%s",s[2]);
  scanf("%s",T);
  
  for(i=0;i<strlen(T);i++){
    printf("%s",s[T[i]-'1']);
  }
  printf("\n");
  
}

Submission Info

Submission Time
Task B - Maritozzo
User yab
Language C (GCC 9.2.1)
Score 200
Code Size 278 Byte
Status AC
Exec Time 7 ms
Memory 1692 KiB

Compile Error

./Main.c: In function ‘main’:
./Main.c:10:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   10 |   scanf("%s",s[0]);
      |   ^~~~~~~~~~~~~~~~
./Main.c:11:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   11 |   scanf("%s",s[1]);
      |   ^~~~~~~~~~~~~~~~
./Main.c:12:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   12 |   scanf("%s",s[2]);
      |   ^~~~~~~~~~~~~~~~
./Main.c:13:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
   13 |   scanf("%s",T);
      |   ^~~~~~~~~~~~~

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 10
Set Name Test Cases
Sample example_00, example_01, example_02
All example_00, example_01, example_02, test_00, test_01, test_02, test_03, test_04, test_05, test_06
Case Name Status Exec Time Memory
example_00 AC 7 ms 1676 KiB
example_01 AC 2 ms 1632 KiB
example_02 AC 1 ms 1564 KiB
test_00 AC 1 ms 1628 KiB
test_01 AC 1 ms 1624 KiB
test_02 AC 1 ms 1620 KiB
test_03 AC 1 ms 1692 KiB
test_04 AC 1 ms 1544 KiB
test_05 AC 1 ms 1548 KiB
test_06 AC 1 ms 1568 KiB