結果

問題 No.3483 A Forbidden Fruit
コンテスト
ユーザー ルク
提出日時 2026-03-27 22:04:16
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 506 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 62 ms
コンパイル使用メモリ 81,408 KB
実行使用メモリ 86,616 KB
最終ジャッジ日時 2026-10-06 03:48:46
合計ジャッジ時間 8,185 ms
ジャッジサーバーID
(参考情報)
judge4_1 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import heapq
from itertools import product
from itertools import permutations
import random
import math
import bisect
import sys
from collections import defaultdict
from itertools import combinations


inf = 1 << 60


def exit():
    sys.exit()


def LI():
    return list(map(int, input().split()))


def II():
    return int(input())


def SI():
    return input()


t = II()
for _ in range(t):
    n, m, k = LI()
    if n*m//2 >= k:
        print((n*m-1)/(n*m))
    else:
        print((n*m-1)/(n*m)/2)
0