Skip to content

Commit 1024177

Browse files
committed
Add 20104.cpp
1 parent d574540 commit 1024177

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

20xxx/20104.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include "timecard.h"
2+
3+
static int N;
4+
5+
void init(int n) {
6+
N = n;
7+
}
8+
9+
std::string convert(std::string s) {
10+
for (char &c : s) {
11+
if ('A' <= c && c <= 'Z') {
12+
c = c - 'A' + 'a';
13+
}
14+
}
15+
return s;
16+
}

0 commit comments

Comments
 (0)