Codeforces 1735A - Working Week Solution
Problem Link: https://codeforces.com/problemset/problem/1735/A
Solution in C++:
- /// La ilaha illellahu muhammadur rasulullah
- ///******Bismillahir-Rahmanir-Rahim******///
- /// Abul Hasnat Tonmoy
- /// Department of CSE,23rd batch
- /// Islamic University,Bangladesh
- ///**********ALLAH IS ALMIGHTY************///
- #include <bits/stdc++.h>
- using namespace std;
- #define ll long long int
- int main() {
- ios_base::sync_with_stdio(0);
- cin.tie(0);
- int t, n;
- cin >> t;
- while (t--) {
- cin >> n;
- int a, ans = 0;
- a = (n - 3) / 3;
- ans = abs(1 - a);
- cout << ans << endl;
- }
- }
No comments