結果
問題 | No.24 数当てゲーム |
ユーザー | pluto77 |
提出日時 | 2016-02-23 17:00:24 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 11 ms / 5,000 ms |
コード長 | 435 bytes |
コンパイル時間 | 853 ms |
コンパイル使用メモリ | 7,112 KB |
実行使用メモリ | 6,432 KB |
最終ジャッジ日時 | 2023-10-23 19:26:00 |
合計ジャッジ時間 | 932 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 11 ms
6,432 KB |
testcase_01 | AC | 11 ms
6,432 KB |
testcase_02 | AC | 11 ms
6,432 KB |
testcase_03 | AC | 11 ms
6,432 KB |
testcase_04 | AC | 11 ms
6,432 KB |
testcase_05 | AC | 10 ms
6,432 KB |
testcase_06 | AC | 10 ms
6,432 KB |
testcase_07 | AC | 10 ms
6,432 KB |
testcase_08 | AC | 11 ms
6,432 KB |
testcase_09 | AC | 11 ms
6,432 KB |
ソースコード
#coding: utf-8 ##yuki_24 s_yes=[0 for i in xrange(10)] s_no=[1 for i in xrange(10)] s_test=[0 for i in xrange(10)] n=int(raw_input()) for i in xrange(n): s=raw_input().split() if s[4]=="YES": for j in xrange(4): s_yes[int(s[j])]+=1 elif s[4]=="NO": for j in xrange(4): s_no[int(s[j])]=0 for i in xrange(10): s_test[i]=s_yes[i]*s_no[i] if max(s_yes)==0: print s_no.index(1) else: print s_test.index(max(s_test))