結果

問題 No.232 めぐるはめぐる (2)
ユーザー GoryudyumaGoryudyuma
提出日時 2015-06-26 22:55:13
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 2,448 bytes
コンパイル時間 1,246 ms
コンパイル使用メモリ 143,328 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-22 01:22:28
合計ジャッジ時間 3,667 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
4,380 KB
testcase_01 AC 132 ms
4,376 KB
testcase_02 AC 130 ms
4,376 KB
testcase_03 AC 129 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 WA -
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 94 ms
4,380 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 1 ms
4,376 KB
testcase_13 AC 1 ms
4,380 KB
testcase_14 WA -
testcase_15 AC 1 ms
4,380 KB
testcase_16 AC 1 ms
4,380 KB
testcase_17 AC 1 ms
4,376 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 1 ms
4,380 KB
testcase_22 AC 1 ms
4,376 KB
testcase_23 AC 1 ms
4,380 KB
testcase_24 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>

#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
#endif

#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>

#ifdef __GXX_EXPERIMENTAL_CXX0X__
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#endif

using namespace std;


int main ()
{
	int a , b , c;
	cin >> a >> b >> c;
	if( a < b || a < c )
	{
		cout << "NO" << endl;
	} else
	{
		cout << "YES" << endl;
		if( a == 1 )
		{
			if( b )
			{
				cout << '^';
				b--;
			}
			if( c )
			{
				cout << '>';
				c--;
			}
			a--;
			cout << endl;
		} else
		{
			if( ( a - max ( b , c ) ) % 2 )
			{
				if( b == 0 && c == 0 )
				{
					cout << '^' << endl;
					cout << '>' << endl;
					cout << "v<" << endl;
					a -= 3;
				} else
				{
					if( b > c )
					{
						cout << '^';
						b--;
					} else
					{
						cout << '>';
						c--;
					}
					cout << endl;
					a--;
				}
			}
			while( ( b || c ) )
			{
				if( b )
				{
					cout << '^';
					b--;
				}
				if( c )
				{
					cout << '>';
					c--;
				}
				a--;
				cout << endl;
			}
			while( a > 0 )
			{
				a--;
				a--;
				cout << "^>" << endl;
				cout << "v<" << endl;
			}
		}

	}
}
0