結果
| 問題 |
No.2969 ローラン単項式の微分
|
| コンテスト | |
| ユーザー |
aqua
|
| 提出日時 | 2024-11-29 21:30:28 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 884 bytes |
| コンパイル時間 | 2,621 ms |
| コンパイル使用メモリ | 242,188 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-29 21:30:43 |
| 合計ジャッジ時間 | 3,162 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
#ifndef ONLINE_JUDGE
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
#define all(a) (a).begin(),(a).end()
using ll = long long;
int inf = 2e9;
ll infLL = 9e18;
template<class T> istream& operator>>(istream& i,vector<T>& v) {rep(j,v.size()) i>>v[j]; return i;}
template <typename T> void vecout(const vector<T> &v) {
rep(i, v.size()) {
cout << v[i];
cout << (i == v.size()-1 ? '\n' : ' ');
}
}
// ------------------------------------------------------------------------------------------------
void solve() {
int n, m; cin >> n >> m;
if(n == 0 || m == 0) {
cout << "No\n";
return;
} else {
cout << "Yes\n" << static_cast<ll>(n) * m << ' ' << m-1 << '\n';
}
}
int main() {
cin.tie(nullptr);
// ios_base::sync_with_stdio(false);
int t = 1; // cin >> t;
rep(_,t) solve();
}
aqua