标签:register har int main strlen using while cpp return
#include <bits/stdc++.h>
using namespace std;
const int maxl = 1e7 + 5;
char buf[maxl];
int main() {
freopen("try.in", "r", stdin);
freopen("try.out", "w", stdout);
while (scanf("%s", &buf) != EOF) {
int len = strlen(buf);
printf("%s", buf);
for (register int i = 0; i < len; i++) {
printf("%c", buf[i]);
if (buf[i] == ';') printf("\n");
}
}
return 0;
}
标签:register har int main strlen using while cpp return
原文地址:https://www.cnblogs.com/ac-evil/p/11148798.html