Submission #2121593


Source Code Expand

Copy
k,s=map(int,input().split())
count=0
for i in range(k+1):
  for j in range(k+1-i):
    if(s-i-j>=0):
      count+=1
print(count)

Submission Info

Submission Time
Task B - Sum of Three Integers
User shomu36
Language Python3 (3.4.3)
Score 0
Code Size 134 Byte
Status
Exec Time 582 ms
Memory 2940 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
All 0 / 200 sample_01.txt, sample_02.txt, subtask_1_01.txt, subtask_1_02.txt, subtask_1_03.txt, subtask_1_04.txt, subtask_1_05.txt, subtask_1_06.txt, subtask_1_07.txt, subtask_1_08.txt
Case Name Status Exec Time Memory
sample_01.txt 17 ms 2940 KB
sample_02.txt 17 ms 2940 KB
subtask_1_01.txt 578 ms 2940 KB
subtask_1_02.txt 85 ms 2940 KB
subtask_1_03.txt 582 ms 2940 KB
subtask_1_04.txt 145 ms 2940 KB
subtask_1_05.txt 18 ms 2940 KB
subtask_1_06.txt 38 ms 2940 KB
subtask_1_07.txt 398 ms 2940 KB
subtask_1_08.txt 33 ms 2940 KB