fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char c;
  5. for(;(c=getchar())>0;){
  6. putchar(c-32?35:10);
  7. }
  8. fseek(stdin,0,0);
  9. for(;(c=getchar())>0;){
  10. putchar(c-32?35:10);
  11. }
  12. }
  13.  
Success #stdin #stdout 0s 5296KB
stdin
Write a program to print a histogram of the lengths of words in its input. It is easiest to draw the histogram horizontally; a vertical orien notation is more challenging
stdout
#####
#
#######
##
#####
#
#########
##
###
#######
##
#####
##
###
######
##
##
#######
##
####
###
#########
#############
#
########
#####
########
##
####
################
#
#######
##
#####
#
#########
##
###
#######
##
#####
##
###
######
##
##
#######
##
####
###
#########
#############
#
########
#####
########
##
####
###########