結果

問題 No.991 N×Mマス計算(構築)
ユーザー tanon710tanon710
提出日時 2020-02-21 02:32:23
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 350 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 9,800 KB
最終ジャッジ日時 2023-07-30 04:48:29
合計ジャッジ時間 5,665 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
9,524 KB
testcase_01 AC 80 ms
9,588 KB
testcase_02 AC 81 ms
9,800 KB
testcase_03 AC 80 ms
9,668 KB
testcase_04 AC 80 ms
9,536 KB
testcase_05 AC 86 ms
9,792 KB
testcase_06 AC 81 ms
9,488 KB
testcase_07 AC 79 ms
9,512 KB
testcase_08 AC 79 ms
9,672 KB
testcase_09 AC 80 ms
9,680 KB
testcase_10 AC 80 ms
9,668 KB
testcase_11 AC 84 ms
9,516 KB
testcase_12 AC 81 ms
9,628 KB
testcase_13 AC 85 ms
9,584 KB
testcase_14 AC 80 ms
9,528 KB
testcase_15 AC 79 ms
9,628 KB
testcase_16 AC 84 ms
9,636 KB
testcase_17 AC 82 ms
9,696 KB
testcase_18 AC 85 ms
9,556 KB
testcase_19 AC 80 ms
9,740 KB
testcase_20 AC 80 ms
9,524 KB
testcase_21 AC 84 ms
9,560 KB
testcase_22 AC 83 ms
9,624 KB
testcase_23 AC 83 ms
9,512 KB
testcase_24 AC 80 ms
9,628 KB
testcase_25 AC 85 ms
9,660 KB
testcase_26 AC 82 ms
9,428 KB
testcase_27 AC 82 ms
9,528 KB
testcase_28 AC 88 ms
9,772 KB
testcase_29 AC 82 ms
9,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x=int(input())
n=10**5
m=x//n+1
k=10**9
y=(x-(n-x%n-1))%k
op='*'
arr1=[op]+[k]*(x//n)+[1]
arr2=[k]*(x%n)+[1]*(n-x%n-1)+[y]
print(n,m,k)
print(*arr1)
for i in range(n):
    print(arr2[i])
0