結果

問題 No.1472 作為の和
ユーザー kimiyukikimiyuki
提出日時 2021-04-09 22:37:55
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 383 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-09-07 12:10:37
合計ジャッジ時間 1,125 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,824 KB
testcase_01 AC 15 ms
7,752 KB
testcase_02 AC 14 ms
7,960 KB
testcase_03 AC 14 ms
7,904 KB
testcase_04 AC 15 ms
7,748 KB
testcase_05 AC 14 ms
7,880 KB
testcase_06 AC 15 ms
7,776 KB
testcase_07 AC 15 ms
7,944 KB
testcase_08 AC 15 ms
7,792 KB
testcase_09 AC 15 ms
7,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
# from typing import *


# def solve(N: int) -> Tuple[int, int]:
def solve(n):
    if n == 0:
        return 9, 1
    else:
        return 8 + 9 * 2 * n, 1


# generated by oj-template v4.7.2 (https://github.com/online-judge-tools/template-generator)
def main():
    N = int(input())
    c, d = solve(N)
    print(c, d)


if __name__ == '__main__':
    main()
0