1093A - Dice Rolling - CodeForces Solution


math *800

Please click on ads to support us..

Python Code:

inp1 = int(input())
for i in range(inp1):
    inp2 = int(input())
    print((inp2//7)+1)

C++ Code:

#include<bits/stdc++.h>

using namespace std;


int main()
{
	
	int n;
	cin>>n;
	int k;
	for(int t=0;t<n;t++)
    {
    	cin>>k;
    	cout<<k/2<<endl;
	 } 
	
	return 0;
}


Comments

Submit
0 Comments
More Questions

1130A - Be Positive
465A - inc ARG
1260A - Heating
1740D - Knowledge Cards
1028A - Find Square
1370B - GCD Compression
888D - Almost Identity Permutations
1106C - Lunar New Year and Number Division
849B - Tell Your World
1650E - Rescheduling the Exam
899C - Dividing the numbers
1023C - Bracket Subsequence
1579D - Productive Meeting
1749E - Cactus Wall
1682C - LIS or Reverse LIS
578A - A Problem about Polyline
1038E - Maximum Matching
1141C - Polycarp Restores Permutation
1685A - Circular Local MiniMax
432B - Football Kit
10C - Digital Root
743B - Chloe and the sequence
909D - Colorful Points
1283C - Friends and Gifts
605B - Lazy Student
1687B - Railway System
61D - Eternal Victory
588B - Duff in Love
12C - Fruits
447B - DZY Loves Strings