Skip to content

Commit 8643b76

Browse files
committed
Added 1335A - Candies and Two Sisters.cpp
1 parent e530b9c commit 8643b76

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

1335A - Candies and Two Sisters.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// ॐ नमः शिवाय
2+
#include<bits/stdc++.h>
3+
using namespace std;
4+
#define pb push_back
5+
6+
// Code Written By: Vikash Patel
7+
// Codeforces Profile: https://codeforces.com/profile/vikashpatel
8+
9+
int main()
10+
{
11+
int t;
12+
cin>>t;
13+
while(t--)
14+
{
15+
double n;
16+
cin>>n;
17+
int ans = ceil((n/2)-1);
18+
cout<<ans<<endl;
19+
}
20+
return 0;
21+
}

0 commit comments

Comments
 (0)