結果

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

テストケース

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

ソースコード

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 > 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