結果

問題 No.239 にゃんぱすー
ユーザー square1001square1001
提出日時 2016-10-29 17:47:08
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 1,342 ms
コンパイル使用メモリ 167,516 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-03 15:54:04
合計ジャッジ時間 2,356 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 WA -
testcase_05 AC 2 ms
6,944 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 2 ms
6,944 KB
testcase_10 WA -
testcase_11 AC 2 ms
6,944 KB
testcase_12 AC 1 ms
6,940 KB
testcase_13 WA -
testcase_14 AC 2 ms
6,940 KB
testcase_15 AC 2 ms
6,940 KB
testcase_16 AC 2 ms
6,944 KB
testcase_17 AC 2 ms
6,940 KB
testcase_18 AC 3 ms
6,944 KB
testcase_19 AC 3 ms
6,940 KB
testcase_20 WA -
testcase_21 AC 4 ms
6,944 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 5 ms
6,940 KB
testcase_26 AC 5 ms
6,944 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 2 ms
6,944 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 3 ms
6,940 KB
testcase_33 AC 3 ms
6,940 KB
testcase_34 WA -
testcase_35 AC 5 ms
6,940 KB
testcase_36 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int n, c[109]; string s;
int main() {
	cin >> n;
	for(int i = 0; i < n; i++) {
		for(int j = 0; j < n; j++) {
			cin >> s;
			if(s == "nyanpass") c[j]++;
		}
	}
	for(int i = 0; i < n; i++) {
		if(c[i] == n - 1) cout << i + 1 << endl;
	}
	return 0;
}
0