結果

問題 No.3043 yukicoderへようこそ!
ユーザー trineutrontrineutron
提出日時 2021-01-02 07:13:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 760 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-04-20 02:07:05
合計ジャッジ時間 716 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 28 ms
10,752 KB
testcase_02 AC 27 ms
10,496 KB
testcase_03 AC 27 ms
10,752 KB
testcase_04 AC 26 ms
10,752 KB
testcase_05 AC 26 ms
10,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

try:
    n = list(map(int, input().split()))
except:
    print('Hello World!')
    exit()
if len(n) == 2:
    s = input()
    print(sum(n), s)
    exit()
elif len(n) == 1:
    n = n[0]
    try:
        a = list(map(int, input().split()))
        if len(a) == n:
            print(sum(a))
        else:
            b = [int(input()) for i in range(n - 1)]
            print(sum(a) + sum(b))
    except:
        if n != 51:
            print(n * (n + 1) // 2)
            exit()
        else:
            for i in range(1, 52):
                s = ''
                if i % 3 == 0:
                    s += 'Fizz'
                if i % 5 == 0:
                    s += 'Buzz'
                if s == '':
                    s += str(i)
                print(s)
0