#define N 10
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main()
{
char word[N][20 + 1];
char tmp[20 + 1];
int i, j;
// 入力
for (i = 0; i < N; i++) {
}
// ソート
for (i = N - 1; 0 < i; i--) {
for (j = 0; j < i; j++) {
if (strcmp(word
[j
], word
[j
+ 1]) > 0) { }
}
}
// 出力
for (i = 0; i < N; i++) {
}
return 0;
}
I2RlZmluZSBOIDEwCiNkZWZpbmUgX0NSVF9TRUNVUkVfTk9fV0FSTklOR1MKI2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKCkKewoJY2hhciB3b3JkW05dWzIwICsgMV07CgljaGFyIHRtcFsyMCArIDFdOwoJaW50IGksIGo7CgoJLy8g5YWl5YqbCglmb3IgKGkgPSAwOyBpIDwgTjsgaSsrKSB7CgkJc2NhbmYoIiUyMHMiLCB3b3JkW2ldKTsKCX0KCgkvLyDjgr3jg7zjg4gKCWZvciAoaSA9IE4gLSAxOyAwIDwgaTsgaS0tKSB7CgkJZm9yIChqID0gMDsgaiA8IGk7IGorKykgewoJCQlpZiAoc3RyY21wKHdvcmRbal0sIHdvcmRbaiArIDFdKSA+IDApIHsKCQkJCXN0cmNweSh0bXAsIHdvcmRbal0pOwoJCQkJc3RyY3B5KHdvcmRbal0sIHdvcmRbaiArIDFdKTsKCQkJCXN0cmNweSh3b3JkW2ogKyAxXSwgdG1wKTsKCQkJfQoJCX0KCX0KCgkvLyDlh7rlipsKCWZvciAoaSA9IDA7IGkgPCBOOyBpKyspIHsKCQlwcmludGYoIiVzXG4iLCB3b3JkW2ldKTsKCX0KCXJldHVybiAwOwp9Cg==