結果
| 問題 | No.5025 Forest Fire |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-24 15:08:19 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 866µs | |
| コード長 | 550 bytes |
| 記録 | |
| コンパイル時間 | 2,617 ms |
| コンパイル使用メモリ | 347,064 KB |
| 実行使用メモリ | 9,928 KB |
| スコア | 148,596,922 |
| 最終ジャッジ日時 | 2026-10-24 15:09:19 |
| 合計ジャッジ時間 | 59,508 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / <nil> |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void){
const int n=50,k=100;
int g;
cin>>g>>g;
vector<string>s(n);
for(int i=0;i<n;i++){
cin>>s[i];
}
vector<array<int,2>>ans;
for(int i=0;i<n;i++){
if(s[n/2][i]!='0')ans.push_back({n/2,i});
if(s[i][n/2]!='0')ans.push_back({i,n/2});
}
sort(ans.begin(), ans.end());
ans.erase(unique(ans.begin(), ans.end()), ans.end());
cout<<ans.size()<<endl;
for(auto x:ans){
cout<<x[0]<<" "<<x[1]<<endl;
}
return 0;
}