結果
問題 | No.2969 ローラン単項式の微分 |
ユーザー |
![]() |
提出日時 | 2024-11-29 21:29:31 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 2,944 ms |
コンパイル使用メモリ | 243,292 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-29 21:29:35 |
合計ジャッジ時間 | 3,744 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;const int INF = 1e9 + 10;const ll INFL = 4e18;int main() {ll N, M;cin >> N >> M;if (N == 0 || M == 0) {puts("No");return 0;}puts("Yes");cout << N * M << ' ' << M - 1 << endl;}