[go: up one dir, main page]

Skip to content

Commit

Permalink
Added P11830.
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseD committed Dec 26, 2017
1 parent c18f550 commit 6cf741f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions P11830.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
int main() {
while(true) {
GS(ds); GS(s); if(ds == "0" && s == "0") return 0;
char digit = ds[0];
bool firstDigit = true;
FORUI(s.size()) {
if(s[i] == digit)
continue;
if(s[i] == '0' && firstDigit)
continue;
cout << s[i];
firstDigit = false;
}
if(firstDigit)
cout << 0;
cout << endl;
}
}
3 changes: 3 additions & 0 deletions keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2182,6 +2182,9 @@ Trivial.
P11827.cpp: Maximum GCD
Trivial.

P11830.cpp: Contract Revision
Trivial.

P11831.cpp: Sticker Collector Robots
Walk in grid. Change grid during walk. Simple.

Expand Down

0 comments on commit 6cf741f

Please sign in to comment.