結果
| 問題 | No.5025 Forest Fire |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-24 15:46:07 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 433µs | |
| コード長 | 1,243 bytes |
| 記録 | |
| コンパイル時間 | 2,627 ms |
| コンパイル使用メモリ | 341,224 KB |
| 実行使用メモリ | 9,928 KB |
| スコア | 156,660,210 |
| 最終ジャッジ日時 | 2026-10-24 15:47:06 |
| 合計ジャッジ時間 | 59,697 ms |
|
ジャッジサーバーID (参考情報) |
judge5_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>>tmp={{0,20},{1,19},{2,18},{3,17},{4,16},{5,15},{6,14},{7,13},{8,12},{9,11},{10,10},{10,39},{11,11},{11,38},{11,40},{12,12},{12,37},{12,41},{13,13},{13,36},{13,42},{14,14},{14,35},{14,43},{15,15},{15,34},{15,44},{16,16},{16,33},{16,45},{17,17},{17,32},{17,46},{18,18},{18,31},{18,47},{19,19},{19,30},{19,48},{20,20},{20,29},{20,49},{21,21},{21,28},{22,22},{22,27},{23,23},{23,26},{24,24},{24,25},{25,24},{25,25},{26,23},{26,26},{27,0},{27,22},{27,27},{28,1},{28,21},{28,28},{29,2},{29,20},{29,29},{30,3},{30,19},{30,30},{31,4},{31,18},{31,31},{32,5},{32,17},{32,32},{33,6},{33,16},{33,33},{34,7},{34,15},{34,34},{35,8},{35,14},{35,35},{36,9},{36,13},{36,36},{37,10},{37,12},{37,37},{38,11},{38,36},{39,35},{40,34},{41,33},{42,32},{43,31},{44,30},{45,29},{46,28},{47,27},{48,26},{49,25}};
set<array<int,2>>ans;
for(int i=0;i<100;i++){
if(s[tmp[i][0]][tmp[i][1]]!='0')ans.insert({tmp[i][0],tmp[i][1]});
}
cout<<ans.size()<<endl;
for(auto x:ans){
cout<<x[0]<<" "<<x[1]<<endl;
}
return 0;
}