hihoCoder太阁最新面经算法竞赛7 register

Ended

Participants:100

Verdict:Wrong Answer
Score:70 / 100
Submitted:2016-07-07 00:02:32

Lang:C#

Edit
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
29
30
31
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
    
    class Program
    {
        static void Main(string[] args)
        {
            int n= int.Parse(System.Console.ReadLine());
            System.String target = System.Console.ReadLine();
            System.String[] tarray = target.Trim().Split(' ');
            System.String temp = "";
            System.Int32 count = 0;
            int incount = 0;
            foreach(string ele in tarray)
            {
                temp = ele;
                foreach(string sle in tarray)
                {
                    if(dup(temp,sle)==false)
                    {
                        incount++;
                        temp = temp + sle;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX