結果
| 問題 | No.231 めぐるはめぐる (1) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2016-10-30 11:32:27 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 178 bytes | 
| コンパイル時間 | 1,436 ms | 
| コンパイル使用メモリ | 165,856 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-11-24 23:33:49 | 
| 合計ジャッジ時間 | 2,074 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 11 | 
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int n,a,d,i=0;std::cin>>n;for(;n--;i++){std::cin>>a>>d;if(a/1e4>=50+3*d){printf("YES\n");for(n=6;n--;)printf("%d\n",i+1);exit(0);}}printf("NO\n");}
      | ^~~~
            
            ソースコード
#include<bits/stdc++.h>
main(){int n,a,d,i=0;std::cin>>n;for(;n--;i++){std::cin>>a>>d;if(a/1e4>=50+3*d){printf("YES\n");for(n=6;n--;)printf("%d\n",i+1);exit(0);}}printf("NO\n");}
            
            
            
        