Submission #1518435


Source Code Expand

import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
gosa = 1.0 / 10**10
mod = 10**9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()


def main():
    n = I()
    x = I()
    return x*540 + (n-x)*525


print(main())

Submission Info

Submission Time
Task A - プレミアム会員
User iehn
Language Python (3.4.3)
Score 100
Code Size 645 Byte
Status AC
Exec Time 43 ms
Memory 5460 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 4
AC × 22
Set Name Test Cases
Sample subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt
All subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt, subtask1_random01.txt, subtask1_random02.txt, subtask1_random03.txt, subtask1_random04.txt, subtask1_random05.txt, subtask1_random06.txt, subtask1_random07.txt, subtask1_random08.txt, subtask1_random09.txt, subtask1_random10.txt, subtask1_random11.txt, subtask1_random12.txt, subtask1_random13.txt, subtask1_random14.txt, subtask1_random15.txt, subtask1_random16.txt, subtask1_random17.txt, subtask1_random18.txt
Case Name Status Exec Time Memory
subtask0_sample_01.txt AC 40 ms 5456 KB
subtask0_sample_02.txt AC 40 ms 5328 KB
subtask0_sample_03.txt AC 40 ms 5328 KB
subtask0_sample_04.txt AC 40 ms 5332 KB
subtask1_random01.txt AC 40 ms 5332 KB
subtask1_random02.txt AC 40 ms 5336 KB
subtask1_random03.txt AC 40 ms 5456 KB
subtask1_random04.txt AC 43 ms 5332 KB
subtask1_random05.txt AC 40 ms 5332 KB
subtask1_random06.txt AC 41 ms 5328 KB
subtask1_random07.txt AC 40 ms 5332 KB
subtask1_random08.txt AC 41 ms 5332 KB
subtask1_random09.txt AC 40 ms 5328 KB
subtask1_random10.txt AC 40 ms 5460 KB
subtask1_random11.txt AC 40 ms 5332 KB
subtask1_random12.txt AC 40 ms 5332 KB
subtask1_random13.txt AC 40 ms 5332 KB
subtask1_random14.txt AC 40 ms 5336 KB
subtask1_random15.txt AC 40 ms 5332 KB
subtask1_random16.txt AC 40 ms 5332 KB
subtask1_random17.txt AC 41 ms 5332 KB
subtask1_random18.txt AC 41 ms 5332 KB