結果

問題 No.796 well known
ユーザー 910_sendai910_sendai
提出日時 2019-03-17 17:22:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 9,100 KB
最終ジャッジ日時 2023-09-21 10:48:20
合計ジャッジ時間 2,312 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,868 KB
testcase_01 AC 15 ms
7,956 KB
testcase_02 AC 16 ms
7,796 KB
testcase_03 AC 15 ms
7,792 KB
testcase_04 AC 74 ms
8,884 KB
testcase_05 AC 96 ms
9,068 KB
testcase_06 AC 119 ms
9,044 KB
testcase_07 AC 35 ms
8,668 KB
testcase_08 AC 81 ms
9,100 KB
testcase_09 AC 59 ms
8,776 KB
testcase_10 AC 120 ms
9,040 KB
testcase_11 AC 27 ms
8,536 KB
testcase_12 AC 51 ms
8,484 KB
testcase_13 AC 95 ms
8,752 KB
testcase_14 AC 41 ms
8,516 KB
testcase_15 AC 52 ms
8,820 KB
testcase_16 AC 93 ms
9,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
arr = [1]*N
arr[0] = 3
pi = 1 
while not ((sum(arr) % 3 == 1) and (sum(arr) < 312456) and (pi % 3 == 0)):
    pi = 1
    for i in range(len(arr)):
        pi *= arr[i]
    arr[1] += 1 

for i in range(len(arr)):
    print(arr[i], end = ' ')
0