package com.thefirst171020;
import java.awt.Dimension;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Browser {
public static void main(String[] args) {
System.out.println("start selenium");
System.setProperty("webdriver.chrome.driver","C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe");
WebDriver driver=new ChromeDriver();
// driver.manage().window().maximize();
driver.manage().window().setSize(new Dimension(1280,800));
driver.get("https://baidu.com");
driver.quit();
System.out.println("end");
}
}
setSize报错:The method setSize(org.openqa.selenium.Dimension) in the type WebDriver.Window is not applicable for the arguments (java.awt.Dimension)
#include
#include
#define MAXN 22
int num[MAXN+1]={0,1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,1597,2584,4181,6765,10946,17711,28657};
int t,n,m;
int ans[MAXN+1],goal;
void main()
{
int i,j;
scanf("%d",&t);
for(i=1;i<=t;i++)
{
scanf("%d",&n);
goal=0;
memset(ans,0,sizeof(ans));
for(j=MAXN;j>=1;j--)
if (num[j]<=n)
{
n-=num[j];
ans[j]=1;
}
for(j=1;j<MAXN;j++)
goal+=ans[j+1]*num[j];
printf("%d\n",goal);
}
}