結果

問題 No.920 あかあお
ユーザー varrho
提出日時 2019-11-08 21:46:02
言語 Nim
(2.2.0)
結果
WA  
実行時間 -
コード長 275 bytes
コンパイル時間 3,774 ms
コンパイル使用メモリ 65,280 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-15 01:23:31
合計ジャッジ時間 4,442 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import sequtils, strutils
var
  x: seq[int] = stdin.readline.split.map(parseInt)
  ans: int = 0
while x[0] > 0 and x[1] > 0:
  x[0].dec
  x[1].dec
  ans.inc
  if x[0] == 0 and x[2] > 0:
    x[0].inc
    x[2].dec
  if x[1] == 0 and x[2] > 0:
    x[1].inc
    x[2].dec
echo ans
0