Tag: Codeforces Round #421 (Div. 2)
Codeforces Round #421 (Div....
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import java.util.TreeMap;
/**
*...
Codeforces Round #421 (Div....
#include<stdio.h>
#include<stdlib.h>
#define LL long long
int p, cur;
int main(void)
{
LL ans, sum;
int...
Codeforces Round #421 (Div....
import java.util.Scanner;
public class C {
public static void main(String args)...
Codeforces Round #421 (Div....
#include <iostream>
using namespace std;
int main(){
int n,m,q;
cin>>n>>m;
q=(n*m+90)/180+2;
if(q<n){
n=q;
}
if(n<3){
n=3;
}
cout<<"2 1 "<<n;
return 0;
}
Codeforces Round #421 (Div....
#include <iostream>
using namespace std;
int c,v,vl,l,a;
int main(){
cin>>c>>v>>vl>>a>>l;
int s=1;
for(int i=v;i<c;){
v+=a;
if(v>vl) v=vl;
i-=l;
i+=v;
s++;}
cout<<s<<endl;
}