File size: 6,420 Bytes
3814f26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
-------------------------------------------------
Pre-trained Model Answer:
Answer the following question truthfully.
: κ³ μ§€μ˜λ¬΄μ— λŒ€ν•΄ μƒμ„Έν•˜κ²Œ μ•Œλ €μ€˜
  : 10λΆ„μ΄λ‚΄λ‘œ 닡변을 λ³΄λƒ„μœΌλ‘œμ„œ, 당신은 그것듀을 μ½μ—ˆλ‹€λŠ” 사싀을 μΈμ •ν•œλ‹€.
```python
import sys
sys.stdin = open('input_2587.txt')
# input()λ₯Ό 톡해 μž…λ ₯λ°›κΈ°
T=int(input()) # T개의 ν…ŒμŠ€νŠΈ 데이터가 주어진닀.
for tc in range(1,T+1):
    N,M=map(str,input().split())
    print('#{} {}'.format(tc,(N*3)+((len(M)-1)*4)))
```
- `print("#{}. {}".format(tc,(N*3) + ((len(M)) - 1)*4), end='\n' )`
  좜λ ₯문을 μž‘μ„±ν• λ•Œ \n μ—†μ• λ©΄ μ€„λ°”κΏˆλ˜μ§€μ•ŠμŒ!
## 풀이방법
### 첫번째 μ‹œλ„ (였λ₯˜λ°œμƒ)
```python
def solution
-------------------------------------------------
Finetuning PEFT Model Answer:
Answer the following question truthfully.
: κ³ μ§€μ˜λ¬΄μ— λŒ€ν•΄ μƒμ„Έν•˜κ²Œ μ•Œλ €μ€˜
  : κ³ μ§€μ˜λ¬΄λž€, λ²•μΈμ΄λ‚˜ κ°œμΈμ‚¬μ—…μžκ°€ νŠΉμ •ν•œ 경우λ₯Ό μ œμ™Έμ‹œν‚€λŠ” λ°”λžŒμ§ν•œ ν–‰μœ„λ‘œμ„œ κ·ΈλŸ¬ν•œ κ²½μš°μ— κ΄€λ ¨λœ λ‚΄μš©μ„ κ³΅μ‹μ μœΌλ‘œ 톡보할 κ²ƒμž„μ„ 약속함과 같은 μΌμ’…μ˜ κ·œμ •μž…λ‹ˆλ‹€. 예) μ£Όλ―Όλ“±λ‘λ²ˆν˜Έλ³€κ²½ 및 μ„±λ³„μˆ˜μ • λ“± 신뢄증 λ°œκΈ‰ ν›„ 10일 μ•ˆμ— ꡭ토ꡐ톡뢀 μ†Œκ²¬μ„œ 확인 ν•„μš”(κ³ μ§€μ˜λ¬΄), ν—ˆκ°€κΈ°κ°„λ™μ•ˆ μš΄μ „λ©΄νƒˆ λ˜λŠ” μ°¨λŸ‰ 파기 λ“± 쀑도 μ·¨μ†Œ λΆˆκ°€λŠ₯ν•œ 계약 체결 μ‹œ 24μ‹œκ°„ μ•ˆμ— 연ꡬ원μž₯ 본인 λ˜λŠ” λ‹΄λ‹Ήμžμ™€ λ§Œλ‚¨ (κ³ μ§€μ˜λ¬΄). 단, κ³ μ§€μ˜λ¬΄ μ—†μ–΄μ•Ό λ˜λŠ” 경우라면 λ°˜λ“œ
-------------------------------------------------
-------------------------------------------------
Pre-trained Model Answer:
Answer the following question truthfully.
: κ³¨ν”„λ³΄ν—˜ μ•Œλ €μ€˜
  : 10뢄전에 λ§žλŠ”λ‹€κ³  ν–ˆμœΌλ‹ˆκΉŒ κ·Έλ•ŒλΆ€ν„° μ‹œμž‘ν•œλ‹€.
  : 25λ…„μ΄λ‚˜ μ§€λ‚œ 것도 아직 μ•ˆν•΄μ„œ...
  : 36κ°œμ›”μ€ 48κ°œμ›”μ˜ 반이라고 μƒκ°ν•˜λ©΄ λœλ‹€.
  : μ–΄μ°¨ν”Ό λ‚΄κ°€ 할일인데, λ„ˆλ¬΄ λ°”μœκ±°μ•Ό?
  : μ‚¬λžŒλ“€μ„ μœ„ν•΄ λ…Έλ ₯ν•˜μž!
  : μ˜€λžœλ§Œμ— 같이 μžˆμ—ˆλ„€μš”~
  : μ €κΈ° μš°λ¦¬μ§‘ μ£Όλ³€μ—” μ—¬λŸ¬ 식당이 μžˆμŠ΅λ‹ˆλ‹€.
  : 제발 말둜 μ„€λͺ…ν•΄μ€„λž˜μš”?
  : 정말 잘 λͺ¨λ₯΄κ² κ΅¬λ‚˜..
  : λŒ€μ²΄ λˆ„κ΅°κ°€λ₯Ό μ°Ύμ•˜λ”λΌ!!
  : 미ꡭ에선 물건을 λ°›κ²Œλ˜λ©΄ 항상 κ°μ‚¬ν•©λ‹ˆλ‹€ 라고 ν‘œν˜„ν•˜λŠ” κ²½ν–₯이
-------------------------------------------------
Finetuning PEFT Model Answer:
Answer the following question truthfully.
: κ³¨ν”„λ³΄ν—˜ μ•Œλ €μ€˜
  : κ³¨ν”„λ³΄ν—˜μ€ μžλ™μ°¨λ³΄ν—˜κ³ΌλŠ” λ‹€λ₯Έ μ’…λ₯˜μ˜ λ³΄ν—˜μž…λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜, λŒ€λΆ€λΆ„μ˜ κ²½μš°μ—μ„œ μžλ™μ°¨λ₯Ό μ΄μš©ν•˜μ—¬ μš΄ν–‰μ„ ν•œ ν›„ 골프μž₯으둜 κ°€κ³  μžˆκ±°λ‚˜ 골프μž₯μ—μ„œ λŒμ•„μ˜€λ˜ 쀑 사고가 λ°œμƒν–ˆκΈ° λ•Œλ¬Έμ— μžλ™μ°¨λ³΄ν—˜μœΌλ‘œλ„ μ²˜λ¦¬ν•  수 μ—†μŠ΅λ‹ˆλ‹€. λ”°λΌμ„œ κ³¨ν”„λ³΄ν—˜μ΄ ν•„μš”ν•©λ‹ˆλ‹€. λ˜ν•œ 골프μž₯λ‚΄μ—μ„œ 일반적인 λ¬Όκ±΄μ‹€μ œμƒν•΄(예: ν™”μž¬)와 κ΄€λ ¨λœ κ²ƒλ“€κΉŒμ§€ ν¬ν•¨λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€. 단, 주민등둝증 λ²ˆν˜Έκ°€ 같은 가ꡬ간 μ§‘μ•ˆμ› 및 외ꡭ인 λΉ„νšŒμ‚¬μ§μ—… κ°œμΈμ€ κ³΅ν†΅μ˜ 법정
-------------------------------------------------
-------------------------------------------------
Pre-trained Model Answer:
Answer the following question truthfully.
: μ‚¬λ§λ³΄ν—˜μ— λŒ€ν•˜μ—¬ μ•Œλ €μ€˜
  : 10λΆ„μ΄λ‚΄λ‘œ λ‹΅λ³€ν•΄μ£Όμ„Έμš”!
## Question
### What is life insurance?
Life Insurance, also known as Life Assurance or Death Benefit in some countries, provides a lump sum payment to your beneficiaries upon death of an insured person (the policyholder). The amount paid out by the company depends on how much you have agreed with them beforehand and what type of plan they offer; there are many different types available so it’s important that we understand all our options when choosing one for ourselves/our families etcetera…
The most common form would be whole-life policies which provide coverage until either age 65+ years old OR after passing away whichever comes first – this means if someone dies at any point during their lifetime then no matter where he was living nor whether his family members were still alive themselves too because these things don't affect anything else about him except maybe making sure everything goes smoothly without problems arising due lack knowledge regarding such matters...
-------------------------------------------------
Finetuning PEFT Model Answer:
Answer the following question truthfully.
: μ‚¬λ§λ³΄ν—˜μ— λŒ€ν•˜μ—¬ μ•Œλ €μ€˜
  : μ‚¬λ§λ³΄ν—˜μ€ μžλ™μ°¨λ³΄ν—˜κ³ΌλŠ” λ‹€λ₯Έ μ’…λ₯˜μ˜ λ³΄ν—˜μž…λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜, 이λ₯Ό ν¬ν•¨ν•œ λͺ¨λ“  λ³΄ν—˜μ„ 일반적으둜 β€˜λ³΄ν—˜β€™μ΄λΌκ³  λΆ€λ₯΄κΈ°λ„ ν•©λ‹ˆλ‹€. λ˜ν•œ 생λͺ…λ³΄ν—˜(μΈμˆ˜ν˜•)κ³Ό κ°™μŠ΅λ‹ˆλ‹€. μ‚¬λ§λ³΄ν—˜μ€ κ°€μž…μ‹œμ μ—μ„œ μ§€μ •λœ κΈˆμ•‘λ§ŒνΌ μƒμ†λ°›κ²Œ λ˜μ–΄μžˆκ±°λ‚˜ νŠΉλ³„νžˆ 약관에 따라 제곡될 경우 ν•΄λ‹Ή κΈˆμ•‘μ„ 계산할 λ•Œ 주둜 μ‚¬μš©λ©λ‹ˆλ‹€. 예λ₯Όλ“€λ©΄ 100λ§Œμ›, 250λ§Œμ›, 3μ²œλ§Œμ›λ“± 각각의 κΈˆμ•‘μ„ 선택할 수 μžˆμŠ΅λ‹ˆλ‹€. 단, μ΅œμ†Œ 100λ§Œμ›~μ΅œλŒ€ 4μ²œλ§Œμ›κΉŒμ§€ μ„€μΉ˜ν•  수
-------------------------------------------------
-------------------------------------------------
Pre-trained Model Answer:
Answer the following question truthfully.
: 선물이 뭐야?
  : μ±…, νœ΄λŒ€μ „ν™”, κ°€λ°©, λ…ΈνŠΈλΆ, μŠ€λ§ˆνŠΈμ›ŒμΉ˜, μŒμ‹, 의λ₯˜, 기타
Answer the following questions with a number from 1 to 5 (1 is lowest and 5 is highest).
: How much do you like this gift?
   : ______
: What kind of person would give such gifts as these?
    : _______
: Which one(s) are your favorite among them all? Why?
     : ____________
: If someone gave me any of those things I'd be happy about it because...
      : _________________
-------------------------------------------------
Finetuning PEFT Model Answer:
Answer the following question truthfully.
: 선물이 뭐야?
  : μ˜΅μ…˜μ€ λ―Έλž˜κ°€μΉ˜λ₯Ό 기반으둜 ν•˜λŠ” μƒν’ˆμž…λ‹ˆλ‹€. 즉, λ―Έλž˜μ—μ„œμ˜ μ‹œμž₯을 μ˜ˆκ²¬ν•΄λ³΄κ³ μž ν•©λ‹ˆλ‹€. κ·ΈλŸ¬λ‚˜ 선물은 ν˜„μž¬μ™€ 같은 μƒνƒœλ‘œ μ§€μ •λœ μΌμ •ν•œ μˆ˜λŸ‰κ³Ό μ’…λ₯˜μ˜ μ œν’ˆ(주식, ν™”ν•™λ¬Όμ§ˆ)을 νŠΉλ³„νžˆ κ±°λž˜ν•  κ²ƒμΈλ°μš”. λ˜ν•œ 맀도/ꡬ맀 κ³„μ•½μ˜ 성립 및 λ§Œλ£ŒκΉŒμ§€ λ‚¨μ•„μžˆλŠ” λ‚ μ§œλ₯Ό λ§ν•©λ‹ˆλ‹€. λ‹¨μˆœνžˆ ν”νžˆ μ‚¬μš©λ˜μ–΄μ§„ β€˜λ―Έλž˜β€™λΌλŠ” ν‘œν˜„μ„ μƒκ°ν–ˆλ”λΌλ©΄ μ˜€λ‹΅μž…λ‹ˆλ‹€! μ‹€μ œλ‘œ 선물은 λ―Έλž˜κ°€μΉ˜λ₯Ό ν¬ν•¨ν•˜μ—¬ ν˜„κΈˆ λ“±κΈ‰ 쀑 μ΅œμ € λ“±κΈ‰λΆ€ν„° 10λ…„ ν›„κΉŒμ§€ λ―Έλž˜κ°€μΉ˜λ₯Ό μΆ”μ‚°ν•˜λ©° νŒλ§€λ©λ‹ˆλ‹€. λ”°