結果

問題 No.8062 A + B
ユーザー StrorkisStrorkis
提出日時 2020-04-01 23:48:05
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 269 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 66,132 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-27 12:54:28
合計ジャッジ時間 1,365 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    string A, B; cin >> A >> B;
    if (stoll(B) < 0)
        cout << stoll(A) + stoi(B) << "\n";
    else
        cout << stoll(A + B) << "\n";
}
0