結果

問題 No.3043 yukicoderへようこそ!
ユーザー maspymaspy
提出日時 2020-03-22 14:10:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 627 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 11,032 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-08-26 03:45:17
合計ジャッジ時間 674 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 13 ms
7,924 KB
testcase_03 AC 15 ms
7,828 KB
testcase_04 RE -
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/ python3.8
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


def yuki9000(stdin):
    print('Hello World!')


def yuki480(stdin):
    N = int(stdin[0])
    print(N * (N + 1) // 2)


def yuki9001(stdin):
    A, B = map(int, stdin[0].split())
    S = stdin[1].rstrip().decode()
    print(A, B)
    print(S)


def main():
    stdin = readlines()
    n = len(stdin)
    if n == 1:
        S = stdin[0].rstrip()
        if S.isdigit():
            yuki480(stdin)
        else:
            yuki9000(stdin)
    if n == 2:
        yuki9001(stdin)


main()
0