結果
問題 |
No.3301 Make Right Triangle
|
ユーザー |
|
提出日時 | 2025-10-05 14:50:46 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 299 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 31,616 KB |
最終ジャッジ日時 | 2025-10-05 14:50:59 |
合計ジャッジ時間 | 6,313 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 2 WA * 7 |
ソースコード
from sys import stdin input = stdin.readline t = int(input()) ans = [0]*t for i in range(t): l = int(input()) if l%2 == 0: ans[i] = [l,(l//2)**2+1,(l//2)**2-1] else: ans[i] = [l,2*(l+1)//2*(l-1//2),((l+1)//2)**2+((l-1)//2)**2] for i in range(t): print(*ans[i])