Submission #526499

# Submission time Handle Problem Language Result Execution time Memory
526499 2022-02-15T03:49:45 Z Bilegt Red-blue table (IZhO19_stones) C++14
0 / 100
43 ms 1244 KB
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
const int MOD = 1e9 + 7;
const int INF = 1e9 + 1000;

void nemeh(int a, int b){
     int x, y, q, w, e;
     
}
void hasah(int a, int b){
     int x, y, q, w, e;
}
void tentsuu(int a, int b){
     int x, y, q, w, e;
     cout << a + (a-(a / 2 +1))<<endl;
     for(q = 1;q <= a; q++){
          for( w = 1; w <= a / 2 +1;w++){
               cout << '+'; 
          }
          for( w = a/ 2+2; w <= a; w++){
               cout << '-';
          }
          cout << endl;
     }
}
int main(){
	int t;
	cin >> t;
	while(t--){
	     int a, b, c, d, e, f;
	     cin >> a >> b;
	     if(a == b){
	          tentsuu(a, b);
	     }
	     if(a > b){
	          nemeh(a, b);
	     }
	     if(a < b){
	          hasah(a, b);
	     }
	}
	return 0;
}

Compilation message

stones.cpp: In function 'void nemeh(int, int)':
stones.cpp:9:10: warning: unused variable 'x' [-Wunused-variable]
    9 |      int x, y, q, w, e;
      |          ^
stones.cpp:9:13: warning: unused variable 'y' [-Wunused-variable]
    9 |      int x, y, q, w, e;
      |             ^
stones.cpp:9:16: warning: unused variable 'q' [-Wunused-variable]
    9 |      int x, y, q, w, e;
      |                ^
stones.cpp:9:19: warning: unused variable 'w' [-Wunused-variable]
    9 |      int x, y, q, w, e;
      |                   ^
stones.cpp:9:22: warning: unused variable 'e' [-Wunused-variable]
    9 |      int x, y, q, w, e;
      |                      ^
stones.cpp: In function 'void hasah(int, int)':
stones.cpp:13:10: warning: unused variable 'x' [-Wunused-variable]
   13 |      int x, y, q, w, e;
      |          ^
stones.cpp:13:13: warning: unused variable 'y' [-Wunused-variable]
   13 |      int x, y, q, w, e;
      |             ^
stones.cpp:13:16: warning: unused variable 'q' [-Wunused-variable]
   13 |      int x, y, q, w, e;
      |                ^
stones.cpp:13:19: warning: unused variable 'w' [-Wunused-variable]
   13 |      int x, y, q, w, e;
      |                   ^
stones.cpp:13:22: warning: unused variable 'e' [-Wunused-variable]
   13 |      int x, y, q, w, e;
      |                      ^
stones.cpp: In function 'void tentsuu(int, int)':
stones.cpp:16:10: warning: unused variable 'x' [-Wunused-variable]
   16 |      int x, y, q, w, e;
      |          ^
stones.cpp:16:13: warning: unused variable 'y' [-Wunused-variable]
   16 |      int x, y, q, w, e;
      |             ^
stones.cpp:16:22: warning: unused variable 'e' [-Wunused-variable]
   16 |      int x, y, q, w, e;
      |                      ^
stones.cpp: In function 'int main()':
stones.cpp:32:17: warning: unused variable 'c' [-Wunused-variable]
   32 |       int a, b, c, d, e, f;
      |                 ^
stones.cpp:32:20: warning: unused variable 'd' [-Wunused-variable]
   32 |       int a, b, c, d, e, f;
      |                    ^
stones.cpp:32:23: warning: unused variable 'e' [-Wunused-variable]
   32 |       int a, b, c, d, e, f;
      |                       ^
stones.cpp:32:26: warning: unused variable 'f' [-Wunused-variable]
   32 |       int a, b, c, d, e, f;
      |                          ^
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB in the table A+B is not equal to 4
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Wrong answer
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB in the table A+B is not equal to 4
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 204 KB Wrong answer
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 43 ms 1244 KB Wrong answer in test 24 24: 35 < 44
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB in the table A+B is not equal to 4
2 Halted 0 ms 0 KB -