結果
| 問題 | No.455 冬の大三角 |
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2016-12-07 00:13:59 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 337 bytes |
| 記録 | |
| コンパイル時間 | 637 ms |
| コンパイル使用メモリ | 81,420 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-28 03:19:29 |
| 合計ジャッジ時間 | 2,548 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 52 WA * 2 |
ソースコード
#include <iostream>
#include <random>
using namespace std;
int main(){
int h, w;
cin >> h >> w;
string s[h];
for(int i = 0; i < h; i++) cin >> s[i];
random_device rnd;
int a = rnd() % h, b = rnd() % w;
while(s[a][b] == '*'){
a = rnd() % h;
b = rnd() % w;
}
s[a][b] = '*';
for(int i = 0; i < h; i++) cout << s[i] << endl;
}
ldsyb