結果

問題 No.3609 Trio Plus
コンテスト
ユーザー mocchi
提出日時 2026-08-06 14:12:08
言語 C++23(gnu拡張gcc16)
(gcc 16.1.0 + boost 1.90.0)
コンパイル:
g++-16 -O2 -lm -std=gnu++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 545 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 7,825 ms
コンパイル使用メモリ 644,976 KB
実行使用メモリ 5,888 KB
最終ジャッジ日時 2026-08-06 14:12:27
合計ジャッジ時間 8,991 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 6 WA * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
In file included from /home/linuxbrew/.linuxbrew/include/boost/config/header_deprecated.hpp:18,
                 from /home/linuxbrew/.linuxbrew/include/boost/math/tools/header_deprecated.hpp:11,
                 from /home/linuxbrew/.linuxbrew/include/boost/math/common_factor_rt.hpp:12,
                 from main.cpp:11:
/home/linuxbrew/.linuxbrew/include/boost/math/common_factor_rt.hpp:14:1: note: '#pragma message: This header is deprecated. Use <boost/integer/common_factor_rt.hpp> instead.'
   14 | BOOST_MATH_HEADER_DEPRECATED("<boost/integer/common_factor_rt.hpp>");
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #
raw source code

#include <cassert>
#include <bits/stdc++.h>
using namespace std;

#define rep(i,n) for(int i = 0; i < (int)(n); i++)
constexpr int inf = 2e9;
#include <atcoder/all>
using namespace atcoder;

#include <boost/multiprecision/cpp_int.hpp>
#include <boost/math/common_factor_rt.hpp>
namespace mp = boost::multiprecision;
using ll = long long;
int main()
{
    int a,b,c;
    cin >> a >> b >> c;
    if (a == b and b == c and c == 1)
    {
        cout << "1+1+1=Infinity" << "\n";
        return 0;
    }
    cout << "A+B+C=" << a + b + c << "\n";
}
0