結果
問題 | No.455 冬の大三角 |
ユーザー |
![]() |
提出日時 | 2016-12-05 00:18:32 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 605 bytes |
コンパイル時間 | 1,571 ms |
コンパイル使用メモリ | 160,128 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 20:38:08 |
合計ジャッジ時間 | 3,080 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 49 WA * 5 |
ソースコード
#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; }