結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー | togatoga |
提出日時 | 2015-09-03 22:55:41 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 250 ms |
コンパイル使用メモリ | 6,496 KB |
実行使用メモリ | 6,160 KB |
最終ジャッジ日時 | 2023-09-26 04:08:47 |
合計ジャッジ時間 | 2,406 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 13 ms
6,044 KB |
testcase_01 | AC | 12 ms
6,024 KB |
testcase_02 | AC | 11 ms
6,128 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 12 ms
6,136 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 11 ms
5,956 KB |
testcase_10 | AC | 11 ms
6,100 KB |
testcase_11 | AC | 11 ms
6,032 KB |
testcase_12 | AC | 13 ms
6,052 KB |
ソースコード
N = input() limit = 3000000 index = -1 ans = 0 for i in range(N): G,D = map(int, raw_input().split()) t = G - 30000 * D if (t > ans): ans = t index = i if (6 * t >= limit): print "YES" for i in range(6): print index + 1 else: print "NO"