# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
829915 |
2023-08-18T15:51:25 Z |
OAleksa |
Cluedo (IOI10_cluedo) |
C++14 |
|
7 ms |
208 KB |
#include <bits/stdc++.h>
#include "grader.h"
#include "cluedo.h"
#define f first
#define s second
using namespace std;
#define int long long
// int x, y, z;
//
//
// int Theory(int a, int b, int c) {
// cout << a << " " << b << " " << c << endl;
// int k;
// cin >> k;
// return k;
// }
void Solve(){
int r;
int a = 1, b = 1, c = 1;
do {
if(r == 1)
a++;
else if(r == 2)
b++;
else if(r == 3)
c++;
r = Theory(a, b, c);
} while(r != 0);
}
// signed main()
// {
// ios_base::sync_with_stdio(false);
// cin.tie(0);
// cout.tie(0);
// int tt = 1;
// //cin >> tt;
// while(tt--) {
// cin >> x >> y >> z;
// Solve();
// }
// return 0;
// }
Compilation message
cluedo.cpp: In function 'void Solve()':
cluedo.cpp:25:10: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
25 | else if(r == 3)
| ^~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
208 KB |
Output is correct |
2 |
Failed |
7 ms |
208 KB |
wrong parameter |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
208 KB |
Output is correct |
2 |
Failed |
6 ms |
208 KB |
wrong parameter |
3 |
Halted |
0 ms |
0 KB |
- |