# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1237959 | al_reem_2010 | Coins (IOI17_coins) | C++20 | 0 ms | 0 KiB |
// اَللَهُمَ صَلِ عَلَىَ مُحَمَدٍ وَ آلِ مُحَمَدٍ
#include "bits/stdc++.h"
#include "coins.h"
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include <map>
#include <set>
#include <queue>
#include <thread>
#include <fstream>
#include <stack>
using namespace std ;
//#define int long long
#define pb push_back
#define si size()
#define fi first
#define se second
#define all(a) a.begin(),a.end()
#define applejuice ios::sync_with_stdio(false) ; cin.tie(nullptr) ; cout.tie(nullptr) ;
//const int inf=1e18 ;
const int mod=1e9+7 ;
const int maxn=1e5+7 ;
int tt=1 ;
vector<int> coin_flips(int b[] , int c)
{
vector<int> f(1) ;
if(c==0 && b[0]==0) {f[0]=1 ;}
if(c==0 && b[0]==1) {f[0]=0 ;}
if(c==1 && b[0]==0) {f[0]=0 ;}
if(c==1 && b[0]==1) {f[0]=1 ;}
return f ;
}
int find_coin(int b[])
{
return b[0] ;
}