結果
問題 | No.982 Add |
ユーザー |
![]() |
提出日時 | 2020-02-11 13:43:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 225 bytes |
コンパイル時間 | 110 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,520 KB |
最終ジャッジ日時 | 2024-10-01 07:24:11 |
合計ジャッジ時間 | 1,720 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 23 |
ソースコード
# coding: utf-8 # Your code here! import sys readline = sys.stdin.readline read = sys.stdin.read a,b = [int(i) for i in read().split()] from fractions import gcd if gcd(a,b) > 1: print(-1) else: print((a-1)*(b-1)//2)