結果
問題 | No.857 素振り |
ユーザー | Haruki0804S |
提出日時 | 2021-05-19 17:41:57 |
言語 | C++17(clang) (17.0.6 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 485 bytes |
コンパイル時間 | 789 ms |
コンパイル使用メモリ | 114,432 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-04-18 04:20:32 |
合計ジャッジ時間 | 1,242 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
5,248 KB |
testcase_01 | AC | 2 ms
5,376 KB |
testcase_02 | WA | - |
testcase_03 | AC | 2 ms
5,376 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { int a, b, c; // 標準入力から、空白や改行で区切られた整数と文字列を読み込む。 cin >> a >> b >> c; if ((a - c) <= 0){ c = c - 1; } if ((b -c ) <= 0 ){ c = c - 1; } cout << c << endl; // 整数と文字列を空白で区切って、標準出力に書き出す。 // cout << a << " " << b << " " << c << endl; return 0; }