結果

問題 No.264 じゃんけん
ユーザー n_knuun_knuu
提出日時 2016-04-02 20:18:47
言語 Nim
(2.0.2)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 193 bytes
コンパイル時間 3,357 ms
コンパイル使用メモリ 68,360 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-12 00:14:09
合計ジャッジ時間 3,724 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,384 KB
testcase_01 AC 1 ms
4,384 KB
testcase_02 AC 2 ms
4,384 KB
testcase_03 AC 2 ms
4,384 KB
testcase_04 AC 2 ms
4,384 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 2 ms
4,384 KB
testcase_07 AC 2 ms
4,384 KB
testcase_08 AC 2 ms
4,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils
let
  input = stdin.readline.split.map(parseInt)
  (N, K) = (input[0], input[1])
if N == K:
  echo("Drew")
elif (N + 1) mod 3 == K:
  echo("Won")
else:
  echo("Lost")
0