結果

問題 No.2969 ローラン単項式の微分
ユーザー VvyLw
提出日時 2024-11-29 23:27:54
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 576 bytes
コンパイル時間 1,176 ms
コンパイル使用メモリ 101,068 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-29 23:27:58
合計ジャッジ時間 2,033 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#ifdef local
#include <C++/core/io/debug_print.hpp>
#else
#define dump(...) void(0);
#endif

#include <iostream>
#include <ranges>
namespace man {

}
int main() {
    std::cin.tie(nullptr) -> sync_with_stdio(false);
    using namespace std::views;
    int64_t n, m;
    std::cin >> n >> m;
    if(n == 0 || m == 0) {
        std::cout << "No\n";
    } else {
        std::cout << "Yes\n" << n * m << ' ' << m - 1 << '\n';
    }
}
0