結果

問題 No.85 TVザッピング(1)
ユーザー kuuso1kuuso1
提出日時 2014-12-04 23:32:01
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 1,122 bytes
コンパイル時間 1,609 ms
コンパイル使用メモリ 111,608 KB
実行使用メモリ 26,148 KB
最終ジャッジ日時 2024-04-15 05:04:58
合計ジャッジ時間 2,548 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
23,860 KB
testcase_01 AC 24 ms
23,920 KB
testcase_02 AC 24 ms
26,016 KB
testcase_03 AC 24 ms
23,792 KB
testcase_04 AC 25 ms
25,832 KB
testcase_05 AC 25 ms
23,980 KB
testcase_06 AC 24 ms
23,796 KB
testcase_07 AC 24 ms
23,916 KB
testcase_08 AC 25 ms
24,172 KB
testcase_09 AC 25 ms
26,024 KB
testcase_10 AC 24 ms
26,148 KB
testcase_11 AC 25 ms
23,844 KB
testcase_12 AC 25 ms
25,892 KB
testcase_13 AC 23 ms
23,968 KB
testcase_14 AC 23 ms
25,884 KB
testcase_15 AC 23 ms
25,884 KB
testcase_16 AC 24 ms
23,984 KB
testcase_17 AC 24 ms
24,112 KB
testcase_18 AC 24 ms
25,884 KB
testcase_19 AC 23 ms
23,840 KB
testcase_20 AC 24 ms
23,796 KB
testcase_21 AC 24 ms
24,172 KB
testcase_22 AC 25 ms
24,240 KB
testcase_23 AC 25 ms
26,092 KB
testcase_24 AC 24 ms
26,088 KB
testcase_25 AC 24 ms
23,920 KB
testcase_26 AC 24 ms
23,984 KB
testcase_27 AC 24 ms
24,100 KB
testcase_28 AC 23 ms
24,048 KB
testcase_29 AC 23 ms
24,100 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
 
class TEST{
	static void Main(){
		Sol mySol =new Sol();
		mySol.Solve();
	}
}

class Sol{
	public void Solve(){
		
		if(N==1){
			Console.WriteLine(M!=2?"NO":"YES");
			return;
		}
		if(M==1){
			Console.WriteLine(N!=2?"NO":"YES");
			return;
		}
		if(N%2==1&&M%2==1){
			Console.WriteLine("NO");
			return;
		}
		Console.WriteLine("YES");
		
		
	}
	int N,M,C;
	public Sol(){
		var d=ria();
		N=d[0];M=d[1];C=d[2];
	}




	static String rs(){return Console.ReadLine();}
	static int ri(){return int.Parse(Console.ReadLine());}
	static long rl(){return long.Parse(Console.ReadLine());}
	static double rd(){return double.Parse(Console.ReadLine());}
	static String[] rsa(){return Console.ReadLine().Split(' ');}
	static int[] ria(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>int.Parse(e));}
	static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));}
	static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));}
}
0