結果
問題 | No.455 冬の大三角 |
ユーザー |
![]() |
提出日時 | 2016-12-05 00:18:24 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 605 bytes |
コンパイル時間 | 1,234 ms |
コンパイル使用メモリ | 161,708 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-27 20:55:11 |
合計ジャッジ時間 | 3,362 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 53 WA * 1 |
ソースコード
#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; }