diff options
| author | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-06 23:23:53 +0200 |
|---|---|---|
| committer | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-06 23:23:53 +0200 |
| commit | ed4b0690e4ee35278bb656c703bd0a1ab102222f (patch) | |
| tree | fc880ae4d999fbd54e6d370073eb18291da475cd /05-05-2022(Div.3)/C/C.py | |
| parent | 27b754215ceda985f0f8e3b64ab5c5f8e84ab826 (diff) | |
| download | competitive-programming-ed4b0690e4ee35278bb656c703bd0a1ab102222f.tar.xz competitive-programming-ed4b0690e4ee35278bb656c703bd0a1ab102222f.zip | |
Added some problems + moved some folders to contests
Diffstat (limited to '05-05-2022(Div.3)/C/C.py')
| -rwxr-xr-x | 05-05-2022(Div.3)/C/C.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/05-05-2022(Div.3)/C/C.py b/05-05-2022(Div.3)/C/C.py deleted file mode 100755 index 422b0f7..0000000 --- a/05-05-2022(Div.3)/C/C.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python3 - -t = int(input()) -while(t): - t-=1 - s = input() - one = 0 - zero = len(s) - 1 - for i in range(len(s)): - if s[i] == '0': - zero = i - break - for i in range(len(s)): - if s[i] == '1': - one = i - print(zero - one + 1) - |
