結果
| 問題 | No.3548 SigMax Digits (Construction ver.) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-05-22 22:31:07 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| 記録 | |
| コンパイル時間 | 956 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-22 22:31:14 |
| 合計ジャッジ時間 | 5,990 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 7 |
ソースコード
BIG = 2 * 10 ** 17
def solve():
N = int(input())
if N <= 9:
print(N, N)
else:
l = BIG - (N & 1)
if N & 1:
N -= 9
print(l, BIG + N // 2 - 1)
for _ in range(int(input())):
solve()