도전
목표는 이벤트 목록 (예 : 공감, 공감 등)을 취하는 가능한 가장 짧은 프로그램을 작성하고 사용자의 평판과 그가 얻은 특권을 반환하는 것입니다.
어떤 종류의 이벤트?
평판 순서대로 나열된 이벤트 차트는 다음과 같습니다.
-15 answer unaccepted
-10 answer unupvoted
-5 question unupvoted
-2 answer downvoted
-2 question downvoted
-2 unaccept answer
-1 downvote answer
+1 join website
+1 undownvote answer
+2 accept answer
+2 question undownvoted
+2 answer undownvoted
+5 question upvoted
+10 answer upvoted
+15 answer accepted
+100 association bonus
어떤 종류의 특권?
필요한 평판 순서대로 권한 목록이 있습니다.
1 create posts
5 participate in meta
10 remove new user restrictions
10 create wiki posts
15 vote up
15 flag posts
20 talk in chat
50 comment everywhere
75 set bounties
100 edit community wiki
100 create chat rooms
125 vote down
150 create tags
200 retag questions
250 view close votes
500 cast close and reopen votes
750 established user
1000 edit questions and answers
1000 create gallery chat rooms
1250 create tag synonyms
1500 approve tag wiki edits
2000 access to moderator tools
3500 protect questions
4000 trusted user
입력
입력 (STDIN)은 행당 하나씩 이벤트 목록이며, 첫 번째 차트에서 이벤트가 어떻게 나타나는지 (평판 금액 제외)입니다. 빈 줄은 입력 끝을 나타냅니다. 다음은 예입니다 (끝에 빈 줄이 있어야 함).
join website
association bonus
answer upvoted
answer upvoted
question upvoted
answer accepted
answer upvoted
accept answer
unaccept answer
question unupvoted
accept answer
question upvoted
산출
STDOUT에 대한 첫 번째 출력 행은 누적 된 rep의 이름을 지정해야합니다. 그 후의 각 줄에는 표시된대로 정확하게 두 번째 차트와 같은 순서로 획득 한 하나의 권한이 나열되어야합니다. 위 입력에 대한 예상 출력 :
153 reputation
1 create posts
5 participate in meta
10 remove new user restrictions
10 create wiki posts
15 vote up
15 flag posts
20 talk in chat
50 comment everywhere
75 set bounties
100 edit community wiki
100 create chat rooms
125 vote down
150 create tags
규칙, 제한 및 참고
이것은 코드 골프입니다. 표준 코드 골프 규칙이 적용됩니다.
(편집 : 파일에 액세스하는 두 개의 항목이 있으므로 코드 골프에 대한 표준 규칙의 일부로 파일 길이를 코드 길이에 추가해야한다고 지적하고 싶습니다)