結果
| 問題 |
No.773 コンテスト
|
| コンテスト | |
| ユーザー |
dgd1724
|
| 提出日時 | 2019-04-01 22:20:09 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 571 bytes |
| コンパイル時間 | 580 ms |
| コンパイル使用メモリ | 57,048 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 03:13:43 |
| 合計ジャッジ時間 | 1,420 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <fstream>
#include <iostream>
#include <string>
int main() {
//std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf());
int A, B;
std::cin >> A >> B;
int ans = 3;
if (A > 25) {}
else if (A == 25) { ans = 2; }
else if (A == 24) {
if (B == 24) { ans = 2; }
else { ans = 1; }
}
else if (A == 23) {
if (B == 23) { ans = 2; }
else if (B == 24) { ans = 1; }
else { ans = 0; }
}
else {
if (B < 23) {}
else if (B == 23) { ans = 2; }
else if (B == 24) { ans = 1; }
else { ans = 0; }
}
std::cout << ans << std::endl;
return 0;
}
dgd1724