結果
問題 |
No.1057 素敵な日
|
ユーザー |
|
提出日時 | 2020-05-22 21:40:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 467 bytes |
コンパイル時間 | 1,446 ms |
コンパイル使用メモリ | 166,188 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-05 16:16:02 |
合計ジャッジ時間 | 1,881 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 WA * 2 |
ソースコード
# include <bits/stdc++.h> # define endl "\n" using namespace std; typedef long long int ll; void solve() { int a, b; cin >> a >> b; if (a == 1 && b == 1) { cout << 1 << endl; } else { cout << 2 * min(a, b) << endl; } } int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); # ifndef ONLINE_JUDGE freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout); # endif // int t; // cin >> t; // while (t--) solve(); return 0; }