2025-09-06 18:16:39 +09:00

21 lines
411 B
C

#include <stdio.h>
#include <limits.h>
#include <string.h>
int main() {
int minLevel = INT_MAX;
char minName[11] = {"",};
int N;
scanf("%d",&N);
while(N--) {
char name[11];
int level;
scanf("%s %d",name, &level);
if(level<minLevel) {
minLevel = level;
strcpy(minName, name);
}
}
printf("%s\n",minName);
return 0;
}