QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#398849#1893. Friendly Rooksdarkroute#WA 0ms3580kbC++141.3kb2024-04-25 19:06:282024-04-25 19:06:29

Judging History

你现在查看的是最新测评结果

  • [2024-04-25 19:06:29]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3580kb
  • [2024-04-25 19:06:28]
  • 提交

answer

//Practice, Practice, Practice

//#pragma GCC optimize("O3")
//#pragma GCC optimize("unroll-loops")
//#pragma GCC target("avx,avx2,fma")

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>

#define debug(x) cerr << #x << " is " << x << endl;
#define Practice ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define el '\n'
#define pb push_back
#define F first
#define S second
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define ll long long
#define ull unsigned long long
#define one(x) __builtin_popcountll(x)
#define double long double
#define sz(x) x.size()
#define INF 1e9
#define int long long
using namespace std;
using namespace __gnu_pbds;
typedef tree<int,null_type,less<int>,rb_tree_tag, tree_order_statistics_node_update> indexed_set;
const int MAXN = 5e5 + 5, SQ = 350, mod = 1e9 + 7, LOG = 21, base = 37;

void doWork() {
    int n, m, k;
    cin >> n >> m >> k;
    if(n < k)return void (cout << "Impossible" << el);
    for(int i = 0; i < n; ++i){
        for(int j = 0; j < m; ++j){
            if(i == j)cout << "*";
            else cout << ".";
        }
        cout << el;
    }
}
int32_t main(){
    Practice
    int testcases = 1;
    //cin >> testcases;
    for(; testcases; testcases--){
        doWork();
    }
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3580kb

input:

1 2 1

output:

*.

result:

wrong answer Unexpected answer: *.