結果
| 問題 | No.8117 Simple Programming Language | 
| コンテスト | |
| ユーザー |  detteiuu | 
| 提出日時 | 2025-07-14 00:46:37 | 
| 言語 | Text (cat 8.3) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 905 bytes | 
| コンパイル時間 | 144 ms | 
| コンパイル使用メモリ | 7,968 KB | 
| 実行使用メモリ | 7,844 KB | 
| 最終ジャッジ日時 | 2025-07-14 00:46:40 | 
| 合計ジャッジ時間 | 2,464 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 8 WA * 7 | 
ソースコード
$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-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
$4 = $4+A[$2/$1+1, $2%$1+1]*$6
$5 = $5+B[$2/$1+1, $2%$1+1]*$6
$2 = $2+1
$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-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
$4 = $4+A[$2/$1+1, $2%$1+1]*$6
$5 = $5+B[$2/$1+1, $2%$1+1]*$6
$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)
            
            
            
        