結果
| 問題 |
No.455 冬の大三角
|
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2016-12-07 00:12:56 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 337 bytes |
| コンパイル時間 | 1,092 ms |
| コンパイル使用メモリ | 81,164 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-22 21:33:22 |
| 合計ジャッジ時間 | 2,931 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| 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