結果
| 問題 | No.5025 Forest Fire |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-10-24 16:12:32 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 251µs | |
| コード長 | 1,242 bytes |
| 記録 | |
| コンパイル時間 | 2,437 ms |
| コンパイル使用メモリ | 339,932 KB |
| 実行使用メモリ | 9,928 KB |
| スコア | 165,803,596 |
| 最終ジャッジ日時 | 2026-10-24 16:13:32 |
| 合計ジャッジ時間 | 59,180 ms |
|
ジャッジサーバーID (参考情報) |
judge2_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,24},{1,25},{2,26},{3,27},{4,28},{5,29},{6,30},{7,29},{8,28},{9,27},{10,26},{11,25},{12,24},{12,26},{13,23},{13,27},{14,22},{14,28},{15,21},{15,29},{16,20},{16,30},{17,19},{17,31},{18,18},{18,32},{19,17},{19,33},{20,2},{20,6},{20,16},{20,34},{21,5},{21,7},{21,15},{21,35},{22,4},{22,8},{22,14},{22,36},{23,3},{23,9},{23,13},{23,37},{24,2},{24,10},{24,12},{24,38},{25,1},{25,11},{25,39},{25,49},{26,0},{26,12},{26,38},{26,40},{26,48},{27,13},{27,37},{27,41},{27,47},{28,14},{28,36},{28,42},{28,46},{29,15},{29,35},{29,43},{29,45},{30,16},{30,34},{30,44},{31,17},{31,33},{31,47},{32,18},{32,32},{33,19},{33,31},{34,20},{34,30},{35,21},{35,29},{36,22},{36,28},{37,23},{37,27},{38,24},{38,26},{39,25},{40,24},{41,23},{42,22},{43,21},{44,20},{45,21},{46,22},{47,23},{48,24},{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;
}