結果
問題 |
No.2969 ローラン単項式の微分
|
ユーザー |
![]() |
提出日時 | 2024-12-01 22:06:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 2,000 ms |
コード長 | 308 bytes |
コンパイル時間 | 1,939 ms |
コンパイル使用メモリ | 192,488 KB |
最終ジャッジ日時 | 2025-02-26 10:16:26 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { fast_io(); long long n, m; cin >> n >> m; if (m != 0 && n != 0) { cout << "Yes" << endl; cout << n * m << " " << m - 1 << endl; } else { cout << "No" << endl; } }