CS
cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sololearn
{
class Program
{
static void Main(string[] args){
string[] cards =
Console.ReadLine().Split(" ");
string buffVal1="",
buffVal2="";
string value="",
suit="";
string[] val={
"2","3","4","5",
"6","7","8","9",
"10","J","Q","K","A"};
int val1num=0,val2num=0;
int valCnt1=0,valCnt2=0,suitCnt=0,consecCnt=0;
int qcnt=0,kcnt=0,jcnt=0,tencnt=0,acnt=0,
highCnt=0,highCardPosDiff=0;
for(int i=0;i<5;i++){
if(cards[i].Length==2){
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run