結果
| 問題 |
No.920 あかあお
|
| コンテスト | |
| ユーザー |
himo
|
| 提出日時 | 2019-11-12 16:25:12 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 218 bytes |
| コンパイル時間 | 1,280 ms |
| コンパイル使用メモリ | 157,612 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 03:48:28 |
| 合計ジャッジ時間 | 1,722 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 WA * 3 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
int main(){
int a,b,c;
cin >> a >>b >> c;
int ans =0;
while(a>0&&b>0){
a--;
b--;
ans++;
}
c+=a;
c+=b;
ans+=c/2;
cout << ans << endl;
}
himo