首页 > TAG信息列表 > bets

1041 Be Unique (20分)

Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1,104]. The first one who bets on a unique number wins. For example, if there are 7 people

PAT_A 1041 Be Unique

PAT_A 1041 Be Unique 分析 建立对应的关系按要求统计分析即可满足题目的要求。 PAT_A 1041 Be Unique 题目的描述 Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number

A. Exciting Bets

题目:https://codeforces.com/contest/1543/problem/A Welcome to Rockport City! It is time for your first ever race in the game against Ronnie. To make the race interesting, you have bet a dollars and Ronnie has bet b dollars. But the fans seem to be disappo

Codeforces Round #730 (Div. 2)

A. Exciting Bets 对两个数同时加或者减,求最大gcd,就是abs(a-b),最后就是0,Δ;Δ,2Δ;2Δ,3Δ的情况 代码 int main() { int t; cin >>t; while (t--) { ll a, b; cin >> a >> b; if (a == b) cout << 0 << " " << 0 << endl; else i

算法笔记-问题 C: Be Unique (20)

问题 C: Be Unique (20) 题目描述 Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1, 104]. The first one who bets on a unique number wins. For

PAT A1041 Be Unique

PAT A1041 Be Unique 题目描述:   Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1,10​4​​]. The first one who bets on a unique number wins.

(甲)1041 Be Unique (20 分)

题目: Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1,10​4​​]. The first one who bets on a unique number wins. For example, if there a