結果

問題 No.3049 Yes
ユーザー TlapesiumTlapesium
提出日時 2019-04-01 21:38:56
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 787 bytes
コンパイル時間 2,715 ms
実行使用メモリ 1,488 KB
スコア 100
最終ジャッジ日時 2019-04-01 21:39:01
ジャッジサーバーID
(参考情報)
judge6 /
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
1,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
constexpr int INF = 2147483647;
constexpr long long int INF_LL = 9223372036854775807;
constexpr int MOD = 1000000007;
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;

//      debug shrine
//
// #######################
//     ##           ##
//   ###################
//     ##           ##
//     ##           ##
//     ##           ##
//     ##           ##
//     ##           ##

int main(int argc, char* argv[]) {
	ifstream ifs("./a.txt");
	if (ifs.fail()) { //0回目
		cout << "Yes" << endl;
		ofstream ofs("./a.txt");
		ofs << "1" << endl;
	}
	else {
		int num;
		ifs >> num;
		if (num != 4) {
			cout << "Yes" << endl;
			ofstream ofs("./a.txt");
			ofs << num + 1 << endl;
		}
		else {
			cout << "No" << endl;
		}
	}
}
0