結果
| 問題 | No.1009 面積の求め方 |
| コンテスト | |
| ユーザー |
StarMatyan
|
| 提出日時 | 2020-11-28 17:16:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 198 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2024-09-12 23:17:04 |
| 合計ジャッジ時間 | 1,598 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 2 WA * 14 |
ソースコード
import math
a,b = map(int,input().split(" "))
zero_dev = int(a*b)
zero_sa = int(b-a)
first_wa = int(a-b)
first_multi_u = int(math.pow(b,2))
first_multi_l = int(math.pow(a,2))
second_multi_u = int(math.pow(b,3))
second_multi_l = int(math.pow(a,3))
zero_seki = zero_dev*zero_sa
first_seki = (first_multi_u-first_multi_l)/2
second_seki = (second_multi_u-second_multi_l)/3
print(second_seki-first_seki+zero_seki)
StarMatyan