Submission #1243870


Source Code Expand

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class Program {
    static void Main(string[] args) {
        new Calc().Solve();
        return;
    }

    public class Calc {
        public void Solve() {
			var WH1 = ReadLine<int>(' ');
			var WH2 = ReadLine<int>(' ');
			if (WH1[0] == WH2[1] || WH1[1] == WH2[0] || WH1[1] == WH2[1]) "YES".WL();
			else "NO".WL();
		}
	}
	

    public static T[] ReadLine<T>(params char[] separators) {
        return Console.ReadLine()
            .Split(separators)
            .Where(_ => _.Length > 0)
            .Select(_ => (T)Convert.ChangeType(_, typeof(T)))
            .ToArray();
    }
	public static T ReadLine<T>() {
		return (T)Convert.ChangeType(Console.ReadLine(), typeof(T));
	}
    public static List<T> ReadLines<T>(int N) {
        List<T> rt = new List<T>();
        for (int i = 0; i < N; i++) {
            T item = (T)Convert.ChangeType(Console.ReadLine(), typeof(T));
            rt.Add(item);
        }
        return rt;
    }
}
public static class Utils {
    public static void WL(this object obj) {
        Console.WriteLine(obj);
    }
	public static string Docking<T>(this IEnumerable<T> collection,Func<T,string> filter = null) {
		StringBuilder sb = new StringBuilder();
		foreach (var item in collection) {
			string str = filter != null ? filter(item) : item.ToString();
			sb.Append(str);
		}
		return sb.ToString();
	}
	public static string RangeDocking<T>(this IEnumerable<T> collection,
		int start,int end,Func<T,string> filter = null) {
		if (start > collection.Count()) throw new IndexOutOfRangeException();
		if (end < 0) throw new IndexOutOfRangeException();
		StringBuilder sb = new StringBuilder();
		for (int i = start; i < end; i++) {
			string str = filter != null ? filter(collection.ElementAt(i)) : collection.ElementAt(i).ToString();
			sb.Append(str);
		}
		return sb.ToString();
	}
	public static void WriteLineAll<T>(this IEnumerable<T> collection) {
		foreach (var item in collection) {
			item.WL();
		}
	}
}

Submission Info

Submission Time
Task B - ディスプレイ
User xztaityozx
Language C# (Mono 4.6.2.0)
Score 0
Code Size 2114 Byte
Status WA
Exec Time 26 ms
Memory 13524 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 5
AC × 18
WA × 2
Set Name Test Cases
Sample sample0.txt, sample1.txt, sample2.txt, sample3.txt, sample4.txt
All sample0.txt, sample1.txt, sample2.txt, sample3.txt, sample4.txt, subtask1_0.txt, subtask1_1.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_2.txt, subtask1_3.txt, subtask1_4.txt, subtask1_5.txt, subtask1_6.txt, subtask1_7.txt, subtask1_8.txt, subtask1_9.txt
Case Name Status Exec Time Memory
sample0.txt AC 25 ms 9300 KB
sample1.txt AC 26 ms 11476 KB
sample2.txt AC 26 ms 13396 KB
sample3.txt AC 25 ms 9300 KB
sample4.txt AC 25 ms 9300 KB
subtask1_0.txt AC 25 ms 11348 KB
subtask1_1.txt AC 25 ms 9300 KB
subtask1_10.txt AC 25 ms 11348 KB
subtask1_11.txt AC 26 ms 13396 KB
subtask1_12.txt AC 25 ms 11348 KB
subtask1_13.txt AC 25 ms 13396 KB
subtask1_14.txt AC 26 ms 13396 KB
subtask1_2.txt WA 26 ms 13524 KB
subtask1_3.txt AC 25 ms 9428 KB
subtask1_4.txt AC 25 ms 9428 KB
subtask1_5.txt AC 25 ms 11348 KB
subtask1_6.txt AC 25 ms 11348 KB
subtask1_7.txt WA 25 ms 9300 KB
subtask1_8.txt AC 25 ms 11348 KB
subtask1_9.txt AC 25 ms 11348 KB