結果
問題 |
No.8117 Simple Programming Language
|
ユーザー |
![]() |
提出日時 | 2025-07-14 01:02:35 |
言語 | Text (cat 8.3) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 1,157 bytes |
コンパイル時間 | 184 ms |
コンパイル使用メモリ | 8,100 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-07-14 01:02:38 |
合計ジャッジ時間 | 2,533 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
$0 = H $1 = W $2 = 0 $3 = 3 if($0 < 3) $3 = $0 end $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 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 $2 = 3*$1 $3 = 6 if($0 < 6) $3 = $0 end $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 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+3 $10 = $8%$1+1 end $2 = 6*$1 $3 = 10 if($0 < 10) $3 = $0 end $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 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+6 $10 = $8%$1+1 end return($9, $10)