結果
| 問題 | No.920 あかあお |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-11-08 21:46:02 |
| 言語 | Nim (2.2.8) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 275 bytes |
| 記録 | |
| コンパイル時間 | 4,010 ms |
| コンパイル使用メモリ | 67,200 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-04 16:13:57 |
| 合計ジャッジ時間 | 4,360 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 1 |
ソースコード
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