結果
問題 | No.239 にゃんぱすー |
ユーザー |
![]() |
提出日時 | 2015-10-13 12:07:04 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 244 bytes |
コンパイル時間 | 44 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-07-21 07:25:11 |
合計ジャッジ時間 | 1,333 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 33 |
ソースコード
N = input()cnd = [1] * Nfor n in xrange(N):grts = raw_input().split()for i in xrange(N):if grts[i] != "nyanpass" and grts[i] != "-":cnd[i] = 0if cnd.count(1) == 1:print cnd.index(1)+1else:print -1