Codeforces Gym 100623I Problem I. Important Wires
来源:互联网 发布:网络语弹棉花什么意思 编辑:程序博客网 时间:2024/05/20 03:43
题目传送门:http://codeforces.com/gym/100623/attachments
题解:这道题...说了一大堆没用的....如果你看了题不会做再看代码...你会大喊我去....
Code:
#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main(){ freopen("important.in","r",stdin); freopen("important.out","w",stdout); int n; while(cin>>n) { cin.get(); cout<<"Yes"<<endl; string temp; for(int i=1;i<=n;i++) { getline(cin,temp); if(i==1) cout<<"~"<<temp[0]<<"|"; cout<<temp[0]; i==n?cout<<endl:cout<<"|"; } } return 0;}
0 0
- Codeforces Gym 100623I Problem I. Important Wires
- Gym 100623I Important Wires
- CodeForces Gym 100735I
- codeforces Gym 101097 I Sticks
- Codeforces Gym 101164I Cubes
- 【Codeforces Gym 100228 - I】Graph Dp
- Codeforces Gym 100338I TV Show DFS
- codeforces Gym 101334 I IP Networks
- codeforces Gym 101341 I Matrix God
- Gym 101341G I love Codeforces 模拟
- Codeforces GYM 100651 D I Conduit! (水计算几何)
- Codeforces Gym 100339I Sum vs Product 剪枝搜索
- Codeforces Gym 100340I Longest Common Subpair 字符串DP
- Codeforces Gym 100341I Hungry Queen 2 Set水题
- Codeforces Gym 100341I Hungry Queen 2 Set+模拟
- 【扩展欧几里得】BAPC2014 I Interesting Integers (Codeforces GYM 100526)
- [交互 杂题] Codeforces Gym 100307 NEERC 13 I. Interactive Interception
- Codeforces Gym 100623C Problem C. Class
- ZBrushCore究竟简化了什么
- Anroid_自定义笑脸View
- 牛客网"前端大挑战"题目解答
- 再谈STM32的CAN过滤器-bxCAN的过滤器的4种工作模式以及使用方法总结
- CString转string
- Codeforces Gym 100623I Problem I. Important Wires
- java_匿名内部类
- View的工作原理
- React Native 从入门到原理
- 《Android开发艺术探索》读书笔记----第一章:Activity的启动模式
- pcl 学习2 利用矩阵转移一个点云
- Q&A——物理
- 理解RemoteViews
- EMP界面开发规范(2)