C-study/01/3/3_shortest.c

3 lines
110 B
C
Raw Normal View History

#include <stdio.h>
int main(){int x;scanf("%d",&x);x/1000==0 ? printf("%d",x):printf("%d,%d",x/1000,x%1000);}