結果
| 問題 |
No.1129 Rating じゃんけん
|
| ユーザー |
|
| 提出日時 | 2021-02-23 18:41:22 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 2,000 ms |
| コード長 | 835 bytes |
| コンパイル時間 | 1,978 ms |
| コンパイル使用メモリ | 111,588 KB |
| 実行使用メモリ | 27,512 KB |
| 最終ジャッジ日時 | 2024-09-22 13:41:11 |
| 合計ジャッジ時間 | 3,212 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
namespace _1129
{
class Program
{
static void Main(string[] args)
{
var s = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
var a = s[0];
var b = s[1];
var c = s[2];
var d = s[3];
var winner = "";
if(a == c){
if(b == d){
winner = "Draw";
}else{
if((b == 0 && d == 1) || (b == 1 && d == 2) || (b == 2 && d == 0)){
winner = "null";
}else{
winner = "tRue";
}
}
}else{
winner = a > c ? "null" : "tRue";
}
Console.WriteLine(winner);
}
}
}