Add my own input for typescript

master
Nick Krichevsky 2019-09-26 20:36:51 -04:00
parent 6d29d33dff
commit baaf92a478
1 changed files with 35 additions and 32 deletions

View File

@ -1,38 +1,41 @@
bash-4.2$ ./mailbox 3
3 1
4 2
6 1
5 1
7 3
9 2
The result from thread 3 is 7 from 1 operations during 2 secs.
The result from thread 2 is 13 from 2 operations during 2 secs.
The result from thread 1 is 14 from 3 operations during 3 secs.
bash-4.2$ ./mailbox 3 nb
3 1
4 2
6 1
5 1
7 3
9 2
The result from thread 3 is 7 from 1 operations during 1 secs.
The result from thread 2 is 13 from 2 operations during 2 secs.
The result from thread 1 is 14 from 3 operations during 3 secs.
bash-4.2$ ./mailbox 5
6 4
The result from thread 1 is 0 from 0 operations during 0 secs.
The result from thread 2 is 0 from 0 operations during 0 secs.
-bash-4.2$ ./mailbox 4
0 2
5 2
-1 2
Invalid value.
7 0
Invalid recipient id.
7 5
Invalid recipient id.
10 4
7 1
2 1
3 2
The result from thread 1 is 9 from 2 operations during 2 secs.
The result from thread 3 is 0 from 0 operations during 2 secs.
The result from thread 4 is 10 from 1 operations during 2 secs.
The result from thread 2 is 8 from 3 operations during 3 secs.
-bash-4.2$ ./mailbox 4 nb
0 2
5 2
-1 2
Invalid value.
7 0
Invalid recipient id.
7 5
Invalid recipient id.
10 4
7 1
2 1
3 2
The result from thread 3 is 0 from 0 operations during 0 secs.
The result from thread 5 is 0 from 0 operations during 0 secs.
The result from thread 4 is 6 from 1 operations during 1 secs.
bash-4.2$ ./mailbox 5 nb
The result from thread 4 is 10 from 1 operations during 1 secs.
The result from thread 1 is 9 from 2 operations during 2 secs.
The result from thread 2 is 8 from 3 operations during 3 secs.
-bash-4.2$ ./mailbox 4
6 4
a 5
The result from thread 2 is 0 from 0 operations during 0 secs.
The result from thread 5 is 0 from 0 operations during 0 secs.
The result from thread 1 is 0 from 0 operations during 0 secs.
The result from thread 3 is 0 from 0 operations during 0 secs.
The result from thread 4 is 6 from 1 operations during 1 secs.