結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー | funakoshi |
提出日時 | 2019-08-29 16:04:59 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 657 bytes |
コンパイル時間 | 349 ms |
コンパイル使用メモリ | 29,060 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-08-11 04:03:51 |
合計ジャッジ時間 | 2,454 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
4,380 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,376 KB |
testcase_07 | AC | 1 ms
4,376 KB |
testcase_08 | AC | 1 ms
4,380 KB |
testcase_09 | AC | 1 ms
4,376 KB |
testcase_10 | AC | 1 ms
4,376 KB |
testcase_11 | WA | - |
testcase_12 | AC | 0 ms
4,376 KB |
ソースコード
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> int main(void) { int exp,death,numofdungeon; int totalexp[1001]={0}; scanf("%d",&numofdungeon); for(int i=0;i<numofdungeon;i++) { scanf("%d %d",&exp,&death); totalexp[i]=exp-30000*death; } for(int i=0;i<numofdungeon;i++) { if(totalexp[i]>=500000) { int a=6; printf("YES\n"); while(a) { printf("%d\n",i+1); a--; } goto possible; } } printf("NO"); possible: return 0; }