結果
| 問題 |
No.2969 ローラン単項式の微分
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-12-07 02:51:55 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 400 bytes |
| コンパイル時間 | 1,039 ms |
| コンパイル使用メモリ | 91,088 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-07 02:51:57 |
| 合計ジャッジ時間 | 2,009 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
#define rep(i,a,n) for(int i=(a);i<(n);i++)
int N, M;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin >> N >> M;
int m = M-1;
//N*M = n
//N*(m+1) = n
if(m+1==0||N==0) cout << "No" << endl;
else {
cout << "Yes" << endl;
cout << (long)N*(m+1) << " " << m << endl;
}
}