結果
問題 | No.197 手品 |
ユーザー |
|
提出日時 | 2020-04-22 19:05:06 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 2,269 ms |
コンパイル使用メモリ | 193,384 KB |
最終ジャッジ日時 | 2025-01-09 22:37:17 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 39 WA * 4 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ string s,t; int n; cin>>s>>n>>t; if((n==0 && s!=t) || (n>0 && count(s.begin(),s.end(),'o')!=count(t.begin(),t.end(),'o'))){ puts("SUCCESS"); } else{ puts("FAILURE"); } return 0; }