結果
問題 |
No.1057 素敵な日
|
ユーザー |
![]() |
提出日時 | 2020-06-19 21:15:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 1,501 ms |
コンパイル使用メモリ | 166,720 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-03 13:32:52 |
合計ジャッジ時間 | 1,921 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 5 WA * 2 |
ソースコード
#include<bits/stdc++.h> #define rep(i, n) for (long long i = 0; i < (int)(n); i++) #define put(i) cout<<fixed<<i<<endl using namespace std; using ll = long long; int main(){ ll a,b; cin >> a >> b; if(a == 1 || b == 1){ put(1); }else{ put(a+b-abs(a-b)); } }