結果
| 問題 | No.3448 ABBBBBBBBC |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-23 02:32:22 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 540 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 84,804 KB |
| 実行使用メモリ | 83,620 KB |
| 最終ジャッジ日時 | 2026-03-23 02:32:33 |
| 合計ジャッジ時間 | 2,407 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 4 |
ソースコード
for _ in range(int(input())): n,k=map(int,input().split()) for i in range(1,10): for j in range(10): if i==j: continue l=j if j>i: l-=1 if l*n<k: k-=l*n else: a,b=k//l,k%l if i<j and i<=b: b+=1 print(a+2+1,i,j,b) k=0;break l=9-j if i>j: l-=1 if n*l<k: k-=l*n else: c=l a,b=k//c,k%c if i>j and j+1+b>=i: b+=1 print(n-a+2,i,j,j+b);k=0 break if not k: break