結果

問題 No.231 めぐるはめぐる (1)
ユーザー yuppe19 😺yuppe19 😺
提出日時 2015-06-26 22:35:38
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 291 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 6,080 KB
最終ジャッジ日時 2023-09-22 00:51:27
合計ジャッジ時間 2,394 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 15 ms
6,080 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 12 ms
5,988 KB
testcase_10 AC 12 ms
5,856 KB
testcase_11 AC 12 ms
5,856 KB
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
n = int(raw_input())
gd = [map(int, raw_input().split()) for _ in xrange(n)]
ok = 0
for i, (g, d) in enumerate(gd):
    v = (g - 30000 * d) * 6
    if v >= 30000:
        ok = 1
        break
if not ok:
    print 'NO'
else:
    print 'YES'
    print '\n'.join(str(i+1) * 6)
0