Submission #146816
Source Code Expand
#define _CRT_SECURE_NO_WARNINGS
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
#include <set>
#include <map>
#include <queue>
#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <ctime>
#include <cstring>
#include <cctype>
#include <cassert>
#define rep(i,n) for(int (i)=0;(i)<(int)(n);++(i))
#define rer(i,l,u) for(int (i)=(int)(l);(i)<=(int)(u);++(i))
#define reu(i,l,u) for(int (i)=(int)(l);(i)<(int)(u);++(i))
#if defined(_MSC_VER) || __cplusplus > 199711L
#define aut(r,v) auto r = (v)
#else
#define aut(r,v) typeof(v) r = (v)
#endif
#define each(it,o) for(aut(it, (o).begin()); it != (o).end(); ++ it)
#define all(o) (o).begin(), (o).end()
#define pb(x) push_back(x)
#define mp(x,y) make_pair((x),(y))
#define mset(m,v) memset(m,v,sizeof(m))
#define INF 0x3f3f3f3f
#define INFL 0x3f3f3f3f3f3f3f3fLL
using namespace std;
typedef vector<int> vi; typedef pair<int,int> pii; typedef vector<pair<int,int> > vpii;
typedef long long ll; typedef vector<long long> vl; typedef pair<long long,long long> pll; typedef vector<pair<long long,long long> > vpll;
typedef vector<string> vs; typedef long double ld;
template<typename T, typename U> inline void amin(T &x, U y) { if(y < x) x = y; }
template<typename T, typename U> inline void amax(T &x, U y) { if(x < y) x = y; }
int main() {
int x, y;
scanf("%d%d", &x, &y);
printf("%d\n", y / x);
return 0;
}
Submission Info
Submission Time
2014-03-22 21:01:08+0900
Task
A - おいしいたこ焼きの作り方
User
anta
Language
C++ (G++ 4.6.4)
Score
100
Code Size
1459 Byte
Status
AC
Exec Time
21 ms
Memory
932 KB
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:41:23: 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
Set Name
Test Cases
All
rand0.txt, rand1.txt, rand10.txt, rand11.txt, rand12.txt, rand13.txt, rand14.txt, rand15.txt, rand16.txt, rand17.txt, rand18.txt, rand19.txt, rand2.txt, rand20.txt, rand21.txt, rand22.txt, rand23.txt, rand24.txt, rand25.txt, rand26.txt, rand27.txt, rand28.txt, rand29.txt, rand3.txt, rand4.txt, rand5.txt, rand6.txt, rand7.txt, rand8.txt, rand9.txt, s1.txt, s2.txt, s3.txt
Case Name
Status
Exec Time
Memory
rand0.txt
AC
21 ms
804 KB
rand1.txt
AC
20 ms
680 KB
rand10.txt
AC
20 ms
804 KB
rand11.txt
AC
20 ms
928 KB
rand12.txt
AC
20 ms
804 KB
rand13.txt
AC
20 ms
800 KB
rand14.txt
AC
20 ms
744 KB
rand15.txt
AC
19 ms
800 KB
rand16.txt
AC
19 ms
804 KB
rand17.txt
AC
19 ms
796 KB
rand18.txt
AC
20 ms
800 KB
rand19.txt
AC
20 ms
800 KB
rand2.txt
AC
21 ms
800 KB
rand20.txt
AC
20 ms
804 KB
rand21.txt
AC
21 ms
804 KB
rand22.txt
AC
20 ms
680 KB
rand23.txt
AC
21 ms
764 KB
rand24.txt
AC
20 ms
804 KB
rand25.txt
AC
20 ms
932 KB
rand26.txt
AC
20 ms
680 KB
rand27.txt
AC
20 ms
812 KB
rand28.txt
AC
20 ms
760 KB
rand29.txt
AC
20 ms
808 KB
rand3.txt
AC
21 ms
808 KB
rand4.txt
AC
19 ms
804 KB
rand5.txt
AC
20 ms
804 KB
rand6.txt
AC
20 ms
800 KB
rand7.txt
AC
21 ms
804 KB
rand8.txt
AC
19 ms
676 KB
rand9.txt
AC
20 ms
800 KB
s1.txt
AC
21 ms
676 KB
s2.txt
AC
20 ms
760 KB
s3.txt
AC
20 ms
676 KB