提交记录 10753


用户 题目 状态 得分 用时 内存 语言 代码长度
Vareal noip17a. 【NOIP2017】小凯的疑惑 Accepted 100 41.16 us 36 KB C++11 725 B
提交时间 评测时间
2019-09-28 22:26:18 2020-08-01 02:26:21
#include <bits/stdc++.h>
#define mem(i,a) memset(i,a,sizeof(i))
#define PI acos(-1.0)
#define DMAX 1000005     //数组大小 
#define MOD 19260817     //模数 
#define eps 1e-8
#define bl bool
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef double db;
template<class T> inline void read(T &f){
	f=0;
    T x=1;
    char ch=getchar();
    while(ch<48 || ch>57) {
        if(ch=='-') {
            x=-1;
        }
        ch=getchar();
    }
    while(ch<=57 && ch>=48) {
        f=f*10+ch-'0';
        ch=getchar();
    }
    f*=x;
}
int main(){
	ull a,b;
	read(a),read(b);
	if(a==2){
		cout<<b-2<<endl;
		return 0;
	} 
	if(b==2){
		cout<<a-2<<endl;
		return 0;
	}
	cout<<a*b-b-a<<endl;
	return 0; 
} 

CompilationN/AN/ACompile OKScore: N/A

Testcase #134.48 us36 KBAcceptedScore: 5

Testcase #241.16 us36 KBAcceptedScore: 5

Testcase #335.03 us36 KBAcceptedScore: 5

Testcase #439.59 us36 KBAcceptedScore: 5

Testcase #533.83 us36 KBAcceptedScore: 5

Testcase #635.85 us36 KBAcceptedScore: 5

Testcase #734.45 us36 KBAcceptedScore: 5

Testcase #835 us36 KBAcceptedScore: 5

Testcase #934.49 us36 KBAcceptedScore: 5

Testcase #1033.59 us36 KBAcceptedScore: 5

Testcase #1134.12 us36 KBAcceptedScore: 5

Testcase #1233.9 us36 KBAcceptedScore: 5

Testcase #1333.95 us36 KBAcceptedScore: 5

Testcase #1434.33 us36 KBAcceptedScore: 5

Testcase #1534.04 us36 KBAcceptedScore: 5

Testcase #1634.43 us36 KBAcceptedScore: 5

Testcase #1734.36 us36 KBAcceptedScore: 5

Testcase #1834.51 us36 KBAcceptedScore: 5

Testcase #1934.17 us36 KBAcceptedScore: 5

Testcase #2033.91 us36 KBAcceptedScore: 5


Judge Duck Online | 评测鸭在线
Server Time: 2024-12-05 09:44:25 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠