結果

問題 No.883 ぬりえ
ユーザー vwxyzvwxyz
提出日時 2023-07-15 04:46:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 16,244 KB
最終ジャッジ日時 2023-10-14 19:18:44
合計ジャッジ時間 2,796 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,796 KB
testcase_01 AC 15 ms
7,900 KB
testcase_02 AC 15 ms
7,940 KB
testcase_03 AC 14 ms
7,848 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 14 ms
7,892 KB
testcase_08 AC 14 ms
7,828 KB
testcase_09 AC 15 ms
7,824 KB
testcase_10 AC 15 ms
7,792 KB
testcase_11 AC 15 ms
7,816 KB
testcase_12 AC 14 ms
7,740 KB
testcase_13 AC 15 ms
7,908 KB
testcase_14 WA -
testcase_15 AC 304 ms
16,244 KB
testcase_16 AC 86 ms
10,380 KB
testcase_17 AC 47 ms
9,284 KB
testcase_18 AC 15 ms
7,784 KB
testcase_19 WA -
testcase_20 AC 15 ms
7,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline=sys.stdin.readline

N,K=map(int,readline().split())
H=(N+K-1)//K
ans_lst=[["."]*H for h in range(H)]
for i in range(H):
    for j in range(i,i+K):
        if N:
            ans_lst[i][j%H]="#"
            N-=1
print(H)
for ans in ans_lst:
    print(*ans,sep="")
0