QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#847032#9999. 好成绩candy0014AC ✓0ms3556kbC++14677b2025-01-07 16:58:092025-01-07 16:58:10

Judging History

你现在查看的是最新测评结果

  • [2025-01-07 16:58:10]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3556kb
  • [2025-01-07 16:58:09]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned int uint;
typedef unsigned long long ull;
const ll mod=998244353;
const ll inf=2e9;
const int N=2e5+5;
const int M=2e5+5;
const int V=2e6+5;
// int a,b;
void solve(int Ca){
	for(int i=1;i<=150;i++){
		if(i%3==2&&i%5==3&&i%7==6){
			cout<<i<<"\n";
			return;
		}
	}
}
int main(){
	#ifdef ONLINE_JUDGE
	ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
	#endif
	// #ifndef ONLINE_JUDGE
	// freopen("test.in","r",stdin);
	// freopen("test.out","w",stdout);
	// #endif
	
	int Ca=1;
//	cin>>Ca;
	for(int i=1;i<=Ca;i++){
		solve(i);
	}
	return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3556kb

input:



output:

83

result:

ok single line: '83'