結果

問題 No.991 N×Mマス計算(構築)
ユーザー tanon710tanon710
提出日時 2020-02-21 02:32:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 12,520 KB
最終ジャッジ日時 2024-04-17 06:40:51
合計ジャッジ時間 5,511 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
12,312 KB
testcase_01 AC 113 ms
12,308 KB
testcase_02 AC 107 ms
12,288 KB
testcase_03 AC 112 ms
12,324 KB
testcase_04 AC 110 ms
12,324 KB
testcase_05 AC 116 ms
12,520 KB
testcase_06 AC 110 ms
12,312 KB
testcase_07 AC 109 ms
12,320 KB
testcase_08 AC 109 ms
12,308 KB
testcase_09 AC 111 ms
12,316 KB
testcase_10 AC 112 ms
12,312 KB
testcase_11 AC 114 ms
12,232 KB
testcase_12 AC 109 ms
12,184 KB
testcase_13 AC 113 ms
12,500 KB
testcase_14 AC 108 ms
12,188 KB
testcase_15 AC 110 ms
12,316 KB
testcase_16 AC 112 ms
12,180 KB
testcase_17 AC 114 ms
12,300 KB
testcase_18 AC 110 ms
12,184 KB
testcase_19 AC 108 ms
12,304 KB
testcase_20 AC 109 ms
12,184 KB
testcase_21 AC 115 ms
12,308 KB
testcase_22 AC 111 ms
12,308 KB
testcase_23 AC 121 ms
12,444 KB
testcase_24 AC 111 ms
12,184 KB
testcase_25 AC 114 ms
12,184 KB
testcase_26 AC 107 ms
12,440 KB
testcase_27 AC 113 ms
12,180 KB
testcase_28 AC 122 ms
12,416 KB
testcase_29 AC 113 ms
12,180 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