Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #define N 511
- /* or 512 */
- char s[N][N + 1];
- int main() {
- int i, j, k, t;
- for (i = 0; i < N; ++i) {
- for (j = 0; j < N; ++j) {
- s[i][j] = 'a';
- }
- }
- k = 0;
- for (t = 0; t < 200; ++t)
- for (i = 0; i < N; ++i) {
- for (j = 0; j < N; ++j) {
- if (0 == strcmp(s[i], s[j])) {
- ++k;
- }
- }
- }
- printf("%d\n", k);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement