結果
問題 |
No.3002 多項式の割り算 〜easy〜
|
ユーザー |
|
提出日時 | 2025-02-17 00:20:53 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 649 bytes |
コンパイル時間 | 995 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2025-02-17 00:20:56 |
合計ジャッジ時間 | 2,717 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 22 |
ソースコード
def main(): inp1 = list(map(int, input().split(" "))) print(inp1[1]) if inp1[1] == 0: print("0 0") elif inp1[1] == 1: print(inp1[0], end=' ') print("0") elif inp1[1] == 2: print("1 1") elif inp1[1] == 3: print("0", end=' ') print(inp1[0]) else: if inp1[1] % 3 == 1: print(inp1[0], end=' ') print("0") elif inp1[1] % 3 == 2: print(-1 * inp1[0], end=' ') print(-1 * inp1[0]) else: print(inp1[0], end=' ') print(inp1[0]) if __name__ == '__main__': main()