結果
問題 | No.172 UFOを捕まえろ |
ユーザー |
|
提出日時 | 2019-12-14 12:35:39 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 266 bytes |
コンパイル時間 | 470 ms |
コンパイル使用メモリ | 54,620 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 03:11:09 |
合計ジャッジ時間 | 1,334 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include<iostream> #include<cstdlib> using namespace std; int equ(int x,int y,int r){ return abs(x)+abs(y)+(1.4142*r); } int main(void){ int x,y,r; cin>>x>>y>>r; cout<<equ(x,y,r)+1<<endl; return 0; }