problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p03369 | #include <bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a, b) for (int a = 0; a < b; a++)
#define Sort(a) sort(a.begin(), a.end())
#define rev(a) reverse(a.begin(), a.end())
#define fi first
#define se second
#define co(a) cout << a << endl
#define sz size()
#define bgn begin()
#define en end()... | #include <bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a, b) for (int a = 0; a < b; a++)
#define Sort(a) sort(a.begin(), a.end())
#define rev(a) reverse(a.begin(), a.end())
#define fi first
#define se second
#define co(a) cout << a << endl
#define sz size()
#define bgn begin()
#define en end()... | null | 1,135,812 | 1,135,813 | u322177979 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
string k;
cin >> k;
int count = 700;
for (int i = 0; i < 3; i++) {
if (k[i] = 'o') {
count += 100;
}
}
cout << count << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string k;
cin >> k;
int count = 700;
for (int i = 0; i < 3; i++) {
if (k[i] == 'o') {
count += 100;
}
}
cout << count << endl;
} | null | 1,135,819 | 1,135,820 | u922999444 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
ll t = 0;
for (int i = 0; i < 3; i++) {
if (s[0] == 'o')
t++;
}
cout << 700 + t * 100 << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
ll t = 0;
for (int i = 0; i < 3; i++) {
if (s[i] == 'o')
t++;
}
cout << 700 + t * 100 << endl;
} | null | 1,135,821 | 1,135,822 | u535010493 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s;
cin >> s;
int ans = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'o') {
ans++;
}
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
string s;
cin >> s;
int ans = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'o') {
ans++;
}
}
cout << 700 + 100 * ans << endl;
}
| null | 1,135,867 | 1,135,868 | u707853565 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
string s;
cin >> s;
cout << 700 + count(s.begin(), s.end(), 'o') << '\n';
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
string s;
cin >> s;
cout << 700 + count(s.begin(), s.end(), 'o') * 100 << '\n';
return 0;
}
| null | 1,135,869 | 1,135,870 | u003406051 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
string s;
cin >> s;
cout << 700 + count(s.begin(), s.end(), '0') << '\n';
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
string s;
cin >> s;
cout << 700 + count(s.begin(), s.end(), 'o') * 100 << '\n';
return 0;
}
| null | 1,135,871 | 1,135,870 | u003406051 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int sum = 0;
for (int i = 0; i < 3; i++) {
if (s.at(0) == 'o') {
sum++;
}
}
cout << 700 + 100 * sum << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int sum = 0;
for (int i = 0; i < 3; i++) {
if (s.at(i) == 'o') {
sum++;
}
}
cout << 700 + 100 * sum << endl;
} | null | 1,135,872 | 1,135,873 | u232711814 | cpp |
p03369 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int counter = 700;
for (int i = 0; i < s.size(); i++) {
if (s[i] == '○') {
counter += 100;
}
}
cout << counter << endl;
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int counter = 700;
for (int i = 0; i < s.size(); i++) {
if (s[i] == 'o') {
counter += 100;
}
}
cout << counter << endl;
return 0;
}
| null | 1,135,885 | 1,135,886 | u840257514 | cpp |
p03369 | #include <iostream>
#include <string>
using namespace std;
int main() {
string S;
cin >> S;
int counter = 0;
for (int i = 0; i < 3; ++i) {
if (S[i] == 'o')
++counter;
}
cout << counter * 100;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string S;
cin >> S;
int counter = 0;
for (int i = 0; i < 3; ++i) {
if (S[i] == 'o')
++counter;
}
cout << 700 + counter * 100;
} | null | 1,135,898 | 1,135,899 | u804812813 | cpp |
p03369 | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int count = 700;
if (s.at(0) == 'o')
count += 100;
if (s.at(1) == 'o')
count += 100;
if (s.at(2) == 'o')
count += 100;
cout << s;
}
| #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int count = 700;
if (s.at(0) == 'o')
count += 100;
if (s.at(1) == 'o')
count += 100;
if (s.at(2) == 'o')
count += 100;
cout << count << endl;
}
| null | 1,135,911 | 1,135,912 | u726604428 | cpp |
p03369 | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int count = 0;
if (s.at(0) == 'o')
count += 100;
if (s.at(1) == 'o')
count += 100;
if (s.at(2) == 'o')
count += 100;
cout << s;
}
| #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int count = 700;
if (s.at(0) == 'o')
count += 100;
if (s.at(1) == 'o')
count += 100;
if (s.at(2) == 'o')
count += 100;
cout << count << endl;
}
| null | 1,135,913 | 1,135,912 | u726604428 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int count = 0;
for (int i = 0; i < 3; i++) {
if (s.at(i) == 0) {
count++;
}
}
cout << 700 + count * 100 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int count = 0;
for (int i = 0; i < 3; i++) {
if (s.at(i) == 'o') {
count++;
}
}
cout << 700 + count * 100 << endl;
}
| null | 1,135,711 | 1,135,712 | u974931918 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int n = 700;
for (int i = 0; i < 3; i++) {
if (S[i] == '⚪︎') {
n += 100;
}
}
cout << n;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int n = 700;
for (int i = 0; i < 3; i++) {
if (S[i] == 'o') {
n += 100;
}
}
cout << n;
}
| null | 1,135,737 | 1,135,738 | u224951113 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
char c1, c2, c3;
cin >> c1 >> c2 >> c3;
cout << 700 + (c1 == 'o') + (c2 == 'o') + (c3 == 'o');
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
char c1, c2, c3;
cin >> c1 >> c2 >> c3;
cout << 700 + (c1 == 'o') * 100 + (c2 == 'o') * 100 + (c3 == 'o') * 100;
}
| null | 1,135,751 | 1,135,752 | u503381547 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
// long long
using ll = long long;
//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
// begin() end()
#define all(x) (x... | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
// long long
using ll = long long;
//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
// begin() end()
#define all(x) (x... | null | 1,135,764 | 1,135,765 | u832995587 | cpp |
p03369 | #include <algorithm>
#include <deque>
#include <iostream>
#include <map>
#include <math.h>
#include <string.h>
#include <vector>
using namespace std;
int main() {
string S;
int ans = 700;
cin >> S;
for (char i : S) {
if (i == '〇') {
ans += 100;
}
}
cout << ans << endl;
return 0;
} | #include <algorithm>
#include <deque>
#include <iostream>
#include <map>
#include <math.h>
#include <string.h>
#include <vector>
using namespace std;
int main() {
string S;
int ans = 700;
cin >> S;
for (char i : S) {
if (i == 'o') {
ans += 100;
}
}
cout << ans << endl;
return 0;
}
| null | 1,135,781 | 1,135,782 | u221769213 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int p = 700;
for (int i = 0; i < 3; i++) {
if (s.at(i) = 'o') {
p += 100;
}
}
cout << p << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int p = 700;
for (int i = 0; i < 3; i++) {
if (s.at(i) == 'o') {
p += 100;
}
}
cout << p << endl;
} | null | 1,135,783 | 1,135,784 | u165267345 | cpp |
p03369 | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <vector>
typedef long long ll;
typedef unsigned long long ull;
const ll LINF = 1e18;
const int INF = 1e8;
using namespace std;
//マクロ定義
#define vvint(vec, n, m, l) ... | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <vector>
typedef long long ll;
typedef unsigned long long ull;
const ll LINF = 1e18;
const int INF = 1e8;
using namespace std;
//マクロ定義
#define vvint(vec, n, m, l) ... | null | 1,135,792 | 1,135,793 | u776194115 | cpp |
p03369 | #include <cstdio>
int main() {
char S[4];
scanf("%s", S);
printf("%d\n", 700 + 100 * (S[0] == 'o' + S[1] == 'o' + S[2] == 'o'));
return 0;
} | #include <cstdio>
int main() {
char S[4];
scanf("%s", S);
printf("%d\n", 700 + 100 * ((S[0] == 'o') + (S[1] == 'o') + (S[2] == 'o')));
return 0;
} | null | 1,135,794 | 1,135,795 | u980205854 | cpp |
p03369 | #include <bits/stdc++.h>
#define endl "\n"
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
string S;
cin >> S;
int r = 0;
for (auto s : S) {
if (s == 'o')
r++;
}
cout << 7000 + 100 * r << endl;
return 0;
}
| #include <bits/stdc++.h>
#define endl "\n"
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
string S;
cin >> S;
int r = 0;
for (auto s : S) {
if (s == 'o')
r++;
}
cout << 700 + 100 * r << endl;
return 0;
}
| null | 1,135,928 | 1,135,929 | u850266651 | cpp |
p03369 | #include "bits/stdc++.h"
using ll = long long;
using namespace std;
int main() {
string a;
cin >> a;
ll ans = 700;
for (ll i = 0; i < 3; i++) {
if (a[i] == '0')
ans += 100;
}
cout << ans << endl;
}
| #include "bits/stdc++.h"
using ll = long long;
using namespace std;
int main() {
string a;
cin >> a;
ll ans = 700;
for (ll i = 0; i < 3; i++) {
if (a[i] == 'o')
ans += 100;
}
cout << ans << endl;
} | null | 1,135,932 | 1,135,933 | u546736430 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int sum = 0;
for (int i = 0; i < S.size(); i++) {
if (S.at(i) == '○') {
sum++;
}
}
cout << 700 + 100 * sum << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
int sum = 0;
for (int i = 0; i < S.size(); i++) {
if (S.at(i) == 'o') {
sum++;
}
}
cout << 700 + 100 * sum << endl;
}
| null | 1,135,947 | 1,135,948 | u096717230 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
/* メモリ食い過ぎ注意 */
#define int long long
typedef long long ll;
ll gcd(ll a, ll b) {
if (a < b)
gcd(b, a);
if (b == 0)
return a;
int r;
while ((r = a % b)) {
a = b;
b = r;
}
return b;
}
/* define const */
const ll INF = (1ll << 60);
const ll MOD ... | #include <bits/stdc++.h>
using namespace std;
/* メモリ食い過ぎ注意 */
#define int long long
typedef long long ll;
ll gcd(ll a, ll b) {
if (a < b)
gcd(b, a);
if (b == 0)
return a;
int r;
while ((r = a % b)) {
a = b;
b = r;
}
return b;
}
/* define const */
const ll INF = (1ll << 60);
const ll MOD ... | null | 1,135,973 | 1,135,974 | u218759384 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
string a;
cin >> a;
int ans = 0;
for (int i = 0; i < 3; i++) {
if (a.at(i) == 'o')
ans++;
}
cout << ans << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string a;
cin >> a;
int ans = 0;
for (int i = 0; i < 3; i++) {
if (a.at(i) == 'o')
ans++;
}
cout << ans * 100 + 700 << endl;
}
| null | 1,135,999 | 1,136,000 | u535810324 | cpp |
p03369 | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int cnt, ans;
cnt = 0;
for (int i = 0; i < 3; i++) {
if (s[i] == 'o') {
ans++;
}
}
ans = 700 + 100 * cnt;
cout << ans << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int cnt, ans;
cnt = 0;
for (int i = 0; i < 3; i++) {
if (s[i] == 'o') {
cnt++;
}
}
ans = 700 + 100 * cnt;
cout << ans << endl;
return 0;
} | null | 1,136,013 | 1,136,014 | u749475370 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
cout << 700 + (S[0] == 'o' + S[1] == 'o' + S[2] == 'o') * 100 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
cout << 700 + ((S[0] == 'o') + (S[1] == 'o') + (S[2] == 'o')) * 100 << endl;
} | null | 1,136,062 | 1,136,063 | u598073939 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
ll counter = 0;
for (ll i = 0; s.size(); i++) {
if (s[i] == 'o')
counter++;
}
cout << counter * 100 + 700 << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
ll counter = 0;
for (ll i = 0; i < s.size(); i++) {
if (s[i] == 'o')
counter++;
}
cout << counter * 100 + 700 << endl;
}
| null | 1,135,981 | 1,135,982 | u139458416 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
int pr = 700;
cin >> S;
for (char s : S)
if (s == 'x')
pr += 100;
cout << pr;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string S;
int pr = 700;
cin >> S;
for (char s : S)
if (s == 'o')
pr += 100;
cout << pr;
return 0;
}
| null | 1,136,193 | 1,136,194 | u705499360 | cpp |
p03369 | #include <array>
#include <iostream>
int main() {
int y = 700;
std::array<char, 3> S;
for (int i = 0; i < 3; i++) {
std::cin >> S.at(i);
}
for (int i = 0; i < 3; i++) {
if (S.at(i) = 'o') {
y += 100;
}
}
std::cout << y;
return 0;
} | #include <array>
#include <iostream>
int main() {
int y = 700;
std::array<char, 3> S;
for (int i = 0; i < 3; i++) {
std::cin >> S.at(i);
}
for (int i = 0; i < 3; i++) {
if (S.at(i) == 'o') {
y += 100;
}
}
std::cout << y;
return 0;
} | null | 1,135,028 | 1,135,029 | u235321041 | cpp |
p03369 | #include <array>
#include <iostream>
int main() {
int a = 700;
std::array<char, 3> S;
for (int i = 0; i < 3; i++) {
std::cin >> S.at(i);
}
for (int i = 0; i < 3; i++) {
if (S.at(i) = 'o') {
a += 100;
}
}
std::cout << a;
return 0;
} | #include <array>
#include <iostream>
int main() {
int y = 700;
std::array<char, 3> S;
for (int i = 0; i < 3; i++) {
std::cin >> S.at(i);
}
for (int i = 0; i < 3; i++) {
if (S.at(i) == 'o') {
y += 100;
}
}
std::cout << y;
return 0;
} | null | 1,135,030 | 1,135,029 | u235321041 | cpp |
p03369 | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int price = 700;
for (int i = 0; i < 3; i++) {
if (s.at(i) = 'o') {
price += 100;
}
}
cout << price << endl;
} | #include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int price = 700;
for (int i = 0; i < 3; i++) {
if (s.at(i) == 'o') {
price += 100;
}
}
cout << price << endl;
} | null | 1,136,130 | 1,136,131 | u756208532 | cpp |
p03369 | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string s;
int sum = 700;
cin >> s;
for (int i = 0; i < 3; i++) {
if ('o')
sum += 100;
}
cout << sum << endl;
return 0;
}
| #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
string s;
int sum = 700;
cin >> s;
for (int i = 0; i < 3; i++) {
if (s[i] == 'o')
sum += 100;
}
cout << sum << endl;
return 0;
}
| null | 1,136,138 | 1,136,139 | u174434198 | cpp |
p03369 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
string S;
cin >> S;
int ans = 0;
if (S[0] == 'o')
ans += 100;
if (S[1] == 'o')
ans += 100;
if (S[2] == 'o')
ans += 100;
cout << ans << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
string S;
cin >> S;
int ans = 700;
if (S[0] == 'o')
ans += 100;
if (S[1] == 'o')
ans += 100;
if (S[2] == 'o')
ans += 100;
cout << ans << endl;
return 0;
} | null | 1,136,140 | 1,136,141 | u619672182 | cpp |
p03369 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int count = 0;
if (s[0] = 'o')
count++;
if (s[1] = 'o')
count++;
if (s[2] = 'o')
count++;
cout << 700 + 100 * count << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
int count = 0;
if (s[0] == 'o')
count++;
if (s[1] == 'o')
count++;
if (s[2] == 'o')
count++;
cout << 700 + 100 * count << endl;
return 0;
} | null | 1,136,144 | 1,136,145 | u405629022 | cpp |
p03369 | #include <iostream>
using namespace std;
int main() {
// while(1)
//{
int cnt = 0, i = 0, sum;
string s;
cin >> s;
for (int i = 0; i < 3; i++) {
if (s[i] == 'o') {
cnt += 1;
i++;
}
}
sum = 700 + (100 * cnt);
cout << sum << endl;
//}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
// while(1)
//{
int cnt = 0, i = 0, sum;
string s;
cin >> s;
for (int i = 0; i < 3; i++) {
if (s[i] == 'o') {
cnt += 1;
}
}
sum = 700 + (100 * cnt);
cout << sum << endl;
return 0;
}
| null | 1,136,379 | 1,136,380 | u968176683 | cpp |
p03369 | #include "math.h"
#include <algorithm>
#include <array>
#include <iostream>
#include <vector>
using namespace std;
int main() {
std::string S;
cin >> S;
int price = 700;
for (int i = 0; i < 3; i++) {
if (S[0] == 'o') {
price += 100;
}
}
cout << price << std::endl;
return 0;
}
| #include "math.h"
#include <algorithm>
#include <array>
#include <iostream>
#include <vector>
using namespace std;
/*
int main() {
int N, X;
vector<int> m;
cin >> N >> X;
for (int i=0; i<N; i++) {
int mm;
cin >> mm;
m.push_back(mm);
X -= mm;
}
int cnt = N;
int min_price = *std::min_element... | null | 1,136,284 | 1,136,285 | u196574642 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int ans = 700, n;
char s[10];
int main() {
scanf("%s", s);
int n = strlen(s);
for (int i = 1; i <= n; i++)
if (s[i] == 'o')
ans += 100;
printf("%d", ans);
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int ans = 700, n;
char s[10];
int main() {
scanf("%s", s);
int n = strlen(s);
for (int i = 0; i < n; i++)
if (s[i] == 'o')
ans += 100;
printf("%d", ans);
return 0;
} | null | 1,136,286 | 1,136,287 | u959888894 | cpp |
p03369 | #include <string>
using namespace std;
#include "bits/stdc++.h"
#include <limits.h>
#include <stdio.h>
int X = 700;
string s;
int main() {
cin >> s;
for (int i = 0; i < 3; i++) {
if (s[i] = 'o') {
X = X + 100;
}
}
cout << X;
return 0;
}
| #include <string>
using namespace std;
#include "bits/stdc++.h"
#include <limits.h>
#include <stdio.h>
int X = 700;
string s;
int main() {
cin >> s;
for (int i = 0; i < 3; i++) {
if (s[i] == 'o') {
X = X + 100;
}
}
cout << X;
return 0;
}
| null | 1,136,288 | 1,136,289 | u400683303 | cpp |
p03369 | #include <bits/stdc++.h>
using namespace std;
int main() {
char a, b, c;
int sum = 700;
cin >> a >> b >> c;
if (a == 'O')
sum = sum + 100;
if (b == 'O')
sum = sum + 100;
if (c == 'O')
sum = sum + 100;
cout << sum << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
char a, b, c;
int sum = 700;
cin >> a >> b >> c;
if (a == 'o')
sum = sum + 100;
if (b == 'o')
sum = sum + 100;
if (c == 'o')
sum = sum + 100;
cout << sum << endl;
return 0;
} | null | 1,136,292 | 1,136,293 | u519395224 | cpp |
p03369 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <numeric>
#include <string>
#include <vector>
#define ull unsigned long long
#define ll long long
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin >> s;
int ans = 0;
f... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <numeric>
#include <string>
#include <vector>
#define ull unsigned long long
#define ll long long
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
string s;
cin >> s;
int ans = 700;
... | null | 1,136,368 | 1,136,369 | u960286066 | cpp |
p03370 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int N, X;
cin >> N >> X;
vector<int> m(N);
int i;
for (i = 0; i < N; i++) {
cin >> m[i];
}
int min = m[0];
for (i = 0; i < N; i++) {
X -= m[i];
if (m[i] < min) {
min = m[i];
}
}
int count = 0;
while ... | #include <iostream>
#include <vector>
using namespace std;
int main() {
int N, X;
cin >> N >> X;
vector<int> m(N);
int i;
for (i = 0; i < N; i++) {
cin >> m[i];
}
int min = m[0];
for (i = 0; i < N; i++) {
X -= m[i];
if (m[i] < min) {
min = m[i];
}
}
int count = 0;
while ... | null | 1,136,477 | 1,136,478 | u317241784 | cpp |
p03370 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, x, y) for (int i = x; i < y; i++)
#define print(A, x, n) \
rep(i, 0, n) { cout << (i ? " " : "") << A[i] x; } \
cout << endl;
#define pprint(A, y, m, n) ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, x, y) for (int i = x; i < y; i++)
#define print(A, x, n) \
rep(i, 0, n) { cout << (i ? " " : "") << A[i] x; } \
cout << endl;
#define pprint(A, y, m, n) ... | null | 1,136,637 | 1,136,638 | u977554186 | cpp |
p03370 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, cnt = 0, tmp;
cin >> n >> x;
vector<int> m(n);
for (int i = 0; i < n; i++) {
cin >> tmp;
m.at(i) = tmp;
x -= tmp;
cnt++;
}
sort(m.begin(), m.end());
while (x > 0) {
x -= m.at(0);
if (x > 0)
cnt++;
}
cout... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x, cnt = 0, tmp;
cin >> n >> x;
vector<int> m(n);
for (int i = 0; i < n; i++) {
cin >> tmp;
m.at(i) = tmp;
x -= tmp;
cnt++;
}
sort(m.begin(), m.end());
while (x >= 0) {
x -= m.at(0);
if (x >= 0)
cnt++;
}
co... | null | 1,136,693 | 1,136,694 | u475043664 | cpp |
p03370 | #include <iostream>
int main() {
int n, x;
std::cin >> n >> x;
int m[100];
for (int i = 0; i < n; i++)
std::cin >> m[i];
int count;
// 一個ずつ作る
for (int i = 0; i < n; i++)
x -= m[i];
count = n;
// 必要なお菓子の素が少ない順に並べる
int min = m[0];
for (int i = 1; i < n; i++)
if (min > m[i])
min = ... | #include <iostream>
int main() {
int n, x;
std::cin >> n >> x;
int m[100];
for (int i = 0; i < n; i++)
std::cin >> m[i];
int count;
for (int i = 0; i < n; i++)
x -= m[i];
count = n;
int min = m[0];
for (int i = 1; i < n; i++)
if (min > m[i])
min = m[i];
while (true) {
if ((x... | null | 1,136,699 | 1,136,700 | u098494358 | cpp |
p03370 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x;
cin >> n >> x;
int m[110];
int sum = 0, mi = 100000;
for (int i = 0; i < n; i++) {
cin >> m[i];
sum += m[i];
mi = min(mi, m[i]);
}
cout << (x - sum) / mi + 1 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, x;
cin >> n >> x;
int m[110];
int sum = 0, mi = 100000;
for (int i = 0; i < n; i++) {
cin >> m[i];
sum += m[i];
mi = min(mi, m[i]);
}
cout << (x - sum) / mi + n << endl;
} | null | 1,136,715 | 1,136,716 | u294721290 | cpp |
p03370 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
int main() {
int n, x;
cin >> n >> x;
vector<int> m(n);
rep(i, n) cin >> m[i];
sort(m.begin(), m.end());
rep(i, n) x -= m[i];
int ans = n;
while (x > m[0]) {
x -= m[0];
ans++;
}
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
typedef long long ll;
int main() {
int n, x;
cin >> n >> x;
vector<int> m(n);
rep(i, n) cin >> m[i];
sort(m.begin(), m.end());
rep(i, n) x -= m[i];
int ans = n;
while (x >= m[0]) {
x -= m[0];
ans++;
}
... | null | 1,136,717 | 1,136,718 | u430209651 | cpp |
p03485 | #include <bits/stdc++.h>
using namespace std;
int main() {
// 一年の秒数
int a, b;
cin >> a >> b;
// 以下のコメント/* */を消して追記する
cout << (a + b) / 2 + 1 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
// 一年の秒数
int a, b;
cin >> a >> b;
// 以下のコメント/* */を消して追記する
cout << (a + b + 1) / 2 << endl;
} | null | 1,237,815 | 1,237,816 | u676964517 | cpp |
p03485 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) / 2 + 1 << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b + 1) / 2 << endl;
}
| null | 1,238,400 | 1,238,401 | u103850114 | cpp |
p03485 | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << ((a + b) / 2 + 1) << endl;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << ((a + b + 1) / 2) << endl;
} | null | 1,238,606 | 1,238,607 | u331302877 | cpp |
p03485 | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << ceil((a + b) / 2) << endl;
} | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main() {
float a, b;
cin >> a >> b;
cout << ceil((a + b) / 2) << endl;
} | null | 1,238,701 | 1,238,702 | u311238192 | cpp |
p03485 | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b;
int c;
cin >> a >> b;
c = (a + b) / 2 + 1;
cout << c << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b;
int c;
cin >> a >> b;
c = (a + b) / 2 + 0.99;
cout << c << endl;
} | null | 1,238,715 | 1,238,716 | u095067945 | cpp |
p03485 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int c = (a + b) / 2 + (((a % 2) + (b % 2)) % 2) / 2;
cout << c << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int c = (a + b) / 2 + (((a % 2) + (b % 2)) % 2);
cout << c << endl;
} | null | 1,239,011 | 1,239,012 | u092236857 | cpp |
p03485 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b) / 2;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << (a + b + 1) / 2;
} | null | 1,238,871 | 1,238,872 | u883323885 | cpp |
p03485 | #include <bits/stdc++.h>
using namespace std;
int main() {
float a, b;
int c;
cin >> a >> b;
c = (a + b + 0.5) / 2;
cout << c << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
int c;
cin >> a >> b;
c = (a + b + 1) / 2;
cout << c << endl;
return 0;
} | null | 1,239,402 | 1,239,403 | u606529847 | cpp |
p03485 | #include <bits/stdc++.h>
int main() {
double a, b;
scanf("%f%f", &a, &b);
double avg = (a + b) / 2;
avg += 0.4;
printf("%.0f\n", avg);
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
double a, b;
scanf("%lf%lf", &a, &b);
double avg = (a + b) / 2;
avg += 0.4;
printf("%.0f\n", avg);
return 0;
}
| null | 1,239,635 | 1,239,636 | u230583048 | cpp |
p03485 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
using LL = long long;
using ULL = unsigned long ... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
using LL = long long;
using ULL = unsigned long ... | null | 1,239,641 | 1,239,642 | u093922224 | cpp |
p03486 | /*
Talkin' to myself and feelin' old
Sometimes I'd like to quit, nothin' ever seems to fit
Hangin' around, nothin' to do but frown
Rainy days and Mondays always get me down
_________________________
_________________________
936 Hours of Solitude
Quarantine_Day : 39
*/
#include <bits/st... | /*
Talkin' to myself and feelin' old
Sometimes I'd like to quit, nothin' ever seems to fit
Hangin' around, nothin' to do but frown
Rainy days and Mondays always get me down
_________________________
_________________________
936 Hours of Solitude
Quarantine_Day : 39
*/
#include <bits/st... | null | 1,239,939 | 1,239,940 | u210731198 | cpp |
p03487 | #include <bits/stdc++.h>
#define ri register
#define int long long
#define E (n + 1)
using namespace std;
const int N = 200010;
inline int read() {
int s = 0, w = 1;
ri char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
w = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9')
... | #include <bits/stdc++.h>
#define ri register
#define int long long
#define E (n + 1)
using namespace std;
const int N = 200010;
inline int read() {
int s = 0, w = 1;
ri char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
w = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9')
... | null | 1,241,239 | 1,241,240 | u499810514 | cpp |
p03487 |
/* 実行時間1s制限の場合10^6 1,000,000 : 余裕をもって間に合う10^7
10,000,000 : おそらく間に合う10^8 100,000,000 : 非常にシンプルな処理
でないと厳しい
*/
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#include <bits/stdc++.h>
#define M_PI 3.14159265358979323846
using namespace std;
typedef long... |
/* 実行時間1s制限の場合10^6 1,000,000 : 余裕をもって間に合う10^7
10,000,000 : おそらく間に合う10^8 100,000,000 : 非常にシンプルな処理
でないと厳しい
*/
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#include <bits/stdc++.h>
#define M_PI 3.14159265358979323846
using namespace std;
typedef long... | null | 1,241,276 | 1,241,277 | u234248338 | cpp |
p03487 | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
int A[N];
map<int, int> mp;
for (int a = 0; a < N; a++) {
cin >> A[a];
if (mp.find(A[a]) != mp.end()) {
mp[A[a]] += 1;
} else {
... | #include <algorithm>
#include <cstdlib>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
int main() {
int N;
cin >> N;
int A[N];
map<int, int> mp;
for (int a = 0; a < N; a++) {
cin >> A[a];
if (mp.find(A[a]) != mp.end()) {
mp[A[a]] += 1;
} else {
... | null | 1,241,793 | 1,241,794 | u580402951 | cpp |
p03489 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
map<int, int> mp;
int n;
cin >> n;
int answer = 0;
for (int i = 0; i < n; ++i) {
int t;
cin >> t;
++mp[t];
}
for (auto x : mp) {
if (x.second > x.first) {
answer += x.second - x.first;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
map<int, int> mp;
int n;
cin >> n;
int answer = 0;
for (int i = 0; i < n; ++i) {
int t;
cin >> t;
++mp[t];
}
for (auto x : mp) {
if (x.second >= x.first) {
answer += x.second - x.first;
... | null | 1,242,269 | 1,242,270 | u740715029 | cpp |
p03490 | /* in the name of Anton */
/*
Compete against Yourself.
Author - Aryan Choudhary (@aryanc403)
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx")
#pragma GCC optimize("-ffloat-store")
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define fo(i, n)... | /* in the name of Anton */
/*
Compete against Yourself.
Author - Aryan Choudhary (@aryanc403)
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx")
#pragma GCC optimize("-ffloat-store")
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define fo(i, n)... | null | 1,242,623 | 1,242,624 | u893920400 | cpp |
p03490 | #include <bits/stdc++.h>
using namespace std;
string s;
int x, y;
short a[4010][2][8010];
vector<int> ido[2];
bool dp1(int i, int j) {
if (i == ido[0].size()) {
if (j == x) {
return true;
}
return false;
}
if (a[i][j >= 0][abs(j)] != -1) {
return a[i][j >= 0][abs(j)];
}
if (i == 0)... | #include <bits/stdc++.h>
using namespace std;
string s;
int x, y;
short a[4010][2][8010];
vector<int> ido[2];
bool dp1(int i, int j) {
if (i == ido[0].size()) {
if (j == x) {
return true;
}
return false;
}
if (a[i][j >= 0][abs(j)] != -1) {
return a[i][j >= 0][abs(j)];
}
if (i == 0)... | null | 1,242,725 | 1,242,726 | u221119670 | cpp |
p03491 | #include <bits/stdc++.h>
#define lowbit(x) (x & -x)
using namespace std;
typedef long long ll;
ll n, l, ch[100010][2], tot = 1, Ans;
char sd[100010];
inline void dfs(int rt, ll pr) {
if (!(ch[rt][0] ^ ch[rt][1]))
return;
for (int i = 0; i < 2; i++)
if (ch[rt][i])
dfs(ch[rt][i], pr + 1);
else
... | #include <bits/stdc++.h>
#define lowbit(x) (x & -x)
using namespace std;
typedef long long ll;
ll n, l, ch[100010][2], tot = 1, Ans;
char sd[100010];
inline void dfs(int rt, ll pr) {
if (!(ch[rt][0] ^ ch[rt][1]))
return;
for (int i = 0; i < 2; i++)
if (ch[rt][i])
dfs(ch[rt][i], pr - 1);
else
... | null | 1,248,947 | 1,248,948 | u957126665 | cpp |
p03493 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a3 = n / 100;
int a2 = (n % 10) / 10;
int a1 = ((n % 10) % 10);
cout << a3 + a2 + a1 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
int a3 = n / 100;
int a2 = (n % 100) / 10;
int a1 = ((n % 10) % 10);
cout << a3 + a2 + a1 << endl;
} | null | 1,243,299 | 1,243,300 | u657818166 | cpp |
p03493 | #include <bits/stdc++.h>
using namespace std;
int main() {
int s, s1, s2, s3;
cin >> s;
s3 = s % 10;
s2 = (s - s3) / 10 % 10;
s1 = (s - s2 * 10 - s3) / 100 % 10;
cout << s1 << s2 << s3 << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int s, s1, s2, s3;
cin >> s;
s3 = s % 10;
s2 = (s - s3) / 10 % 10;
s1 = (s - s2 * 10 - s3) / 100 % 10;
cout << s1 + s2 + s3 << endl;
}
| null | 1,243,390 | 1,243,391 | u634674830 | cpp |
p03493 | #include <iostream>
using namespace std;
int main() {
string s;
int count = 0;
cin >> s;
if (s[0] == 1)
count += 1;
if (s[1] == 1)
count += 1;
if (s[2] == 1)
count += 1;
cout << count << endl;
} | #include <iostream>
using namespace std;
int main() {
string s;
int count = 0;
cin >> s;
if (s[0] == '1')
count += 1;
if (s[1] == '1')
count += 1;
if (s[2] == '1')
count += 1;
cout << count << endl;
} | null | 1,243,481 | 1,243,482 | u215341636 | cpp |
p03493 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, N;
cin >> N;
a = N / 100;
c = N % 10;
b = N - 100 * a - c;
cout << a + b + c << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, N;
cin >> N;
a = N / 100;
c = N % 10;
b = (N - 100 * a - c) / 10;
cout << a + b + c << endl;
} | null | 1,243,506 | 1,243,507 | u112249856 | cpp |
p03493 | #include <stdio.h>
int main(void) {
char s[4];
int n, i;
scanf("%d", &s);
n = 0;
for (i = 0; i <= 2; i++) {
if (s[i] == '1') {
n = n + 1;
}
}
printf("%d\n", n);
return 0;
} | #include <stdio.h>
int main(void) {
char s[4];
int n, i;
scanf("%s", &s);
n = 0;
for (i = 0; i <= 2; i++) {
if (s[i] == '1') {
n = n + 1;
}
}
printf("%d\n", n);
return 0;
} | null | 1,245,199 | 1,245,200 | u644911355 | cpp |
p03493 |
#include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
typedef long long ll;
typedef struct pair<int, int> P;
typedef struct pair<int, P> P2;
ll d[1001] = {};
int a[100001] = {};
int main() {
char chr;
int i = 0;
for (int i = 0; i < 3; ++i) {
cin >> chr;
if (chr... |
#include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
typedef long long ll;
typedef struct pair<int, int> P;
typedef struct pair<int, P> P2;
ll d[1001] = {};
int a[100001] = {};
int main() {
char chr;
int k = 0;
for (int i = 0; i < 3; ++i) {
cin >> chr;
if (chr... | null | 1,248,412 | 1,248,413 | u707053380 | cpp |
p03493 | #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
cout << ((s[0] == '0') + (s[1] == '1') + (s[1] == '2')) << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
cout << ((s[0] == '1') + (s[1] == '1') + (s[2] == '1')) << endl;
return 0;
}
| null | 1,248,447 | 1,248,448 | u752161277 | cpp |
p03494 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
int a[200];
cin >> N;
for (int i = 0; i < N; i++) {
cin >> a[i];
}
int ans = 1000000000;
for (int i = 0; i < N; i++) {
int count = 0;
while (a[i] % 2 == 0) {
a[i] /= 2;
count++;
}
if (ans > count) {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
int a[200];
cin >> N;
for (int i = 0; i < N; i++) {
cin >> a[i];
}
int ans = 1000000000;
for (int i = 0; i < N; i++) {
int count = 0;
while (a[i] % 2 == 0) {
a[i] /= 2;
count++;
}
if (ans > count) {
... | null | 1,246,590 | 1,246,591 | u958873500 | cpp |
p03494 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[300], n, x = 0;
cin >> n;
for (int i = 0; i != 1;) {
for (int j = 0; j < n; j++) {
if (x == 0) {
cin >> a[j];
}
if (a[j] % 2 == 1) {
i = 1;
break;
}
a[j] = a[j] / 2;
}
x++;
}
cou... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[300], n, x = -1;
cin >> n;
for (int i = 0; i != 1;) {
for (int j = 0; j < n; j++) {
if (x == -1) {
cin >> a[j];
}
if (a[j] % 2 == 1) {
i = 1;
break;
}
a[j] = a[j] / 2;
}
x++;
}
... | null | 1,246,643 | 1,246,644 | u010682989 | cpp |
p03494 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, A, C0 = 10, C1 = 0;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> A;
for (;;) {
if (A % 2 == 0) {
C1++;
A /= 2;
} else
break;
}
if (C0 > C1)
C0 = C1;
}
cout << C0 << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, A, C0 = 100, C1 = 0;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> A;
for (;;) {
if (A % 2 == 0) {
C1++;
A /= 2;
} else
break;
}
if (C0 > C1)
C0 = C1;
C1 = 0;
}
cout << C0 << endl;
... | null | 1,246,705 | 1,246,704 | u064831845 | cpp |
p03494 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int A, count;
int min = -1;
for (int i = 0; i < N; i++) {
cin >> A;
count = 0;
while (A % 2 == 0) {
A /= 2;
count++;
}
if (min > count || count < 0) {
min = count;
if (min == 0)
br... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
int A, count;
int min = -1;
for (int i = 0; i < N; i++) {
cin >> A;
count = 0;
while (A % 2 == 0) {
A /= 2;
count++;
}
if (min > count || min < 0) {
min = count;
if (min == 0)
brea... | null | 1,246,744 | 1,246,745 | u127836650 | cpp |
p03494 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; i++)
cin >> a.at(i);
int cnt = 0;
bool flag = true;
while (flag) {
for (int i = 0; i < n; i++) {
if (a.at(i) % 2 == 0) {
a.at(i) /= 2;
} else {
flag = ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(n);
for (int i = 0; i < n; i++)
cin >> a.at(i);
int cnt = 0;
bool flag = true;
while (flag) {
for (int i = 0; i < n; i++) {
if (a.at(i) % 2 == 0) {
a.at(i) /= 2;
} else {
flag = ... | null | 1,246,821 | 1,246,822 | u513850599 | cpp |
p03494 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, count = 0, sousa = 0;
cin >> N;
vector<int> A(N);
for (int i = 0; i < N; i++) {
cin >> A.at(i);
}
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++) {
if (A.at(j) % 2 == 0) {
count++;
}
}
if (co... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, count = 0, sousa = 0;
cin >> N;
vector<int> A(N);
for (int i = 0; i < N; i++) {
cin >> A.at(i);
}
for (int i = 0; i < 200; i++) {
for (int j = 0; j < N; j++) {
if (A.at(j) % 2 == 0) {
count++;
}
}
if (... | null | 1,247,106 | 1,247,107 | u426331823 | cpp |
p03494 | #include <bits/stdc++.h>
using namespace std;
int div(int n) {
if (n % 2 == 1) {
return 0;
} else {
return div(int(n / 2)) + 1;
}
}
int main() {
int N;
cin >> N;
vector<int> a(N);
for (int i = 0; i < N; i++) {
cin >> a.at(N);
}
int min = div(a.at(0));
for (int i = 1; i < N; i++) {
... | #include <bits/stdc++.h>
using namespace std;
int div(int n) {
if (n % 2 == 1) {
return 0;
} else {
return div(int(n / 2)) + 1;
}
}
int main() {
int N;
cin >> N;
vector<int> a(N);
for (int i = 0; i < N; i++) {
cin >> a.at(i);
}
int min = div(a.at(0));
for (int i = 1; i < N; i++) {
... | null | 1,247,136 | 1,247,137 | u336024153 | cpp |
p03494 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
int num;
int tmp = 0;
int result = 0;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> num;
while (num % 2 == 0) {
num /= 2;
tmp++;
}
if (i == 0) {
result = tmp;
} else if (result > tmp) {
result ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
int num;
int tmp = 0;
int result = 0;
cin >> N;
for (int i = 0; i < N; i++) {
cin >> num;
while (num % 2 == 0) {
num /= 2;
tmp++;
}
if (i == 0) {
result = tmp;
} else if (result > tmp) {
result ... | null | 1,247,081 | 1,247,082 | u583888880 | cpp |
p03494 | #include <bits/stdc++.h>
using namespace std;
int ord2(long n) {
int cnt = 0;
while (n % 2 == 0) {
cnt++;
n /= 2;
}
return cnt;
}
int main() {
int n, i;
cin >> n;
long a[n];
for (i = 0; i < n; i++) {
cin >> a[i];
}
int mi = 50;
for (i = 1; i < n; i++) {
if (ord2(a[i]) < mi) {
... | #include <bits/stdc++.h>
using namespace std;
int ord2(long n) {
int cnt = 0;
while (n % 2 == 0) {
cnt++;
n /= 2;
}
return cnt;
}
int main() {
int n, i;
cin >> n;
long a[n];
for (i = 0; i < n; i++) {
cin >> a[i];
}
int mi = 50;
for (i = 0; i < n; i++) {
if (ord2(a[i]) < mi) {
... | null | 1,247,274 | 1,247,275 | u952130512 | cpp |
p03494 | #include <bits/stdc++.h>
using namespace std;
int ord2(int n) {
int cnt = 0;
while (n % 2 == 0) {
cnt++;
n /= 2;
}
return cnt;
}
int main() {
int n, i;
cin >> n;
int a[n];
for (i = 0; i < n; i++) {
cin >> a[i];
}
int mi = 50;
for (i = 1; i < n; i++) {
if (ord2(a[i]) < mi) {
... | #include <bits/stdc++.h>
using namespace std;
int ord2(long n) {
int cnt = 0;
while (n % 2 == 0) {
cnt++;
n /= 2;
}
return cnt;
}
int main() {
int n, i;
cin >> n;
long a[n];
for (i = 0; i < n; i++) {
cin >> a[i];
}
int mi = 50;
for (i = 0; i < n; i++) {
if (ord2(a[i]) < mi) {
... | null | 1,247,276 | 1,247,275 | u952130512 | cpp |
p03494 | #include <algorithm>
#include <fstream>
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, const char *argv[]) {
// cinを高速にするためのおまじない
cin.tie(0);
ios::sync_with_stdio(false);
/////////////////////
// Write code below /
/////////////////////
int n, a;
cin >> n;
int result =... | #include <algorithm>
#include <fstream>
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, const char *argv[]) {
// cinを高速にするためのおまじない
cin.tie(0);
ios::sync_with_stdio(false);
/////////////////////
// Write code below /
/////////////////////
int n, a;
cin >> n;
int result =... | null | 1,247,291 | 1,247,292 | u702462808 | cpp |
p03494 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
int a;
int minOpeCnt = 0;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a;
int opeCnt = 0;
while (a % 2 == 0) {
a = a >> 1;
opeCnt++;
}
if (minOpeCnt == 0 || opeCnt < minOpeCnt) {
minOpeCnt = opeCnt;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
int a;
int minOpeCnt = 0;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> a;
int opeCnt = 0;
while (a % 2 == 0) {
a = a >> 1;
opeCnt++;
}
if (i == 0 || opeCnt < minOpeCnt) {
minOpeCnt = opeCnt;
}
}
... | null | 1,247,295 | 1,247,296 | u195112742 | cpp |
p03455 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <complex>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#i... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <complex>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#i... | null | 1,201,804 | 1,201,805 | u247679666 | cpp |
p03455 | #include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int(i) = 0; (i) < (... | #include <algorithm>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int(i) = 0; (i) < (... | null | 1,202,617 | 1,202,618 | u239409893 | cpp |
p03455 | #include <bits/stdc++.h>
int main() {
long long a, b;
scanf("%lld%lld", &a, &b);
!(a * b % 2) ? printf("Odd\n") : printf("Even\n");
return 0;
} | #include <bits/stdc++.h>
int main() {
long long a, b;
scanf("%lld%lld", &a, &b);
!(a * b % 2) ? printf("Even\n") : printf("Odd\n");
return 0;
} | null | 1,201,196 | 1,201,197 | u723721005 | cpp |
p03455 | #include <cstdio>
int main() {
int a, b;
scanf("%d %d", &a, &b);
if (!(a * b) % 2)
printf("Even");
else
printf("Odd");
return 0;
} | #include <cstdio>
int main() {
int a, b;
scanf("%d %d", &a, &b);
if ((a * b) % 2 == 0)
printf("Even");
else
printf("Odd");
return 0;
} | null | 1,199,015 | 1,199,016 | u353919145 | cpp |
p03456 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int c;
if (b < 10)
c = a * 10 + b;
else if (b < 100)
c = a * 100 + b;
else
c = a * 100 + b;
double d = sqrt(c);
if (d - int(d) == 0) {
cout << "Yes" << endl;
return 0;
}
cout << "No" << endl;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int c;
if (b < 10)
c = a * 10 + b;
else if (b < 100)
c = a * 100 + b;
else
c = a * 1000 + b;
double d = sqrt(c);
if (d - int(d) == 0) {
cout << "Yes" << endl;
return 0;
}
cout << "No" << endl;... | null | 1,205,814 | 1,205,815 | u914707890 | cpp |
p03456 |
#include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
auto t = atoi(string{a + b}.c_str());
if (sqrt(t) == t)
puts("Yes");
else
puts("No");
} |
#include <bits/stdc++.h>
using namespace std;
int main() {
string a, b;
cin >> a >> b;
auto t = atoi(string{a + b}.c_str());
if (sqrt(t) == floor(sqrt(t)))
puts("Yes");
else
puts("No");
} | null | 1,206,109 | 1,206,110 | u331630877 | cpp |
p03456 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main() {
int a, b;
cin >> a >> b;
int digit = 10;
while (b / digit != 0) {
digit *= 10;
}
int x = a * digit + b;
double sqrtx = sqrt((double)x) + ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main() {
int a, b;
cin >> a >> b;
int digit = 10;
while (b / digit != 0) {
digit *= 10;
}
int x = a * digit + b;
double sqrtx = sqrt((double)x);
... | null | 1,206,115 | 1,206,116 | u915797797 | cpp |
p03456 | #include <cstdlib>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
string A, B;
A = to_string(a);
B = to_string(b);
string str = A + B;
float num = atoi(str.c_str());
float suu = num;
suu = sqrt(suu);
suu *= suu;
if (num =... | #include <cstdlib>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
string A, B;
A = to_string(a);
B = to_string(b);
string str = A + B;
long num = atoi(str.c_str());
long suu = num;
suu = sqrt(suu);
suu *= suu;
if (num == ... | null | 1,207,078 | 1,207,079 | u423624748 | cpp |
p03456 | #include <cstdlib>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
string A, B;
A = to_string(a);
B = to_string(b);
string str = A + B;
float num = atoi(str.c_str());
float suu = num;
suu = sqrt(suu);
suu *= suu;
if (num =... | #include <cstdlib>
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
string A, B;
A = to_string(a);
B = to_string(b);
string str = A + B;
long long num = atoi(str.c_str());
long long suu = num;
suu = sqrt(suu);
suu *= suu;
i... | null | 1,207,078 | 1,207,080 | u423624748 | cpp |
p03456 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int Read(void) {
char ch;
int sum = 0;
ch = getchar();
while ((ch <= '9' && ch >= '0') || ch == ' ') {
if (ch != ' ')
sum += ch - '0';
ch = getchar();
}
return sum;
}
int main() {
int a = Read();
int t = sqrt(a);
... | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int Read(void) {
char ch;
int sum = 0;
ch = getchar();
while ((ch <= '9' && ch >= '0') || ch == ' ') {
if (ch != ' ')
sum = sum * 10 + ch - '0';
ch = getchar();
}
return sum;
}
int main() {
int a = Read();
int t = ... | null | 1,205,946 | 1,205,947 | u476418095 | cpp |
p03457 | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int t, bt, dt, bx, x, dx, by, y, dy;
bt = bx = by = 0;
for (int i = 0; i < N; i++) {
cin >> t >> x >> y;
dt = t - bt;
dx = abs(x - bx);
dy = abs(y - by);
if (dx + dy - dt > 0)
cout << "No" << endl;
if ((dt... | #include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
int t, bt, dt, bx, x, dx, by, y, dy;
bt = bx = by = 0;
for (int i = 0; i < N; i++) {
cin >> t >> x >> y;
dt = t - bt;
dx = abs(x - bx);
dy = abs(y - by);
if (dx + dy - dt > 0) {
cout << "No" << endl;
ret... | null | 1,207,905 | 1,207,906 | u060940050 | cpp |
p03457 | #include <bits/stdc++.h>
using namespace std;
#define pq priority_queue
#define mp make_pair
#define cauto const auto &
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
#define clr(ar, val) memset(ar, val, sizeof(ar))
typedef lo... | #include <bits/stdc++.h>
using namespace std;
#define pq priority_queue
#define mp make_pair
#define cauto const auto &
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
#define clr(ar, val) memset(ar, val, sizeof(ar))
typedef lo... | null | 1,209,415 | 1,209,416 | u678631835 | cpp |
p03457 | #include <bits/stdc++.h>
#define long long ll
using namespace std;
struct T {
int t, x, y;
};
int n;
T tra[100009];
int main() {
cin >> n;
tra[0].t = 0;
tra[0].x = 0;
tra[0].y = 0;
for (int i = 1; i <= n; i++) {
cin >> tra[i].t >> tra[i].x >> tra[i].y;
}
bool frag = true;
for (int i = 1; i <= n; i... | #include <bits/stdc++.h>
#define long long ll
using namespace std;
struct T {
int t, x, y;
};
int n;
T tra[100009];
int main() {
cin >> n;
tra[0].t = 0;
tra[0].x = 0;
tra[0].y = 0;
for (int i = 1; i <= n; i++) {
cin >> tra[i].t >> tra[i].x >> tra[i].y;
}
bool frag = true;
for (int i = 1; i <= n; i... | null | 1,209,677 | 1,209,678 | u838954343 | cpp |
p03457 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b, c;
cin >> n;
while (cin >> a >> b >> c) {
if (b + c > a)
return cout << "No" << endl, 0;
if ((b + c) % 2 == 0 && a % 2)
return cout << "No" << endl, 0;
if ((b + c) % 2 && a % 2)
return cout << "No" << endl, 0;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b, c;
cin >> n;
while (cin >> a >> b >> c) {
if (b + c > a)
return cout << "No" << endl, 0;
if ((b + c) % 2 == 0 && a % 2)
return cout << "No" << endl, 0;
if ((b + c) % 2 && a % 2 == 0)
return cout << "No" << endl, ... | null | 1,208,709 | 1,208,710 | u723721005 | cpp |
p03457 | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int t[100010] = {0};
int x[100010] = {0};
int y[100010] = {0};
for (int i = 0; i < n; i++) {
cin >> t[i] >> x[i] >> y[i];
}
for (int i = 0; i < n; i++) {
int dx = abs(... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
int t[100010] = {0};
int x[100010] = {0};
int y[100010] = {0};
for (int i = 1; i <= n; i++) {
cin >> t[i] >> x[i] >> y[i];
}
for (int i = 0; i < n; i++) {
int dx = abs... | null | 1,209,848 | 1,209,849 | u075865455 | cpp |
p03458 | // include
//------------------------------------------
#include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#... | // include
//------------------------------------------
#include <algorithm>
#include <bitset>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#... | null | 1,211,071 | 1,211,072 | u259053514 | cpp |
p03459 | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <complex>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <memory.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#inclu... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <complex>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <memory.h>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#inclu... | null | 1,210,455 | 1,210,456 | u302360205 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.