結果
問題 | No.353 ヘイトプラス |
ユーザー |
![]() |
提出日時 | 2016-05-25 08:48:05 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 384 bytes |
コンパイル時間 | 571 ms |
コンパイル使用メモリ | 64,388 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 13:48:58 |
合計ジャッジ時間 | 1,184 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
#include <iostream>#include <string>#include <algorithm>#include <functional>#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>using namespace std;int dx[4] = {1, 0, 0, -1};int dy[4] = {0, 1, -1, 0};int main(void){int a, b;cin >> a >> b;int ma = max(a, b);int mi = min(a, b);int ans = (ma*2) - (ma - mi);printf("%d\n", ans);return 0;}