結果
問題 | No.1619 Coccinellidae |
ユーザー |
![]() |
提出日時 | 2021-07-22 22:36:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 158 ms / 2,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 248 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 14,720 KB |
最終ジャッジ日時 | 2024-07-17 18:52:34 |
合計ジャッジ時間 | 3,010 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 16 |
ソースコード
N,M,K=map(int,input().split())ANS=[]big=N-1small=0for i in range(N):if K>=N-i-1:ANS.append(big)big-=1K-=N-i-1else:ANS.append(small)small+=1S=sum(ANS)for i in range(N):if ANS[i]==N-1:ANS[i]+=M-Sbreakfor ans in ANS:print(ans)