Submission #1997396


Source Code Expand

n, m = map(int, input().split())

res = 0
for i in range(n):
    if m-2 > 0:
        m -= 2
        res += 1
    else:
        break

print(res+m//4)

Submission Info

Submission Time
Task C - Scc Puzzle
User T_M
Language Python (3.4.3)
Score 0
Code Size 159 Byte
Status TLE
Exec Time 2107 ms
Memory 2940 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
AC × 2
AC × 5
TLE × 4
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 AC 17 ms 2940 KB
00_example_02.txt AC 20 ms 2940 KB
01.txt TLE 2104 ms 2940 KB
02.txt AC 17 ms 2940 KB
03.txt AC 17 ms 2940 KB
04.txt AC 17 ms 2940 KB
05.txt TLE 2107 ms 2940 KB
06.txt TLE 2104 ms 2940 KB
07.txt TLE 2104 ms 2940 KB