結果
| 問題 |
No.2828 Remainder Game
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-02 21:46:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 2,000 ms |
| コード長 | 558 bytes |
| コンパイル時間 | 430 ms |
| コンパイル使用メモリ | 82,584 KB |
| 実行使用メモリ | 76,440 KB |
| 平均クエリ数 | 56.00 |
| 最終ジャッジ日時 | 2024-08-02 21:47:00 |
| 合計ジャッジ時間 | 3,951 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
N = int(input())
ans = 0
cnt = 0
for i1 in range(9):
print(10, 1)
print(i1)
C = int(input())
ans += C * i1
cnt += C
C = 5 - cnt
ans += C * 9
cnt = 0
for i2 in range(9):
print(100, 10)
p = list(range(10*(i2), 10*(i2+1)))
print(*p)
C = int(input())
ans += C * i2*10
cnt += C
C = 5 - cnt
ans += C * 90
cnt = 0
for i3 in range(9):
print(1000, 100)
p = list(range(100*(i3), 100*(i3+1)))
print(*p)
C = int(input())
ans += C * i3*100
cnt += C
C = 5 - cnt
ans += C * 900
print(0, 1)
print(ans)