Submission #1794656


Source Code Expand

#include <stdio.h>                                                                                                                                         
                                                                                                                                                           
int main(void)                                                                                                                                             
{                                                                                                                                                          
        int x, y, z, ans;                                                                                                                                  
                                                                                                                                                           
        scanf("%d %d %d", &x, &y, &z);                                                                                                                     
        x -= z;                                                                                                                                            
        ans = x / (y + z);                                                                                                                                 
        printf("%d\n", ans);                                                                                                                               
        return 0;                                                                                                                                          
} 

Submission Info

Submission Time
Task B - ISU
User zhencaimei
Language C (GCC 5.4.1)
Score 200
Code Size 1729 Byte
Status AC
Exec Time 1 ms
Memory 128 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:7:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d %d %d", &x, &y, &z);                                                                                                                     
         ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 5
AC × 17
Set Name Test Cases
Sample example_0, example_1, example_2, example_3, example_4
All example_0, example_1, example_2, example_3, example_4, rand_0, rand_1, rand_10, rand_11, rand_2, rand_3, rand_4, rand_5, rand_6, rand_7, rand_8, rand_9
Case Name Status Exec Time Memory
example_0 AC 1 ms 128 KB
example_1 AC 1 ms 128 KB
example_2 AC 1 ms 128 KB
example_3 AC 1 ms 128 KB
example_4 AC 1 ms 128 KB
rand_0 AC 1 ms 128 KB
rand_1 AC 1 ms 128 KB
rand_10 AC 1 ms 128 KB
rand_11 AC 1 ms 128 KB
rand_2 AC 1 ms 128 KB
rand_3 AC 1 ms 128 KB
rand_4 AC 1 ms 128 KB
rand_5 AC 1 ms 128 KB
rand_6 AC 1 ms 128 KB
rand_7 AC 1 ms 128 KB
rand_8 AC 1 ms 128 KB
rand_9 AC 1 ms 128 KB