結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー | bosonosob |
提出日時 | 2015-06-27 14:21:59 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 470 bytes |
コンパイル時間 | 172 ms |
コンパイル使用メモリ | 25,008 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-22 03:11:54 |
合計ジャッジ時間 | 1,795 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 1 ms
4,376 KB |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | WA | - |
testcase_06 | AC | 1 ms
4,380 KB |
testcase_07 | AC | 1 ms
4,380 KB |
testcase_08 | AC | 0 ms
4,376 KB |
testcase_09 | AC | 1 ms
4,376 KB |
testcase_10 | AC | 1 ms
4,376 KB |
testcase_11 | WA | - |
testcase_12 | AC | 1 ms
4,380 KB |
ソースコード
#include <stdio.h> int main(int argc, char *argv[]){ int n; int g[1000]; int d[1000]; scanf("%d", &n); int i; for(i=0;i<n;i++){ scanf("%d %d", &g[i], &d[i]); } int a[n]; for(i=0;i<n;i++){ a[i] = g[i] - 30000*d[i]; } int biggest = a[0]; int number = 0; for(i=1;i<n;i++){ if(a[i]>biggest) { biggest = a[i]; number = i; } } if(biggest*6 >= 3000000){ printf("YES\n"); for(i=0;i<6;i++) printf("%d\n",number+1); } else printf("NO"); return 0; }