結果

問題 No.8062 A + B
ユーザー kenta255
提出日時 2020-04-01 22:41:49
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
RE  
実行時間 -
コード長 311 bytes
コンパイル時間 6,130 ms
コンパイル使用メモリ 192,520 KB
最終ジャッジ日時 2025-01-09 12:18:06
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 7 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FOR(I,A,B) for(ll I = ll(A); I < ll(B); ++I)
const ll MOD = 1000000007;
int main(){
  string a,b;
  cin >> a >> b;
  ll ans;
  if(b[0]=='-'){
    ans = stoi(a) + stoi(b);
    cout << ans << endl;
  }else{
    cout << a+b << endl;
  }
}
0