Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions ABC451/cnvxlns/A.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import sys
import math
import heapq
from collections import deque, defaultdict, Counter
from itertools import permutations, combinations, product
from bisect import bisect_left, bisect_right

sys.setrecursionlimit(int(1e6))
inf = math.inf
input = sys.stdin.readline

MOD = 1e9 + 7
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input을 input = lambda: sys.stdin.readline().rstrip("\n") 으로 해주면 편하고
MOD도 1e9+7 하면 float 타입일거라 10**9+7로 써야합니다

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input에 rstrip포함은 꿀팁이네요


drc = [(-1, 0), (0, 1), (1, 0), (0, -1)]

def init():

return

def solve():
s = input()
print(len(s))
if len(s) % 5 == 0:
print("Yes")
else:
print("No")
return

if __name__ == "__main__":
init()
t = 1
# t = int(input())
while t:
t -= 1
solve()