Created
August 28, 2022 19:47
-
-
Save modos/dc7ddb1c1a1a0821c9c5197535493930 to your computer and use it in GitHub Desktop.
کادوی پوپک پسند
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define F first | |
#define S second | |
#define MP make_pair | |
#define PII pair<int,int> | |
#define PB push_back | |
#define ll long long | |
#define int long long | |
#define db long double | |
const int N=1e5+100; | |
string s; | |
int32_t main(){ | |
ios::sync_with_stdio(0);cin.tie(0); | |
cin>>s; | |
bool flag=false; | |
for(int i=0;i<s.size();i++){ | |
if(s[i]=='1')flag=true; | |
if(flag)cout<<s[i]; | |
} | |
if(!flag)cout<<"0"; | |
cout<<"\n"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment