File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed
Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ import sys
2+
3+ input = sys .stdin .readline
4+
5+ E , S , M = map (int , input ().split ())
6+ e , s , m = 1 , 1 , 1
7+ year = 1
8+
9+ while True :
10+ if e == E and s == S and m == M :
11+ print (year )
12+ break
13+ e += 1
14+ s += 1
15+ m += 1
16+ year += 1
17+
18+ if e > 15 :
19+ e = 1
20+ if s > 28 :
21+ s = 1
22+ if m > 19 :
23+ m = 1
Original file line number Diff line number Diff line change 1+ import sys
2+
3+ input = sys .stdin .readline
4+
5+ n , jimin , hansu = map (int , input ().split ())
6+
7+ round = 1
8+
9+ while True :
10+ jimin = (jimin + 1 ) // 2
11+ hansu = (hansu + 1 ) // 2
12+
13+ if jimin == hansu :
14+ print (round )
15+ break
16+
17+ round += 1
18+
Original file line number Diff line number Diff line change 1+ def solution (s ):
2+ answer = []
3+
4+ s = list (s .split (' ' ))
5+
6+ for word in s :
7+ if word :
8+ first = word [0 ].upper ()
9+ remain = word [1 :].lower ()
10+ answer .append (first + remain )
11+ else :
12+ answer .append ('' )
13+
14+ return " " .join (answer )
You can’t perform that action at this time.
0 commit comments