結果

問題 No.264 じゃんけん
ユーザー #ラス+#ラス+
提出日時 2019-11-07 10:32:52
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 1,271 bytes
コンパイル時間 1,030 ms
コンパイル使用メモリ 63,620 KB
実行使用メモリ 24,628 KB
最終ジャッジ日時 2023-10-13 02:56:35
合計ジャッジ時間 2,105 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
20,416 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 50 ms
18,536 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 51 ms
20,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.IO;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
class Start{
  static void Solve(){
    var n=Rcha();
    var k=Rcha();
    if(n==k)Write("Drew");
    else if(n==k+1||n==k-2)Write("Won");
    else Write("Lost");
  }
  static void Main(){
    readcount=-1;
    read=In.ReadToEnd().Split(' ','\n');
    var sw=new StreamWriter(OpenStandardOutput()){AutoFlush=false};
    SetOut(sw);
    Solve();
    Out.Flush();
  }
  static string Read(){readcount++;return read[readcount];}
  static int Rint(){readcount++;return int.Parse(read[readcount]);}
  static long Rlon(){readcount++;return long.Parse(read[readcount]);}
  static double Rdou(){readcount++;return double.Parse(read[readcount]);}
  static char Rcha(){readcount++;return read[readcount][0];}
  static string[] read;static int readcount;
  const long MOD=1000000007L;
  const string LF="\n";
  static void Swap<T>(ref T a,ref T b){T c=a;a=b;b=c;}
}
class Pair<T1,T2>:IComparable<Pair<T1,T2>>where T1:IComparable<T1>where T2:IComparable<T2>{
  public T1 F;public T2 S;
  public Pair(T1 f,T2 s){F=f;S=s;}
  public int CompareTo(Pair<T1,T2> p)=>F.CompareTo(p.F)!=0?F.CompareTo(p.F):S.CompareTo(p.S);
  public override string ToString()=>F+" "+S;
}
0