結果
問題 |
No.8062 A + B
|
ユーザー |
👑 ![]() |
提出日時 | 2020-09-28 15:00:03 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 1,506 ms |
コンパイル使用メモリ | 165,780 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-02 04:12:51 |
合計ジャッジ時間 | 2,191 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 2 WA * 6 |
ソースコード
#include<bits/stdc++.h> using namespace std; using LL = long long; using ULL = unsigned long long; #define rep(i,n) for(int i=0; i<(n); i++) int main() { double a,b; cin>>a>>b; if(a+b==floor(a+b)) cout<<int(a+b)<<endl; else cout<<fixed<<setprecision(11)<<(a+b)<<endl; return 0; }