結果
問題 | No.91 赤、緑、青の石 |
ユーザー |
|
提出日時 | 2017-01-01 02:53:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 36 ms / 5,000 ms |
コード長 | 216 bytes |
コンパイル時間 | 616 ms |
コンパイル使用メモリ | 68,212 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-24 07:02:15 |
合計ジャッジ時間 | 1,896 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 28 |
ソースコード
#include <iostream>#include<algorithm>using namespace std;int main() {int a[3];cin>>a[0]>>a[1]>>a[2];while(1){sort(a,a+3);if(a[2]-a[0]<3)break;a[0]++;a[2]-=2;}cout<<a[0]<<endl;return 0;}