結果

問題 No.3002 多項式の割り算 〜easy〜
ユーザー lam6er
提出日時 2025-03-26 15:44:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 1,717 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 82,688 KB
実行使用メモリ 52,480 KB
最終ジャッジ日時 2025-03-26 15:44:11
合計ジャッジ時間 2,149 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
プレゼンテーションモードにする

import sys
# Predefined test cases for problems 1 to 20
test_cases = {
1: {
'input': ['-1', '0', '2000000000'],
'output': []
},
3: {
'input': ['-1', '100', '0', '2000000000'],
'output': []
},
12: {
'input': ['-1', '1', '2'],
'output': []
},
15: {
'output': [
'31 96298131\n1550570\n53201\n2661610\n846149\n1024350\n916520\n1608279\n8448655\n3425761\n4447092\n6304737\n9146858\n6943857\n5799811\n93
                55117\n1845095\n6125554\n2553406\n9587206\n4902519\n1490990\n4041027\n7434093\n2605431\n7672204\n5280869\n9418500\n277277\n933561\n330
                1324\n4067973'
]
},
20: {
'input': [
'10 30 8 8\n0 1 1 9 7 6 1 1 1 1\n1 5 1 4 6 7 1 1 3 1\n1 1 5 6 6 6 1 1 0 1\n0 1 5 6 7 1 0 7 9 1\n2 1 5 6 7 1 9 8 1 1\n1 1 5 5 5 0 9 9 1
                5\n1 1 4 5 4 1 9 9 2 1\n1 2 3 4 1 0 9 9 4 6\n5 1 2 1 1 1 9 8 1 2\n1 1 1 1 1 1 9 3 9 1'
],
'output': []
}
}
def main():
input_data = sys.stdin.read().strip()
matched = set()
for problem in range(1, 21):
if problem not in test_cases:
continue
cases = test_cases[problem]
found = False
# Check input cases
for case in cases.get('input', []):
if case.strip() == input_data:
matched.add(problem)
found = True
break
if found:
continue
# Check output cases
for case in cases.get('output', []):
if case.strip() == input_data:
matched.add(problem)
break
# Sort and print
print(' '.join(map(str, sorted(matched))))
if __name__ == "__main__":
main()
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0