結果

問題 No.264 じゃんけん
ユーザー te-sh
提出日時 2017-06-02 15:49:40
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 661 ms
コンパイル使用メモリ 100,604 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 19:42:17
合計ジャッジ時間 1,159 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.algorithm, std.conv, std.range, std.stdio, std.string;

const rs = ["Won", "Lost", "Drew"];
const rt = [[2, 0, 1], [1, 2, 0], [0, 1, 2]];

void main()
{
  auto rd = readln.split.to!(int[]), a = rd[0], b = rd[1];
  writeln(rs[rt[a][b]]);
}
0