結果

問題 No.2960 Judgement
ユーザー anago-pie
提出日時 2024-11-19 00:49:21
言語 JavaScript
(node v23.5.0)
結果
AC  
実行時間 77 ms / 777 ms
コード長 381 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 6,948 KB
実行使用メモリ 39,424 KB
最終ジャッジ日時 2024-11-19 00:49:26
合計ジャッジ時間 2,867 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

function Main(INPUT){
  const input=INPUT.split("\n");
  const a = input[0].split(" ");
  let [ac,wa,re,noout,nosub]=[0,0,0,0,0];
  a.map(t=>{
    if(t=="AC")ac++;
    if(t=="WA")wa++;
    if(t=="RE")re++;
    if(t=="NoOut")noout++;
    if(t=="NoSub")nosub++;
  })
  console.log(ac+noout>=6?"Win":ac+noout==5?"Draw":"Lose")
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
0