結果
問題 |
No.857 素振り
|
ユーザー |
![]() |
提出日時 | 2020-06-02 21:11:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 322 bytes |
コンパイル時間 | 604 ms |
コンパイル使用メモリ | 77,232 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-24 13:24:37 |
合計ジャッジ時間 | 1,047 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <iostream> #include <string> #include <algorithm> #include <vector> #include <math.h> #include <iomanip> using namespace std; int main(){ long long x,y,z; cin >> x >> y >> z; if(z<x){ cout << z << endl; }else if(x<=z && z<y){ cout << z-1 << endl; }else if(y<=z){ cout << z-2 << endl; } return 0; }