Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

Contest Clarifications

Problem 1009 : 结果对可惜就是超时~~我的天敌!!
结果对可惜就是超时~~我的天敌!!
#include "stdio.h"
int main()
{
int count = 0;
char c;
  int k = 1;
while(c = getchar())
{
if(c == '\n' && k == 1)
    {
      k = 0;
count ++;
    }
    else if(c =='\n' && k == 0)
      break;
    else if(c != '\n')
      k = 1;
}
printf("%d\n", count);
return 0;
}
德成 at 2009-07-25 15:02:15

RE:结果对可惜就是超时~~我的天敌!!
怎么没人给我回复下啊?
德成 at 2009-07-25 15:11:38


Pages: 1
 

Post a new reply

Title: