From af87fe2015e4634ed48ced8c56a702a0742f6ef9 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 18 Jan 2017 22:20:30 +0100 Subject: Update numeri.cc --- numeri.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'numeri.cc') diff --git a/numeri.cc b/numeri.cc index 217d6d6..ec2d2d4 100644 --- a/numeri.cc +++ b/numeri.cc @@ -33,11 +33,11 @@ int main(void) file.get(l); num = l - '0'; if(seq == 0) { - if(num == a) seq = 1; + if(num == a) seq++; } else if(seq == 1) { - if(num == b) seq = 2; + if(num == b) seq++; } else if(seq == 2) { - if(num == c) seq = 3; + if(num == c) seq++; } if(seq == 3) { tot++; seq = 0; } -- cgit v1.2.3-18-g5258