結果

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

ソースコード

diff #

$1=H*W
$5=($0+$1)/2
while($3<$5)
  $2=$2+100+A[$3/W+1,$3%W+1]-B[$3/W+1,$3%W+1]
  $3=$3+1
end
if($2==($1-$0-1)*100)
  $0=$5
end
if($2!=($1-$0-1)*100)
  $1=$5
end
$2=0
$3=$0
$5=($0+$1)/2
while($3<$5)
  $2=$2+100+A[$3/W+1,$3%W+1]-B[$3/W+1,$3%W+1]
  $3=$3+1
end
$4=($1-$0-1)*100
if($2==$4)
  $0=$5
end
if($2!=$4)
  $1=$5
end
$2=0
$3=$0
$5=($0+$1)/2
while($3<$5)
  $2=$2+100+A[$3/W+1,$3%W+1]-B[$3/W+1,$3%W+1]
  $3=$3+1
end
$4=($1-$0-1)*100
if($2==$4)
  $0=$5
end
if($2!=$4)
  $1=$5
end
$2=0
$3=$0
$5=($0+$1)/2
while($3<$5)
  $2=$2+100+A[$3/W+1,$3%W+1]-B[$3/W+1,$3%W+1]
  $3=$3+1
end
$4=($1-$0-1)*100
if($2==$4)
  $0=$5
end
if($2!=$4)
  $1=$5
end
$2=0
$3=$0
$5=($0+$1)/2
while($3<$5)
  $2=$2+100+A[$3/W+1,$3%W+1]-B[$3/W+1,$3%W+1]
  $3=$3+1
end
$4=($1-$0-1)*100
if($2==$4)
  $0=$5
end
if($2!=$4)
  $1=$5
end
$2=0
$3=$0
$5=($0+$1)/2
while($3<$5)
  $2=$2+100+A[$3/W+1,$3%W+1]-B[$3/W+1,$3%W+1]
  $3=$3+1
end
$4=($1-$0-1)*100
if($2==$4)
  $0=$5
end
if($2!=$4)
  $1=$5
end
if($0==$1)
  $1=$0+1
end
$2=0
$3=$0
$5=($0+$1)/2
while($3<$5)
  $2=$2+100+A[$3/W+1,$3%W+1]-B[$3/W+1,$3%W+1]
  $3=$3+1
end
$4=($1-$0-1)*100
if($2==$4)
  $0=$5
end
if($2!=$4)
  $1=$5
end
return(($0+1)/W+1,($0+1)%W+1)
0