結果
問題 |
No.239 にゃんぱすー
|
ユーザー |
👑 |
提出日時 | 2019-03-29 20:11:49 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 638 bytes |
コンパイル時間 | 635 ms |
コンパイル使用メモリ | 59,360 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-07 01:23:48 |
合計ジャッジ時間 | 2,523 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 30 WA * 3 |
ソースコード
#include <iostream> #include <cstdlib> #include <vector> #include <string> int main() { int n; std::cin >> n; std::vector<bool> t(true, n); for(int r = 0; r < n; r++){ for(int c = 0; c < n; c++){ std::string s; std::cin >> s; if(c != r && s != "nyanpass"){ t[c] = false; } } } int res = -2; for(int i = 0; i < n; i++){ if(t[i]){ if(res == -2){ res = i; } else { res = -2; break; } } } std::cout << res + 1 << std::endl; }