結果

問題 No.8117 Simple Programming Language
ユーザー kabipoyo
提出日時 2025-04-01 22:10:52
言語 Text
(cat 8.3)
結果
WA  
実行時間 -
コード長 1,472 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 8,228 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-04-01 22:11:00
合計ジャッジ時間 6,463 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

$10 = H * W / 2
$11 = 0
$15 = H * W
$16 = 0
$100 = 0
$101 = 0
while ($11 < $10)
  $20 = $11 / W
  $21 = $11 % W
  $20 = $20 + 1
  $21 = $21 + 1
  $100 = $100 + A[$20, $21]
  $101 = $101 + B[$20, $21]
end
if ($100 != $101)
  $15 = $10
  $10 = ($16 + $10) / 2
end
if ($100 == $101)
  $16 = $10
  $10 = ($15 + $10) / 2
end
$100 = 0
$101 = 0
while ($11 < $10)
  $20 = $11 / W
  $21 = $11 % W
  $20 = $20 + 1
  $21 = $21 + 1
  $100 = $100 + A[$20, $21]
  $101 = $101 + B[$20, $21]
end
if ($100 != $101)
  $15 = $10
  $10 = ($16 + $10) / 2
end
if ($100 == $101)
  $16 = $10
  $10 = ($15 + $10) / 2
end
$100 = 0
$101 = 0
while ($11 < $10)
  $20 = $11 / W
  $21 = $11 % W
  $20 = $20 + 1
  $21 = $21 + 1
  $100 = $100 + A[$20, $21]
  $101 = $101 + B[$20, $21]
end
if ($100 != $101)
  $15 = $10
  $10 = ($16 + $10) / 2
end
if ($100 == $101)
  $16 = $10
  $10 = ($15 + $10) / 2
end
$100 = 0
$101 = 0
while ($11 < $10)
  $20 = $11 / W
  $21 = $11 % W
  $20 = $20 + 1
  $21 = $21 + 1
  $100 = $100 + A[$20, $21]
  $101 = $101 + B[$20, $21]
end
if ($100 != $101)
  $15 = $10
  $10 = ($16 + $10) / 2
end
if ($100 == $101)
  $16 = $10
  $10 = ($15 + $10) / 2
end
$100 = 0
$101 = 0
while ($11 < $10)
  $20 = $11 / W
  $21 = $11 % W
  $20 = $20 + 1
  $21 = $21 + 1
  $100 = $100 + A[$20, $21]
  $101 = $101 + B[$20, $21]
end
if ($100 != $101)
  $15 = $10
  $10 = ($16 + $10) / 2
end
if ($100 == $101)
  $16 = $10
  $10 = ($15 + $10) / 2
end
$1 = 1 + $16 / W
$2 = 1 + $16 % W
return($1,$2)
0