結果
問題 |
No.467 隠されていたゲーム
|
ユーザー |
![]() |
提出日時 | 2017-05-05 12:14:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 344 bytes |
コンパイル時間 | 1,529 ms |
コンパイル使用メモリ | 165,916 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-14 08:40:51 |
合計ジャッジ時間 | 2,905 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 20 WA * 4 |
ソースコード
#include <bits/stdc++.h> #define REP(i,n,N) for(int i=(n);i<(int)N;i++) #define p(s) cout<<(s)<<endl using namespace std; int main(){ int n,x,y; cin>>n; int d[16]; int idou=0; REP(i,0,n) { cin>>d[i]; idou=max(idou,d[i]); } cin>>x>>y; int ans=0; int goal=max(abs(x),abs(y)); for(ans=0;goal>idou*ans;ans++) ; p(ans); return 0; }