結果

問題 No.455 冬の大三角
ユーザー ldsyb
提出日時 2016-12-07 00:14:14
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 337 bytes
コンパイル時間 990 ms
コンパイル使用メモリ 81,180 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-28 03:19:44
合計ジャッジ時間 2,976 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 50 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0