結果

問題 No.2969 ローラン単項式の微分
ユーザー ShoboiNamae
提出日時 2024-11-29 22:48:13
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 331 bytes
コンパイル時間 3,447 ms
コンパイル使用メモリ 273,812 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-29 22:48:22
合計ジャッジ時間 3,864 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main()
{
  ll N, M;
  cin >> N >> M;
  
  bool ans = true;
  ll MN = M * N;
  ll M_1 = M - 1;
  
  if (N == 0 || M == 0) ans = false;
  
  if (ans) {
    cout << "Yes" << endl;
    cout << MN << " " << M_1 << endl;
  } else {
    cout << "No" << endl;
  }
}
0