My issue
In the test case 1
First swipe 1 enter into office
Second swipe 2 enter into office
Third swipe 2 left office
Forth swipe 1 left office
So,no one in office but output is 2
In your theory
But remaining are same as theory
My code
/* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
}
}
Problem Link: CARDSWIPE Problem - CodeChef