Submission #154649


Source Code Expand

#include <cstdlib>
#include <cstring>
#include <memory>
#include <cstdio>
#include <fstream>
#include <iostream>
#include <cmath>
#include <string>
#include <sstream>
#include <stack>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
using namespace std;

typedef signed long long ll;

#undef _P
#define _P(...) (void)printf(__VA_ARGS__)

#define FOR(x,to) for(x=0;x<to;x++)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ZERO(a) memset(a,0,sizeof(a))
void _fill_int(int* p,int val,int rep) {int i;	FOR(i,rep) p[i]=val;}
#define FILL_INT(a,val) _fill_int((int*)a,val,sizeof(a)/4)
#define MINUS(a) _fill_int((int*)a,-1,sizeof(a)/4)
ll GETi() { ll i;scanf("%lld",&i); return i;}
//-------------------------------------------------------

void solve() {
	int f,i,j,k,l,x,y;
	float a,b;
	cin>>x;
	
	if(x==3 || x==6 || x==9) _P("YES\n");
	else _P("NO\n");
	
	
}


int main(int argc,char** argv){
	string s;
	if(argc==1) ios::sync_with_stdio(false);
	for(int i=1;i<argc;i++) s+=argv[i],s+='\n';
	for(int i=s.size()-1;i>=0;i--) ungetc(s[i],stdin);
	solve();
	return 0;
}

Submission Info

Submission Time
Task A - 世界のFizzBuzz
User kmjp
Language C++ (G++ 4.6.4)
Score 100
Code Size 1183 Byte
Status AC
Exec Time 68 ms
Memory 928 KB

Compile Error

./Main.cpp: In function ‘ll GETi()’:
./Main.cpp:29:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 9
Set Name Test Cases
All test_1.txt, test_2.txt, test_3.txt, test_4.txt, test_5.txt, test_6.txt, test_7.txt, test_8.txt, test_9.txt
Case Name Status Exec Time Memory
sample_01.txt AC 43 ms 792 KB
sample_02.txt AC 24 ms 792 KB
sample_03.txt AC 22 ms 728 KB
test_1.txt AC 23 ms 920 KB
test_2.txt AC 22 ms 924 KB
test_3.txt AC 68 ms 804 KB
test_4.txt AC 24 ms 928 KB
test_5.txt AC 24 ms 892 KB
test_6.txt AC 24 ms 916 KB
test_7.txt AC 28 ms 812 KB
test_8.txt AC 24 ms 920 KB
test_9.txt AC 21 ms 924 KB