結果
問題 | No.227 簡単ポーカー |
ユーザー | hadrori |
提出日時 | 2015-07-25 16:35:04 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 518 bytes |
コンパイル時間 | 1,442 ms |
コンパイル使用メモリ | 142,856 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-24 12:23:08 |
合計ジャッジ時間 | 2,627 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
ソースコード
#include <bits/stdc++.h> using namespace std; #define repi(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define rep(i,n) repi(i,0,n) int n, s[1024]; void solve() { rep(i,n) { if(6*s[i] >= 3000000) { puts("YES"); rep(j,6) printf("%d\n", i+1); return; } } puts("NO"); } void input() { scanf("%d", &n); int g, d; rep(i,n) { scanf("%d%d", &g, &d); s[i] = g-30000*d; } } int main() { input(); solve(); return 0; }