結果

問題 No.455 冬の大三角
ユーザー はむこ
提出日時 2016-12-05 00:18:00
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 605 bytes
コンパイル時間 1,302 ms
コンパイル使用メモリ 159,776 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-27 20:37:49
合計ジャッジ時間 3,354 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 51 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <time.h>
#include <sys/time.h>
using namespace std;

#define rep(i,n) for(long long i = 0; i < (long long)(n); i++)

using ll = long long;
int main(void) {
    struct timeval myTime; struct tm *time_st; gettimeofday(&myTime, NULL); time_st = localtime(&myTime.tv_sec); srand(myTime.tv_usec);
    ll h, w; cin >> h >> w; vector<string> b(h); rep(i, h) cin >> b[i];
    ll ah, aw;
    while (1) {
        ah = rand() % h;
        aw = rand() % w;
        if (b[ah][aw] == '-') break;
    }
    b[ah][aw] = '*';
        
    rep(i, h) cout << b[i] << endl;

    return 0;
}
0