結果
| 問題 | No.1032 数数え |
| ユーザー |
futago0118
|
| 提出日時 | 2020-05-28 14:09:31 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
AC
|
| 実行時間 | 468 ms / 2,000 ms |
| コード長 | 467 bytes |
| 記録 | |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 30,280 KB |
| 最終ジャッジ日時 | 2024-10-13 04:08:51 |
| 合計ジャッジ時間 | 2,152 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
N,M = map(int,input().split())
num_list = list(map(int,input().split()))
num_list = sorted(num_list,reverse = True)
for i in range(1,M+1):
cnt = 0
if len(num_list) != 0:
if i != num_list[-1]:
print(i,0)
else:
while i == num_list[-1]:
num_list.pop()
cnt += 1
if len(num_list) == 0:
break
print(i,cnt)
else:
print(i,0)
futago0118