Actions
text_question #16384
openanswer_id= desc=- 给定一 grading_ru pod_templa name=寻找成对的
Status:
New
Priority:
Normal
Assignee:
-
Start date:
03/18/2025
Due date:
% Done:
0%
Estimated time:
name:
寻找成对的数据
score:
12.5
topic_type:
编程题
...
tag:
desc:
'- 给定一个列表,两个相邻的且相同的数字为一对。
- 比如给定的列表 [a,a,a,b,c,c,d,d,d] 中, a 有两对,第一个 a 和第二个 a 是一对,第二个 a 和第三个 a 也是一对,所以 a 有两对、c
有一对、d 有两对。求有哪些是成对的,已经有几对?
- 此时经过你编写的算法应该输出: {''a'': 2, ''c'': 1, ''d'': 2}
请把编写好的代码打包成zip文件上传答题'
is_delete:
false
answer_id:
16383
tags:
- 11052
grading_rules_id:
16342
pod_template_id:
11364
Actions