結果
| 問題 | No.3707 Unique Ticket |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-30 17:17:45 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 613 bytes |
| 記録 | |
| コンパイル時間 | 4,542 ms |
| コンパイル使用メモリ | 359,148 KB |
| 実行使用メモリ | 9,924 KB |
| 最終ジャッジ日時 | 2026-09-30 17:18:00 |
| 合計ジャッジ時間 | 4,918 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 2 WA * 43 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N,M;
cin>>N>>M;
vector<string>S(N);
for(int i=0;i<N;i++){
cin>>S[i];
}
if(N==1){
cout<<1<<endl;
return 0;
}
int ans=0;
for(int i=0;i<N;i++){
swap(S[0],S[i]);
cout<<S[0]<<endl;
bool f=false;
for(int p=0;p<M;p++){
if(S[0][p]=='o'){
f=true;
}
}
if(!f)continue;
bool t=true;
for(int j=1;j<N;j++){
for(int l=0;l<M;l++){
if(S[0][l]=='o'&&S[0][l]==S[j][l]){
t=false;
break;
}
}
}
if(t)ans++;
}
cout<<ans<<endl;
}