반응형

제출한 코드
#include <stdio.h>
int main(void){
while(1){
char name[11];
int a,b;
scanf("%s %d %d", name, &a, &b);
if ((a==0)&&(b==0)) break;
if ((a>17)||(b>=80)) printf("%s Senior\n", name);
else printf("%s Junior\n", name);
}
return 0;
}
결과

후기
반응형
'BQJ 백준 > C99' 카테고리의 다른 글
[C/C99] 백준 2748번: 피보나치 수 2 (0) | 2024.07.08 |
---|---|
[C/C99] 백준 2558번: A+B - 2 (0) | 2024.06.21 |
[C/C99] 백준 2748번: 피보나치 수 2 (0) | 2024.06.15 |
[C/C99] 백준 4922번: Walk Like an Egyptian (0) | 2024.06.12 |
[C/C99] 백준 1085번: 직사각형에서 탈출 (0) | 2024.05.26 |