結果

問題 No.8117 Simple Programming Language
ユーザー detteiuu
提出日時 2025-07-14 00:40:25
言語 Text
(cat 8.3)
結果
WA  
実行時間 -
コード長 767 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 7,972 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-07-14 00:40:28
合計ジャッジ時間 2,525 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

$0 = H
$1 = W

$2 = 0
$3 = $0/2+$0%2
$4 = 0
$5 = 0
$6 = 1
$9 = 0
$10 = 0
while($2 < $3*$1)
    $4 = $4+A[$2/$1+1, $2%$1+1]*$6
    $5 = $5+B[$2/$1+1, $2%$1+1]*$6
    $2 = $2+1
    $6 = $6*100
end
$7 = 0
if($4 <= $5)
    $7 = $5-$4
end
if($4 > $5)
    $7 = $4-$5
end
$8 = 0
while(0 < $7)
    $8 = $8+1
    $7 = $7/100
end
if(1 <= $8)
    $8 = $8-1
    $9 = $8/$1+1
    $10 = $8%$1+1
end

$11 = $3
$2 = $1*$3
$3 = $0
$4 = 0
$5 = 0
$6 = 1
while($2 < $3*$1)
    $4 = $4+A[$2/$1+1, $2%$1+1]*$6
    $5 = $5+B[$2/$1+1, $2%$1+1]*$6
    $2 = $2+1
    $6 = $6*100
end
$7 = 0
if($4 <= $5)
    $7 = $5-$4
end
if($4 > $5)
    $7 = $4-$5
end
$8 = 0
while(0 < $7)
    $8 = $8+1
    $7 = $7/100
end
if(1 <= $8)
    $8 = $8-1
    $9 = $8/$1+1+$11
    $10 = $8%$1+1
end

return($9, $10)
0