mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 03:31:59 +00:00
CF9A Die Roll
R38990825
This commit is contained in:
parent
7a56a690a9
commit
7b7d7241fe
34
problem/CF9A/CF9A.cpp
Normal file
34
problem/CF9A/CF9A.cpp
Normal file
@ -0,0 +1,34 @@
|
||||
// R38990825
|
||||
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int a, b, c;
|
||||
string ans;
|
||||
cin >> a >> b;
|
||||
c = max(a, b);
|
||||
switch (c) {
|
||||
case 1:
|
||||
ans = "1/1";
|
||||
break;
|
||||
case 2:
|
||||
ans = "5/6";
|
||||
break;
|
||||
case 3:
|
||||
ans = "2/3";
|
||||
break;
|
||||
case 4:
|
||||
ans = "1/2";
|
||||
break;
|
||||
case 5:
|
||||
ans = "1/3";
|
||||
break;
|
||||
case 6:
|
||||
ans = "1/6";
|
||||
break;
|
||||
}
|
||||
cout << ans << endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user