結果
| 問題 | No.232 めぐるはめぐる (2) |
| コンテスト | |
| ユーザー |
fiord
|
| 提出日時 | 2015-08-20 00:23:53 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 588 bytes |
| 記録 | |
| コンパイル時間 | 866 ms |
| コンパイル使用メモリ | 176,040 KB |
| 実行使用メモリ | 7,340 KB |
| 最終ジャッジ日時 | 2026-08-16 23:39:30 |
| 合計ジャッジ時間 | 3,508 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int t,a,b; cin>>t>>a>>b;
if(t<a||t<b) cout<<"NO"<<endl;
else{
cout<<"YES"<<endl;
while(a>1&&b>1){
a--,b--,t--; cout<<">^"<<endl;
}
while(a>1){
a--,t--; cout<<"^"<<endl;
}
while(b>1){
b--,t--; cout<<">"<<endl;
}
if(t%2==1){
if(a*b) cout<<">^"<<endl;
else if(a) cout<<"^"<<endl;
else cout<<">"<<endl;
t--;
}
else{
if(a*b) cout<<">\n^"<<endl;
else if(a) cout<<">^\n<"<<endl;
else cout<<"^\nv>"<<endl;
t-=2;
}
while(t){
cout<<">\n<"<<endl;
t-=2;
}
}
return 0;
}
fiord