結果
| 問題 | No.91 赤、緑、青の石 |
| コンテスト | |
| ユーザー |
古寺いろは
|
| 提出日時 | 2015-04-12 16:26:25 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 5,000 ms |
| + 237µs | |
| コード長 | 272 bytes |
| 記録 | |
| コンパイル時間 | 907 ms |
| コンパイル使用メモリ | 178,852 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-19 04:13:01 |
| 合計ジャッジ時間 | 2,967 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 29 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
int main(){
vector<int> num(3);
for (int i = 0; i < 3; i++)
{
cin >> num[i];
}
while (true){
sort(num.begin(), num.end());
if (num[0] + 3 > num[2]) break;
num[0]++;
num[2] -= 2;
}
cout << num[0] << endl;
}
古寺いろは