Submission #3732443


Source Code Expand

#include<stdio.h>
int main()
{
    long int s,c;
    scanf("%ld%ld",&s,&c);
    if(s>c/2)
        printf("%ld\n",c/2);
    else
    {
        printf("%ld",s+(c-(s*2))/4);
    }
    return 0;
}

Submission Info

Submission Time
Task C - Scc Puzzle
User vjudge4
Language Bash (GNU bash v4.3.11)
Score 0
Code Size 193 Byte
Status RE
Exec Time 2 ms
Memory 376 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
RE × 2
RE × 9
Set Name Test Cases
Sample 00_example_01.txt, 00_example_02.txt
All 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt
Case Name Status Exec Time Memory
00_example_01.txt RE 2 ms 376 KB
00_example_02.txt RE 2 ms 376 KB
01.txt RE 2 ms 376 KB
02.txt RE 2 ms 376 KB
03.txt RE 2 ms 376 KB
04.txt RE 2 ms 376 KB
05.txt RE 2 ms 376 KB
06.txt RE 2 ms 376 KB
07.txt RE 2 ms 376 KB