結果
| 問題 |
No.857 素振り
|
| コンテスト | |
| ユーザー |
mmn15277198
|
| 提出日時 | 2020-06-02 20:57:08 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 307 bytes |
| コンパイル時間 | 653 ms |
| コンパイル使用メモリ | 77,096 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-24 12:58:32 |
| 合計ジャッジ時間 | 1,050 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 2 WA * 6 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <math.h>
#include <iomanip>
using namespace std;
int main(){
int x,y,z;
cin >> x >> y >> z;
if(z<x){
cout << z << endl;
}else if(x<=z && z<y){
cout << z-1 << endl;
}else{
cout << z-2 << endl;
}
return 0;
}
mmn15277198