main.cc 702 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <cstdio>
  2. #include <cstdlib>
  3. #include <cstring>
  4. #include <string>
  5. const int N = 100;
  6. const int LEN = 80;
  7. const int NUM = 1500;
  8. const int M = 50000;
  9. const char asterisks[] = "**********\n";
  10. const char dashes[] = "----------\n";
  11. const char equals[] = "==========\n";
  12. const char nothing[] = "Sorry, I found nothing.\n";
  13. char buffer[LEN + 1];
  14. struct article {
  15. char sent[NUM][LEN + 1];
  16. } articles[N];
  17. void read_article(int id) {
  18. for (int i = 0; fgets(buffer, LEN, stdin) != NULL && strcmp(buffer, asterisks); i++) {
  19. printf("%s", buffer);
  20. }
  21. }
  22. int main() {
  23. int n, m;
  24. scanf("%d\n", &n);
  25. for (int i = 0; i < n; i++) {
  26. read_article(i);
  27. }
  28. scanf("%d\n", &m);
  29. return 0;
  30. }