結果

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

ソースコード

diff #

$0=0
$1=H*W
$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]
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]
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]
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]
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]
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]
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]
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