結果
| 問題 |
No.3301 Make Right Triangle
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-10-18 02:43:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 353 ms / 2,000 ms |
| コード長 | 197 bytes |
| コンパイル時間 | 241 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-10-18 02:43:51 |
| 合計ジャッジ時間 | 9,331 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 |
ソースコード
import sys
input = sys.stdin.readline
T=int(input())
for tests in range(T):
N=int(input())
if N%2==1:
print(N,N*N//2,N*N//2+1)
else:
print(N,N*N//2//2-1,N*N//2//2+1)
titia