A. Santa Claus and a Place in a Class
来源:互联网 发布:云南省扶贫大数据平台 编辑:程序博客网 时间:2024/05/23 19:16
#include <iostream>#include <algorithm>#include <cstring>using namespace std;int main(){ int l,h,n; while(cin>>l>>h>>n){ for(int i=0;i<=l;i++){ if(i*2*h+1<=n&&(i+1)*2*h>=n){ int ll=i+1; int yu=n-i*2*h; if(yu%2==1){ cout<<ll<<" "<<yu/2+1<<" "<<"L"<<endl; } else cout<<ll<<" "<<yu/2<<" "<<"R"<<endl; } } } return 0;}
1 0
- 748A. Santa Claus and a Place in a Class
- A. Santa Claus and a Place in a Class
- A. Santa Claus and a Place in a Class
- CF # 389 Santa Claus and a Place in a Class
- CF # 389 Santa Claus and a Place in a Class
- 【codeforces 752A】Santa Claus and a Place in a Class
- 【Codeforces Round #389】Codeforces 752A Santa Claus and a Place in a Class
- Codeforces Round #389 (Div. 2)A. Santa Claus and a Place in a Class(水题)
- 748 A. Santa Claus and a Place in a Class codeforces
- Codeforces 748A-Santa Claus and a Place in a Class
- 【codeforces 748A】Santa Claus and a Place in a Class
- Santa Claus and a Place in a Class (Codeforces-748A)
- 753 A. Santa Claus and Candies
- cf 753A Santa Claus and Candies
- 【codeforces 752D】Santa Claus and a Palindrome
- Codeforces748D-Santa Claus and a Palindrome(贪心,构造)
- Codeforces Round #389 (Div. 2):Santa Claus and a Palindrome
- Codeforces 752D Santa Claus and a Palindrome map应用
- 15. 3Sum
- Android 仿ButterKnife写自己的IOC注解框架
- LeetCode刷题(C++)——Remove Nth Node From End of List(Medium)
- javascript中使用key-value
- [已解决]Waiting for Debugger Application is waiting for the debugger to attach Force close 框一直显示
- A. Santa Claus and a Place in a Class
- Maven知识总结
- 英语沙龙第三章 英语零基础起步-全栈工程师熊盼
- XMLHttpRequest发送请求和获取响应
- 聊聊架构(2)
- 读书笔记《Effective C++》条款09:绝不在构造和析构过程中调用virtual函数
- android 串口通讯
- Canvas之drawPath
- JSF学习--JSF2组件与Tomcat9.*容器兼容的配置问题