結果
| 問題 |
No.3100 Parallel Translated
|
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2025-04-11 21:05:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 288 bytes |
| コンパイル時間 | 501 ms |
| コンパイル使用メモリ | 82,904 KB |
| 実行使用メモリ | 54,412 KB |
| 最終ジャッジ日時 | 2025-04-11 21:05:05 |
| 合計ジャッジ時間 | 3,435 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 32 |
ソースコード
mod = 998244353 n = int(input()) x = [0] * n y = [0] * n for i in range(n): x[i], y[i] = map(int,input().split()) ans = 0 for i in range(n-2): ax = x[i+1] - x[0] bx = y[i+1] - y[0] ay = x[i+2] - x[0] by = y[i+2] - y[0] ans += ax * by - ay * bx ans *= pow(2, mod-2, mod) print(ans)
shobonvip