Submission #1520794


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()
    r = [1,0]
    for _ in range(n):
        r = [r[1], r[0]+r[1]]

    return sum(r)

print(main())

Submission Info

Submission Time
Task A - 算盤の書
User iehn
Language Python (3.4.3)
Score 100
Code Size 691 Byte
Status AC
Exec Time 41 ms
Memory 5460 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 46
Set Name Test Cases
All 00_sample1, 00_sample2, 00_sample3, 10_testcase00, 10_testcase01, 10_testcase02, 10_testcase03, 10_testcase04, 10_testcase05, 10_testcase06, 10_testcase07, 10_testcase08, 10_testcase09, 10_testcase10, 10_testcase11, 10_testcase12, 10_testcase13, 10_testcase14, 10_testcase15, 10_testcase16, 10_testcase17, 10_testcase18, 10_testcase19, 10_testcase20, 10_testcase21, 10_testcase22, 10_testcase23, 10_testcase24, 10_testcase25, 10_testcase26, 10_testcase27, 10_testcase28, 10_testcase29, 10_testcase30, 10_testcase31, 10_testcase32, 10_testcase33, 10_testcase34, 10_testcase35, 10_testcase36, 10_testcase37, 10_testcase38, 10_testcase39, 10_testcase40, 10_testcase41, 10_testcase42
Case Name Status Exec Time Memory
00_sample1 AC 40 ms 5328 KB
00_sample2 AC 40 ms 5456 KB
00_sample3 AC 41 ms 5332 KB
10_testcase00 AC 40 ms 5328 KB
10_testcase01 AC 40 ms 5332 KB
10_testcase02 AC 40 ms 5460 KB
10_testcase03 AC 40 ms 5456 KB
10_testcase04 AC 40 ms 5332 KB
10_testcase05 AC 40 ms 5332 KB
10_testcase06 AC 40 ms 5456 KB
10_testcase07 AC 40 ms 5332 KB
10_testcase08 AC 40 ms 5332 KB
10_testcase09 AC 40 ms 5336 KB
10_testcase10 AC 41 ms 5328 KB
10_testcase11 AC 40 ms 5328 KB
10_testcase12 AC 40 ms 5332 KB
10_testcase13 AC 41 ms 5332 KB
10_testcase14 AC 40 ms 5460 KB
10_testcase15 AC 40 ms 5328 KB
10_testcase16 AC 41 ms 5328 KB
10_testcase17 AC 41 ms 5456 KB
10_testcase18 AC 40 ms 5328 KB
10_testcase19 AC 40 ms 5332 KB
10_testcase20 AC 40 ms 5456 KB
10_testcase21 AC 40 ms 5332 KB
10_testcase22 AC 41 ms 5456 KB
10_testcase23 AC 40 ms 5456 KB
10_testcase24 AC 41 ms 5328 KB
10_testcase25 AC 40 ms 5336 KB
10_testcase26 AC 40 ms 5336 KB
10_testcase27 AC 40 ms 5332 KB
10_testcase28 AC 40 ms 5328 KB
10_testcase29 AC 40 ms 5328 KB
10_testcase30 AC 41 ms 5332 KB
10_testcase31 AC 40 ms 5328 KB
10_testcase32 AC 40 ms 5336 KB
10_testcase33 AC 40 ms 5456 KB
10_testcase34 AC 40 ms 5460 KB
10_testcase35 AC 41 ms 5332 KB
10_testcase36 AC 41 ms 5460 KB
10_testcase37 AC 40 ms 5332 KB
10_testcase38 AC 41 ms 5332 KB
10_testcase39 AC 40 ms 5328 KB
10_testcase40 AC 41 ms 5332 KB
10_testcase41 AC 41 ms 5328 KB
10_testcase42 AC 40 ms 5332 KB