結果
| 問題 |
No.773 コンテスト
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-02-18 20:52:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 368 bytes |
| コンパイル時間 | 1,654 ms |
| コンパイル使用メモリ | 193,196 KB |
| 最終ジャッジ日時 | 2025-01-06 21:14:24 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int cnt(bool _flg[3]){
int _cnt=0;
for(int i=0;i<3;i++){
if(_flg[i]==true)_cnt++;
}
return _cnt;
}
int main()
{
int a,b;
cin>>a>>b;
bool flg[3] = {true,true,true};
for(int i=a;i<=b;i++){
if(i==23)flg[0]=false;
else if(i==24)flg[1]=false;
else if(i==25)flg[2]=false;
}
cout<<cnt(flg)<<endl;
return 0;
}