Click here to Skip to main content
15,891,033 members
Home / Discussions / Python
   

Python

 
GeneralRe: Updating a Dictionary in python iteratively Pin
User 1604268027-Aug-23 6:27
User 1604268027-Aug-23 6:27 
GeneralRe: Updating a Dictionary in python iteratively Pin
Richard MacCutchan27-Aug-23 6:30
mveRichard MacCutchan27-Aug-23 6:30 
QuestionWhich technique to apply if function Y changes with values of X variables other than linear regression Pin
Member 106396367-Aug-23 12:42
Member 106396367-Aug-23 12:42 
AnswerRe: Which technique to apply if function Y changes with values of X variables other than linear regression Pin
Dave Kreskowiak7-Aug-23 12:57
mveDave Kreskowiak7-Aug-23 12:57 
GeneralRe: Which technique to apply if function Y changes with values of X variables other than linear regression Pin
Andre Oosthuizen7-Aug-23 23:18
mveAndre Oosthuizen7-Aug-23 23:18 
QuestionFile memory usage issues Pin
DevilDuck1236-Jul-23 20:26
DevilDuck1236-Jul-23 20:26 
AnswerRe: File memory usage issues Pin
Maverick49426-Aug-23 13:05
Maverick49426-Aug-23 13:05 
QuestionRoom arrangements Pin
ajay singh May20232-Jul-23 8:53
ajay singh May20232-Jul-23 8:53 
This year politicians and economists have been invited to participate in Stanford Institute for Theoretical Economics (SITE 2021) conference as guests. You have to accommodate them in r rooms such that-
No room may remain empty.
A room may contain either only politicians or only economists, not both.
No economists are allowed to stay alone in a room.
Find the number of ways to place them. Note though, that all the rooms are identical. But each of the economists and politicians are unique.
Since the number of ways can be very large, print the answer modulo 998,244,353.
Input Format:
The first line of the input contains a single integer T denoting the number of test cases. The description of T test cases follows.
The first and only line of each test case contains three space-separated integers p, q and r denoting the number of politicians, economists and rooms.
Output Format:
For each test case, output the number of ways to place them modulo 998,244,353.
Constraints
1≤T≤100
1≤p,q,r≤100
Sample Input:
4
2 1 4
2 4 4
2 5 4 
2 8 4
Sample Output:
0
3
10
609
Explanation:
 Test case 1: 4 rooms and 3 people. A room would remain empty.
 Test case 2: There are 4 rooms and 6 people. There are 3 possible ways to distribute these 6 people in 3 rooms.

{Politician 1}, {Politician 2}, {Economist 1, Economist 2}, {Economist 3, Economist 4}
{Politician 1}, {Politician 2}, {Economist 1, Economist 3}, {Economist 2, Economist 4}
{Politician 1}, {Politician 2}, {Economist 1, Economist 4}, {Economist 2, Economist 3}
 Please note that the rooms are identical.

AnswerRe: Room arrangements Pin
Richard MacCutchan2-Jul-23 21:52
mveRichard MacCutchan2-Jul-23 21:52 
AnswerRe: Room arrangements Pin
Andre Oosthuizen3-Jul-23 0:43
mveAndre Oosthuizen3-Jul-23 0:43 
QuestionInvalid signature - Fondy payment gateway Pin
Kostiantyn Lahutin27-Jun-23 4:04
Kostiantyn Lahutin27-Jun-23 4:04 
AnswerRe: Invalid signature - Fondy payment gateway Pin
Richard MacCutchan27-Jun-23 5:23
mveRichard MacCutchan27-Jun-23 5:23 
GeneralRe: Invalid signature - Fondy payment gateway Pin
Kostiantyn Lahutin29-Jun-23 0:15
Kostiantyn Lahutin29-Jun-23 0:15 
AnswerRe: Invalid signature - Fondy payment gateway Pin
jschell28-Jun-23 6:15
jschell28-Jun-23 6:15 
GeneralRe: Invalid signature - Fondy payment gateway Pin
Kostiantyn Lahutin29-Jun-23 0:13
Kostiantyn Lahutin29-Jun-23 0:13 
AnswerRe: Invalid signature - Fondy payment gateway Pin
Maverick49426-Aug-23 13:40
Maverick49426-Aug-23 13:40 
Questionfor machin software's Pin
pilot choice18-May-23 6:31
pilot choice18-May-23 6:31 
AnswerRe: for machin software's Pin
Richard MacCutchan18-May-23 6:33
mveRichard MacCutchan18-May-23 6:33 
QuestionClosed. This question is not written in English. It is not currently accepting answers. Stack Overflow is an English-only site. If you are confident that you will be able to understand and respond to answers and comments in English, please edit your Pin
Member 1599162128-Apr-23 23:38
Member 1599162128-Apr-23 23:38 
AnswerRe: Closed. This question is not written in English. It is not currently accepting answers. Stack Overflow is an English-only site. If you are confident that you will be able to understand and respond to answers and comments in English, please edit y Pin
OriginalGriff28-Apr-23 23:48
mveOriginalGriff28-Apr-23 23:48 
AnswerRe: Closed. This question is not written in English. It is not currently accepting answers. Stack Overflow is an English-only site. If you are confident that you will be able to understand and respond to answers and comments in English, please edit y Pin
Richard MacCutchan29-Apr-23 0:20
mveRichard MacCutchan29-Apr-23 0:20 
QuestionInsensitive Match with Sensitive Substitute? Pin
Philip Derrida14-Apr-23 2:22
Philip Derrida14-Apr-23 2:22 
AnswerRe: Insensitive Match with Sensitive Substitute? Pin
OriginalGriff14-Apr-23 2:23
mveOriginalGriff14-Apr-23 2:23 
AnswerRe: Insensitive Match with Sensitive Substitute? Pin
Richard MacCutchan14-Apr-23 2:46
mveRichard MacCutchan14-Apr-23 2:46 
QuestionPartial Functions? Pin
glennPattonWork35-Apr-23 6:16
professionalglennPattonWork35-Apr-23 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.