Datasets:
problem_id stringlengths 6 6 | src_id stringlengths 10 10 | tgt_id stringlengths 10 10 | split stringclasses 1
value | language stringclasses 1
value | src_code stringlengths 60 490k | tgt_code stringlengths 54 149k | gem5_src_per_tc_ticks stringlengths 16 2.01k | gem5_tgt_per_tc_ticks stringlengths 16 1.97k | gem5_src_excluded stringclasses 324
values | gem5_tgt_excluded stringclasses 210
values | gem5_src_status stringclasses 2
values | gem5_tgt_status stringclasses 2
values | gem5_src_sum_ticks_all int64 193M 1,762B | gem5_tgt_sum_ticks_all int64 117M 1,354B | common_timed_case_ids stringclasses 437
values | correctness_kept_case_ids stringclasses 385
values | usable_case_ids stringclasses 718
values | n_common_timed int64 1 108 | n_kept int64 0 107 | n_usable int64 1 107 | n_cases_available int64 1 108 | src_n_fail int64 0 5 | tgt_n_fail int64 0 5 | pair_n_fail int64 0 5 | our_speedup_usable float64 0.31 70.3 | our_speedup_all float64 0.2 70.3 | ceiling_speedup float64 1 72.6 | flag_low_headroom bool 2
classes | flag_single_case bool 2
classes | flag_empty_kept bool 2
classes | pie_src_agg_runtime float64 0 1.45 | pie_tgt_agg_runtime float64 0 1.07 | pie_speedup float64 1.1 71.5 | pie_fastest_agg_runtime float64 0 0.36 | pie_src_verdict stringclasses 1
value | pie_tgt_verdict stringclasses 1
value | pie_fastest_agg_runtime_updated float64 0 0.36 | pie_src_reward_updated float64 0.1 1 | pie_target_reward_updated float64 0.02 1 | pie_src_reward_updated_pct_bin float64 1 10 | pie_target_reward_updated_pct_bin float64 1 10 | pie_n_tests float64 | pie_test_agg_runtime float64 | pie_test_accuracy float64 | pie_test_compilation float64 | pie_src_code_accuracy float64 | pie_tgt_code_accuracy float64 | pie_src_code_compilation float64 | pie_tgt_code_compilation float64 | pie_src_code_runtime float64 | pie_tgt_code_runtime float64 | pie_fastest_code stringclasses 0
values | pie_fastest_code_len float64 | pie_fastest_code_runtime float64 | pie_fastest_code_accuracy float64 | pie_fastest_code_compilation float64 | pie_src_code_tc2time stringclasses 0
values | pie_tgt_code_tc2time stringclasses 0
values | pie_fastest_code_tc2time stringclasses 0
values | pie_tests_case_ids stringclasses 0
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
p03352 | s743140059 | s147468699 | train | cpp | #include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int n;
cin>>n;
int count=0;
int k=sqrt(n);
int maxi=1;
for(int i=1; i<n; i++){
for(int j=2; j<n; j++){
if(pow(i,j)<=n){
count=pow(i,j);
maxi=max(count,maxi);
// cout<<i<<" "<<j<<" "<<maxi<<endl;
}
}}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n; cin >> n;
int mx = 1;
for (int i = 2; i * i <= n; ++i) {
int s = i;
while (s * i <= n)
s *= i;
mx = max(s, mx);
}
cout << mx;
return 0;
} | {"0": 1036255220, "1": 13569613486, "2": 1071050552, "3": 1888739424, "4": 1406014896, "5": 1196234468, "6": 1648210850, "7": 2673446776, "8": 3401712600, "9": 1026183730, "10": 1019067478, "11": 1022712262, "12": 16977526852, "13": 19740439004, "14": 1113175492, "15": 1253405582, "16": 1023275968, "17": 1540628232, "1... | {"0": 1019893446, "1": 1020767176, "2": 1020434558, "3": 1020631898, "4": 1020434558, "5": 1020434558, "6": 1020530082, "7": 1020530082, "8": 1020631898, "9": 1019858268, "10": 1019843968, "11": 1019875428, "12": 1020767176, "13": 1020696820, "14": 1020434558, "15": 1020434558, "16": 1019848544, "17": 1020532942, "18":... | [23, 37, 39, 40, 41, 42, 43, 44, 102] | [] | ok | ok | 277,242,138,316 | 96,932,108,988 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 9... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 9... | 95 | 104 | 91 | 104 | 0 | 0 | 0 | 2.174407 | 2.860168 | 11.555162 | false | false | false | 0.088454 | 0.073844 | 1.197848 | 0.013899 | Accepted | Accepted | 0.013899 | 0.19596 | 0.188215 | 1 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03352 | s383032031 | s798553866 | train | cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
using namespace std;
int main() {
int X;
cin >> X;
int ans=1;
for(int b=1;b<=1000;b++){
for(int p=2;p<=10;p++){
if((pow(b,p)<=X)&&(pow(b,p)>=ans)){
... | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <cmath>
#include <set>
#include <sstream>
#include <bitset>
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
typedef long long ll;
using namespace std;
int main() {
int x;
ci... | {"0": 1339987506, "1": 1341386332, "2": 1339987506, "3": 1340900704, "4": 1340806038, "5": 1340806038, "6": 1341006524, "7": 1340898130, "8": 1341410642, "9": 1338981930, "10": 1338991940, "11": 1338993084, "12": 1339654602, "13": 1341856230, "14": 1340133080, "15": 1340806038, "16": 1338982502, "17": 1340806038, "18":... | {"0": 1042212028, "1": 1042023840, "2": 1042203162, "3": 1042237768, "4": 1042212886, "5": 1042195154, "6": 1042203734, "7": 1042141958, "8": 1042098486, "9": 1042238054, "10": 1042211742, "11": 1042153684, "12": 1041861392, "13": 1041852812, "14": 1042211170, "15": 1042212886, "16": 1042164552, "17": 1042237196, "18":... | [] | [] | ok | ok | 139,418,562,712 | 108,380,934,376 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 104 | 104 | 104 | 104 | 0 | 0 | 0 | 1.286375 | 1.286375 | 6.982099 | false | false | false | 0.097422 | 0.075733 | 1.286385 | 0.013899 | Accepted | Accepted | 0.013899 | 0.259674 | 0.183521 | 1 | 3 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03352 | s544288094 | s646099306 | train | cpp | #include <bits/stdc++.h>
using namespace std;
#include <math.h>
#include <iomanip>
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const int INF=1001001001;
vector<pair<int64_... | #include <bits/stdc++.h>
using namespace std;
#include <math.h>
#include <iomanip>
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
const int mod=1e9+7;
const int INF=1001001... | {"0": 1047919158, "1": 17558295898, "2": 1088574058, "3": 2041889850, "4": 1473222322, "5": 1233484252, "6": 1751796618, "7": 3148244528, "8": 4137046056, "9": 1037464714, "10": 1029603432, "11": 1033308276, "12": 22046016564, "14": 1137850714, "15": 1299612600, "16": 1034508332, "17": 1627212730, "18": 1077233014, "19... | {"0": 1022152560, "1": 1022357622, "2": 1022152560, "3": 1022293558, "4": 1022294702, "5": 1022079058, "6": 1022293558, "7": 1022293558, "8": 1022293558, "9": 1021950358, "10": 1021950358, "11": 1021950358, "12": 1022357622, "13": 1022352760, "14": 1022152560, "15": 1022025576, "16": 1021950358, "17": 1022293558, "18":... | [13, 23, 33, 37, 39, 40, 41, 42, 43, 44, 102] | [] | ok | ok | 275,837,565,146 | 95,062,413,160 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 34, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 9... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, ... | 93 | 104 | 88 | 104 | 0 | 0 | 0 | 2.069805 | 2.901647 | 11.0192 | false | false | false | 0.091314 | 0.074113 | 1.232089 | 0.013899 | Accepted | Accepted | 0.013899 | 0.222189 | 0.187532 | 1 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03352 | s824081779 | s759631282 | train | cpp | #include<bits/stdc++.h>
using namespace std ;
int main () {
int N ;
cin >> N ;
int ans = 0 ;
for(int i = 1 ; i <= 1+N ; i++ ){
for(int j = 2 ; j <= 2+N ; j++ ){
int pre = pow(i,j) ;
if( pre <= N ) ans = max(ans,pre) ;
}
}
cout << ans << endl ;
} | #include<bits/stdc++.h>
using namespace std ;
int main () {
int N ;
cin >> N ;
int ans = 0 ;
for(int i = 1 ; i <= 1+N ; i++ ){
for(int j = 2 ; j <= 2+N ; j++ ){
int pre = pow(i,j) ;
if( pre <= N ) ans = max(ans,pre) ;
else break ;
}
}
cout << ans << endl ;
}
| {"0": 1043096912, "1": 14156435150, "2": 1085243016, "3": 2036996676, "4": 1481087894, "5": 1236283048, "6": 1762946328, "7": 2906052578, "8": 3683449770, "9": 1030744572, "10": 1022950214, "11": 1026674792, "12": 17627889136, "13": 20436463476, "14": 1136441020, "15": 1302437994, "16": 1027596570, "17": 1638034684, "1... | {"0": 1025432980, "1": 1069661450, "2": 1028553812, "3": 1038834654, "4": 1034824362, "5": 1032263232, "6": 1037450986, "7": 1042615574, "8": 1046077890, "9": 1024585276, "10": 1022925046, "11": 1023645480, "12": 1075483552, "13": 1079073710, "14": 1030406234, "15": 1033172998, "16": 1023932624, "17": 1036744852, "18":... | [23, 37, 39, 40, 41, 42, 43, 44, 102] | [] | ok | ok | 289,554,485,506 | 98,433,688,496 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 9... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, ... | 95 | 104 | 90 | 104 | 0 | 0 | 0 | 2.120665 | 2.94162 | 11.419836 | false | false | false | 0.091313 | 0.074753 | 1.221533 | 0.013899 | Accepted | Accepted | 0.013899 | 0.213917 | 0.185928 | 1 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03352 | s648785595 | s450771019 | train | cpp | /** author: __nishad__ **/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll ;
typedef vector<ll> vll ;
#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define all(v) (v).begin(),(v).end()
#define precision(k) cout<<setprecision(k)<<fixed;
#define loop(i,a) for(int i=0;... | /** author: __nishad__ **/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll ;
typedef vector<ll> vll ;
#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define all(v) (v).begin(),(v).end()
#define precision(k) cout<<setprecision(k)<<fixed;
#define loop(i,a) for(int i=0;... | {"0": 1084203120, "2": 1161192032, "3": 2813844462, "4": 1845203360, "5": 1419530112, "6": 2335244626, "7": 4372560478, "8": 5820319362, "9": 1060304388, "10": 1039750140, "11": 1051966058, "14": 1248249288, "15": 1535988740, "16": 1053585104, "17": 2118699440, "18": 1139270418, "19": 4939772266, "20": 1109184934, "21"... | {"0": 1065049986, "1": 14148743752, "2": 1107456350, "3": 2052386622, "4": 1498727230, "5": 1255189364, "6": 1780615980, "7": 2917199142, "8": 3696000594, "9": 1052674194, "10": 1039646608, "11": 1048708232, "12": 17612612732, "13": 20416163196, "14": 1156979538, "15": 1321415524, "16": 1049480718, "17": 1656471674, "1... | [1, 12, 13, 23, 33, 34, 37, 39, 40, 41, 42, 43, 44, 102] | [23, 37, 39, 40, 41, 42, 43, 44, 102] | ok | ok | 287,423,359,938 | 198,911,570,286 | [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, ... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 30, 31, 35, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, ... | 90 | 104 | 85 | 104 | 0 | 0 | 0 | 1.313674 | 1.444981 | 11.679128 | false | false | false | 0.10573 | 0.092845 | 1.138788 | 0.013899 | Accepted | Accepted | 0.013899 | 0.140319 | 0.149697 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03352 | s954146983 | s080418400 | train | cpp | #define rep(i, n) for (int i = 0; i < (n); i++)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int MOD = 1000000007;
int main() {
int X;
cin >> X;
int maxValue = 1;
for (int i = 1; i <= X; i++) { // O(N^2) -> 1000 * 1000 = 10^6
f... | #define rep(i, n) for (int i = 0; i < (n); i++)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int MOD = 1000000007;
int main() {
int X;
cin >> X;
int maxValue = 1;
vector<bool> expo(X + 1);
expo[1] = true;
for (int i = 2; i <=... | {"0": 1047205588, "1": 13606968518, "2": 1083054830, "3": 1906469708, "4": 1420426722, "5": 1209604110, "6": 1665095146, "7": 2695154748, "8": 3423495504, "9": 1037226762, "10": 1029425254, "11": 1033220760, "12": 17018552408, "13": 19784308830, "14": 1126098974, "15": 1266802966, "16": 1034376486, "17": 1556410570, "1... | {"0": 1031727554, "1": 1033161558, "2": 1031727554, "3": 1032350748, "4": 1032222620, "5": 1031737564, "6": 1032251220, "7": 1032381064, "8": 1032577260, "9": 1031752722, "10": 1031727268, "11": 1031753294, "12": 1033341452, "13": 1033376630, "14": 1031744428, "15": 1031744714, "16": 1031742998, "17": 1032248074, "18":... | [23, 37, 39, 40, 41, 42, 43, 44, 102] | [] | ok | ok | 278,851,726,582 | 98,051,125,172 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 9... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 9... | 95 | 104 | 91 | 104 | 0 | 0 | 0 | 2.165 | 2.843942 | 11.637573 | false | false | false | 0.088699 | 0.074655 | 1.188123 | 0.013899 | Accepted | Accepted | 0.013899 | 0.187756 | 0.186171 | 1 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03352 | s523411834 | s048804173 | train | cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
int X;
cin >> X;
double ans=1;
for(int i=X;i>0;--i){
for(int j=1;j<=sqrt(X);++j){
for(int k=2;k<=10;++k){
if(pow(j,k)<=X) ans=max(ans,pow(j,k));
}
}
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<long long,long long> pll;
#define ep emplace_back
#define pb push_back
#define mp make_pair
#define rep(i,n) for(int i=0;i<(n);++i)
#define all(v) v.begin(), v.end()
#define revall(v) v.rbegin(), v.rend... | {"0": 1070413344, "1": 6886422114, "2": 1132343498, "3": 1827608354, "4": 1482630864, "5": 1282507226, "6": 1665162928, "7": 2283663096, "8": 2756039858, "9": 1050218884, "10": 1035143538, "11": 1041160120, "12": 8159118110, "13": 9097893662, "14": 1187196868, "15": 1353617408, "16": 1042928458, "17": 1597865698, "18":... | {"0": 1037469004, "1": 1037469004, "2": 1037469004, "3": 1037473866, "4": 1037469004, "5": 1037469004, "6": 1037469004, "7": 1037474152, "8": 1037385492, "9": 1036812062, "10": 1036812062, "11": 1036684506, "12": 1037387208, "13": 1037469004, "14": 1037469004, "15": 1037474152, "16": 1036750286, "17": 1037476154, "18":... | [44] | [] | ok | ok | 315,124,393,870 | 106,845,255,088 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 8... | 103 | 104 | 100 | 104 | 0 | 0 | 0 | 2.51372 | 2.949353 | 13.58101 | false | false | false | 0.09126 | 0.075663 | 1.206138 | 0.013899 | Accepted | Accepted | 0.013899 | 0.201612 | 0.18369 | 1 | 3 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03352 | s936464260 | s334519600 | train | cpp | #include<iostream>
#include<vector>
#include<algorithm>
#include<cctype>
#include<utility>
#include<string>
#include<cmath>
#define REP(n) for(int i = 0;i < n;i++)
#define LLREP(n) for(long long int i = 0;i < n;i++)
typedef long long int ll;
using namespace std;
#define MAX_A 100005
int main(){
... | #include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
int n;
cin >> n;
int ans = 1;
for (int i = 2; i <= n; i++) {
int num = i;
if (i*i > n)
{
break;
}
while (num * i <= n) {
num *= i;
}
ans = max(ans, num);
}
... | {"0": 1047205588, "1": 13606968518, "2": 1083054830, "3": 1906469708, "4": 1420426722, "5": 1209604110, "6": 1665095146, "7": 2695154748, "8": 3423495504, "9": 1037226762, "10": 1029425254, "11": 1033220760, "12": 17018552408, "13": 19784308830, "14": 1126098974, "15": 1266802966, "16": 1034376486, "17": 1556410570, "1... | {"0": 1022152560, "1": 1022357622, "2": 1022021286, "3": 1022352760, "4": 1022293558, "5": 1022152560, "6": 1022293558, "7": 1022293558, "8": 1022297848, "9": 1021950358, "10": 1021950358, "11": 1021950358, "12": 1022357622, "13": 1022357622, "14": 1022152560, "15": 1022152560, "16": 1021894588, "17": 1022293558, "18":... | [23, 37, 39, 40, 41, 42, 43, 44, 102] | [] | ok | ok | 278,851,726,582 | 97,107,046,322 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 9... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 9... | 95 | 104 | 91 | 104 | 0 | 0 | 0 | 2.185947 | 2.871591 | 11.637573 | false | false | false | 0.088699 | 0.074109 | 1.196875 | 0.013899 | Accepted | Accepted | 0.013899 | 0.195054 | 0.187542 | 1 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03352 | s086696291 | s794890605 | train | cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
int mypow(int n, int p) {
if (p == 0) return 1;
else if (p & 1) {
return n * mypow(n, p - 1);
} else {
int half = mypow(n, p >> 1);
return half * half;
}
}
int m... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
int mypow(int n, int p) {
if (p == 0) return 1;
else if (p & 1) {
return n * mypow(n, p - 1);
} else {
int half = mypow(n, p >> 1);
return half * half;
}
}
int m... | {"0": 1045405504, "2": 1076357568, "3": 2159257672, "4": 1433244098, "5": 1191882978, "6": 1798192110, "7": 3383467516, "8": 4807718058, "9": 1037206742, "10": 1034969078, "11": 1035943766, "14": 1112528560, "15": 1253146466, "16": 1036569820, "17": 1610530636, "18": 1067842204, "19": 3907238478, "20": 1055619994, "21"... | {"0": 1036332440, "1": 1036337588, "2": 1036340162, "3": 1036405942, "4": 1036399936, "5": 1036341592, "6": 1036333298, "7": 1036337016, "8": 1036388496, "9": 1035122660, "10": 1035098636, "11": 1035066318, "12": 1036399078, "13": 1036329294, "14": 1036337874, "15": 1036388496, "16": 1034981948, "17": 1036350744, "18":... | [1, 12, 13, 23, 33, 34, 37, 39, 40, 41, 42, 43, 44, 76, 102] | [] | ok | ok | 237,989,312,132 | 92,212,965,702 | [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, ... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 30, 31, 35, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, ... | 89 | 104 | 85 | 104 | 0 | 0 | 0 | 1.874069 | 2.580866 | 10.113027 | false | false | false | 0.090852 | 0.075221 | 1.20781 | 0.013899 | Accepted | Accepted | 0.013899 | 0.20313 | 0.184771 | 1 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03352 | s367597367 | s401673396 | train | cpp | #include <iostream>
#include <algorithm>
#include <math.h>
using namespace std;
bool isPrime(int n)
{
if (n < 2)return false;
for (int i = 2; i < n; i++)
{
if (n % i == 0)return false;
}
}
int gcd(int a, int b)
{
for (int i = min(a, b); i >= 2; i--)
{
if (a % i == 0 && b % i == 0) return i;
... | #include <iostream>
#include <algorithm>
#include <math.h>
using namespace std;
bool isPrime(int n)
{
if (n < 2)return false;
for (int i = 2; i < n; i++)
{
if (n % i == 0)return false;
}
}
int gcd(int a, int b)
{
for (int i = min(a, b); i >= 2; i--)
{
if (a % i == 0 && b % i == 0) return i;
... | {"0": 1039259078, "1": 13979304482, "2": 1079078858, "3": 2010680958, "4": 1464966074, "5": 1222964314, "6": 1740224486, "7": 2866226792, "8": 3631954326, "9": 1028959074, "10": 1021504484, "11": 1025213332, "12": 17411339946, "13": 20190256658, "14": 1127502376, "15": 1288354782, "16": 1025418108, "17": 1617837078, "1... | {"0": 1024927332, "1": 1054439958, "2": 1026701962, "3": 1036099064, "4": 1033218472, "5": 1030133676, "6": 1034798622, "7": 1038301550, "8": 1040423098, "9": 1023807070, "10": 1021504484, "11": 1023275110, "12": 1058151380, "13": 1061276216, "14": 1028553812, "15": 1030949062, "16": 1023275110, "17": 1034504900, "18":... | [23, 37, 39, 40, 41, 42, 43, 44, 102] | [] | ok | ok | 286,332,719,530 | 98,102,504,214 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 9... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 29, 30, 31, 32, 35, 36, 38, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 9... | 95 | 104 | 91 | 104 | 0 | 0 | 0 | 2.228914 | 2.91871 | 11.974226 | false | false | false | 0.090661 | 0.0747 | 1.213676 | 0.013899 | Accepted | Accepted | 0.013899 | 0.207934 | 0.186059 | 1 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03891 | s934094873 | s908179494 | train | cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int a[3][3],x,i;
cin>>a[0][0]>>a[0][1]>>a[1][1];
x=a[1][1]*3;
a[0][2]=x-a[0][0]-a[0][1];
a[2][1]=x-a[0][1]-a[1][1];
a[2][2]=x-a[0][0]-a[1][1];
a[2][0]=x-a[1][1]-a[0][2];
a[1][0]=x-a[0][0]-a[2][0];
a[1][2]=x-a[0][2]-a[2][2];
for(i=0;i<3;i++){... | #include<stdio.h>
int a,b,c;
int main()
{
scanf("%d%d%d",&a,&b,&c);
printf("%d %d %d\n",a,b,3*c-a-b);
printf("%d %d %d\n",(c<<2)-(a<<1)-b,c,(a<<1)+b-(c<<1));
printf("%d %d %d\n",a+b-c,(c<<1)-b,(c<<1)-a);
return 0 ;
} | {"0": 1023879428, "1": 1023705254, "2": 1024557820, "3": 1023951214, "4": 1024621884, "5": 1024621884, "6": 1024718552, "7": 1023951214, "8": 1023708686, "9": 1024621884, "10": 1024718552, "11": 1024718552, "12": 1023959794, "13": 1024556104, "14": 1023864842, "15": 1024557820, "16": 1024727132, "17": 1024635898, "18":... | {"0": 196367600, "1": 196304108, "2": 196679054, "3": 196953328, "4": 196803750, "5": 196803750, "6": 196865526, "7": 197032836, "8": 196572376, "9": 196803750, "10": 196865526, "11": 196865526, "12": 197027402, "13": 196803750, "14": 196367600, "15": 196679054, "16": 196886690, "17": 196865526, "18": 196888978, "19": ... | [] | [] | ok | ok | 105,492,105,290 | 20,254,309,218 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 103 | 103 | 103 | 103 | 0 | 0 | 0 | 5.208378 | 5.208378 | 5.33435 | false | false | false | 0.025472 | 0.004792 | 5.31541 | 0.004792 | Accepted | Accepted | 0.004792 | 1 | 1 | 10 | 10 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03891 | s218972214 | s908179494 | train | cpp | #include<iostream>
using namespace std;
int main()
{
int A,B,C;
cin>>A>>B>>C;
cout<<A<<' '<<B<<' '<<C*3-A-B<<endl<<4*C-2*A-B<<' '<<C<<' '<<2*A+B-2*C<<endl<<A+B-C<<' '<<C*2-B<<' '<<C*2-A;
}
| #include<stdio.h>
int a,b,c;
int main()
{
scanf("%d%d%d",&a,&b,&c);
printf("%d %d %d\n",a,b,3*c-a-b);
printf("%d %d %d\n",(c<<2)-(a<<1)-b,c,(a<<1)+b-(c<<1));
printf("%d %d %d\n",a+b-c,(c<<1)-b,(c<<1)-a);
return 0 ;
} | {"0": 1025028290, "1": 1025028290, "2": 1025502764, "3": 1025125244, "4": 1025502764, "5": 1025502764, "6": 1025502764, "7": 1025206182, "8": 1024398518, "9": 1025502764, "10": 1025502764, "11": 1025502764, "12": 1025206182, "13": 1025502764, "14": 1025032866, "15": 1025502764, "16": 1025560250, "17": 1025503050, "18":... | {"0": 196367600, "1": 196304108, "2": 196679054, "3": 196953328, "4": 196803750, "5": 196803750, "6": 196865526, "7": 197032836, "8": 196572376, "9": 196803750, "10": 196865526, "11": 196865526, "12": 197027402, "13": 196803750, "14": 196367600, "15": 196679054, "16": 196886690, "17": 196865526, "18": 196888978, "19": ... | [] | [] | ok | ok | 105,575,422,524 | 20,254,309,218 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 103 | 103 | 103 | 103 | 0 | 0 | 0 | 5.212492 | 5.212492 | 5.338563 | false | false | false | 0.025424 | 0.004792 | 5.305361 | 0.004792 | Accepted | Accepted | 0.004792 | 1 | 1 | 10 | 10 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03891 | s879637459 | s999078666 | train | cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e,f,g,h,i;
cin>>a>>b>>e;
for(int s=-(1e6);s<=(1e6);s++){
h=s-(b+e);
c=s-(a+b);
i=s-(a+e);
f=s-(c+i);
d=s-(e+f);
g=s-(c+e);
if(a+b+c==s&&d+e+f==s&&g+h+i==s&&a+d+g==s&&b+e+h==s&&c+f... | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e,f,g,h,i;
cin>>a>>b>>e;
for(int s=-300;s<=300;s++){
h=s-(b+e);
c=s-(a+b);
i=s-(a+e);
f=s-(c+i);
d=s-(e+f);
g=s-(c+e);
if(a+b+c==s&&d+e+f==s&&g+h+i==s&&a+d+g==s&&b+e+h==s&&c+f+i==... | {"0": 3313410386, "1": 3313341746, "2": 3313509342, "3": 3313411530, "4": 3313486176, "5": 3313512774, "6": 3313731278, "7": 3313471876, "8": 3312733424, "9": 3313512774, "10": 3313626602, "11": 3313626602, "12": 3313471876, "13": 3313507626, "14": 3313470732, "15": 3313509342, "16": 3313710686, "17": 3313603722, "18":... | {"0": 1025550240, "1": 1025497044, "2": 1026509484, "3": 1025569116, "4": 1026532936, "5": 1026514918, "6": 1026659634, "7": 1025678940, "8": 1025210472, "9": 1026514918, "10": 1026625314, "11": 1026625314, "12": 1025608298, "13": 1026424256, "14": 1025573978, "15": 1026509484, "16": 1026715690, "17": 1026572976, "18":... | [] | [] | ok | ok | 341,264,859,936 | 105,670,677,112 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 103 | 103 | 103 | 103 | 0 | 0 | 0 | 3.229513 | 3.229513 | 17.256516 | false | false | false | 0.082649 | 0.025472 | 3.244736 | 0.004792 | Accepted | Accepted | 0.004792 | 0.73439 | 0.188135 | 4 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p00232 | s133996477 | s200731165 | train | cpp | #include <cstdio>
#include <cstring>
#define MIN(A,B) ((A)<=(B)?(A):(B))
#define MAX(A,B) ((A)>=(B)?(A):(B))
int X,Y,Z,V[4],E[51],A[51];
double dp[51][5001];
int main() {
while(scanf("%d %d %d",&X,&Y,&Z),X) {
for(int i=0;i<X;i++) {
scanf("%d",&V[i]);
}
memset(E,0,sizeof(E));
memset(A,0,sizeof(A)... | #include <cstdio>
#include <cstring>
#define MIN(A,B) ((A)<=(B)?(A):(B))
#define MAX(A,B) ((A)>=(B)?(A):(B))
int X,Y,Z,V[4],E[51],A[51];
double dp[51][5001];
int main() {
while(scanf("%d %d %d",&X,&Y,&Z),X) {
for(int i=0;i<X;i++) {
scanf("%d",&V[i]);
}
memset(E,0,sizeof(E));
memset(A,0,sizeof(A)... | {"0": 5555643522, "1": 5555004026, "2": 5558034768, "3": 5552697150, "4": 5547003748, "5": 5544929962, "6": 5550395136, "7": 5547615788, "8": 5562573016, "9": 5560633364, "10": 5567364946, "11": 5576269270, "12": 5552328210, "13": 5569951816, "14": 5558818408, "15": 5554424304, "16": 5559579168, "17": 5557560008, "18":... | {"0": 5048092478, "1": 5048092478, "2": 5048090762, "3": 5048071886, "4": 5048086758, "5": 5048071886, "6": 5048086758, "7": 5047988374, "8": 5049997524, "9": 5047964922, "10": 5050003244, "11": 5049685212, "12": 5048290676, "13": 5049782166, "14": 5047863964, "15": 5048092478, "16": 5048092478, "17": 5047960918, "18":... | [] | [] | ok | ok | 568,216,274,054 | 515,054,996,742 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 102 | 102 | 102 | 102 | 0 | 0 | 0 | 1.103215 | 1.103215 | 29.014311 | false | false | false | 0.562508 | 0.509848 | 1.103285 | 0.025842 | Accepted | Accepted | 0.025842 | 0.098124 | 0.050685 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p00232 | s987198074 | s736868066 | train | cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <cfloat>
#include <ctime>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <s... | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <cfloat>
#include <ctime>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <s... | {"0": 1948817442, "1": 1948797708, "2": 1947402314, "3": 1950116740, "4": 1948724778, "5": 1950116740, "6": 1947402314, "7": 1950304642, "8": 1974682138, "9": 1933373156, "10": 1974682138, "11": 1974794250, "12": 1951302782, "13": 1976328354, "14": 1933373156, "15": 1941878510, "16": 1944472816, "17": 1942516862, "18":... | {"0": 1495912704, "1": 1495912704, "2": 1495703352, "3": 1495975910, "4": 1495703352, "5": 1495823472, "6": 1495979056, "7": 1495914134, "8": 1509026948, "9": 1495912704, "10": 1509026948, "11": 1509081574, "12": 1495979056, "13": 1508559624, "14": 1495703352, "15": 1495979056, "16": 1495912704, "17": 1495703352, "18":... | [] | [] | ok | ok | 200,457,093,980 | 153,503,785,864 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 102 | 102 | 102 | 102 | 0 | 0 | 0 | 1.305877 | 1.305877 | 10.235758 | false | false | false | 0.198082 | 0.151866 | 1.304321 | 0.025842 | Accepted | Accepted | 0.025842 | 0.268323 | 0.17016 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p00232 | s987198074 | s728528188 | train | cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <cfloat>
#include <ctime>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <s... | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <cfloat>
#include <ctime>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <s... | {"0": 1948817442, "1": 1948797708, "2": 1947402314, "3": 1950116740, "4": 1948724778, "5": 1950116740, "6": 1947402314, "7": 1950304642, "8": 1974682138, "9": 1933373156, "10": 1974682138, "11": 1974794250, "12": 1951302782, "13": 1976328354, "14": 1933373156, "15": 1941878510, "16": 1944472816, "17": 1942516862, "18":... | {"0": 1381849040, "1": 1381849040, "2": 1381877068, "3": 1382113018, "4": 1381863054, "5": 1382113018, "6": 1381340818, "7": 1381875352, "8": 1392487668, "9": 1381855046, "10": 1392487668, "11": 1392487668, "12": 1381856476, "13": 1392605214, "14": 1381847038, "15": 1381866200, "16": 1381857620, "17": 1381446638, "18":... | [] | [] | ok | ok | 200,457,093,980 | 141,605,533,212 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 102 | 102 | 102 | 102 | 0 | 0 | 0 | 1.415602 | 1.415602 | 10.235758 | false | false | false | 0.198082 | 0.139113 | 1.423894 | 0.025842 | Accepted | Accepted | 0.025842 | 0.342365 | 0.18576 | 2 | 4 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p00232 | s457062022 | s288098895 | train | cpp | #include<iostream>
#include<algorithm>
#define FOR(i,e) for(int i=0;i<(int)(e);i++)
using namespace std;
int main(){
double pb[100][5001];
int x,y,z;
int v[4],e[51],a[51];
while(cin >> x >> y >> z && (x||y||z)){
FOR(i,x)cin >> v[i];
FOR(i,y+1)e[i] = a[i] = 0;
FOR(i,z){
int n,... | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
double pb[100][5001];
int x,y,z,n,m,l,ub;
int v[4],e[51],a[51];
while(cin >> x >> y >> z && (x||y||z)){
for(int i=0;i<x;i++)cin >> v[i];
for(int i=0;i<=y;i++)e[i] = a[i] = 0;
ub = 0;
for(int i=0;i<z;i++){
... | {"0": 1955512130, "1": 1955512130, "2": 1832175774, "3": 1955522140, "4": 1800679738, "5": 1955522140, "6": 1864193474, "7": 1800896526, "8": 1817884068, "9": 1832175774, "10": 1817859186, "11": 1972310912, "12": 1863720430, "13": 1912211730, "14": 1832165764, "15": 1800679738, "16": 1958029216, "17": 1800758102, "18":... | {"0": 1138490496, "1": 1138490496, "2": 1138490496, "3": 1138400978, "4": 1138490496, "5": 1138333768, "6": 1138948382, "7": 1138159022, "8": 1138641504, "9": 1138153588, "10": 1138992426, "11": 1139065356, "12": 1138641504, "13": 1138333768, "14": 1138008872, "15": 1138338916, "16": 1138490496, "17": 1138400978, "18":... | [] | [] | ok | ok | 192,160,987,590 | 116,110,849,712 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 102 | 102 | 102 | 102 | 0 | 0 | 0 | 1.654979 | 1.654979 | 9.812142 | false | false | false | 0.189675 | 0.114226 | 1.660531 | 0.025842 | Accepted | Accepted | 0.025842 | 0.460525 | 0.226232 | 3 | 5 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p00232 | s457062022 | s629291450 | train | cpp | #include<iostream>
#include<algorithm>
#define FOR(i,e) for(int i=0;i<(int)(e);i++)
using namespace std;
int main(){
double pb[100][5001];
int x,y,z;
int v[4],e[51],a[51];
while(cin >> x >> y >> z && (x||y||z)){
FOR(i,x)cin >> v[i];
FOR(i,y+1)e[i] = a[i] = 0;
FOR(i,z){
int n,... | #include<cstdio>
#include<algorithm>
using namespace std;
int main(){
double pb[100][5001];
int x,y,z,n,m,l,ub,i,j,k;
int v[4],e[51],a[51];
while(scanf("%d %d %d",&x,&y,&z) && (x||y||z)){
for(i=0;i<x;i++)scanf("%d",&v[i]);
for(i=0;i<=y;i++)e[i] = a[i] = 0;
ub = 0;
for(i=0;i<z;i+... | {"0": 1955512130, "1": 1955512130, "2": 1832175774, "3": 1955522140, "4": 1800679738, "5": 1955522140, "6": 1864193474, "7": 1800896526, "8": 1817884068, "9": 1832175774, "10": 1817859186, "11": 1972310912, "12": 1863720430, "13": 1912211730, "14": 1832165764, "15": 1800679738, "16": 1958029216, "17": 1800758102, "18":... | {"0": 306676370, "1": 306676370, "2": 306598578, "3": 306675512, "4": 306676370, "5": 306593716, "6": 306848828, "7": 306043166, "8": 306676370, "9": 305969092, "10": 306957222, "11": 307045596, "12": 307043308, "13": 306536230, "14": 305866704, "15": 306536230, "16": 306940348, "17": 306459582, "18": 306452146, "19": ... | [] | [] | ok | ok | 192,160,987,590 | 31,248,173,242 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 102 | 102 | 102 | 102 | 0 | 0 | 0 | 6.149511 | 6.149511 | 9.812142 | false | false | false | 0.189675 | 0.030367 | 6.246177 | 0.025842 | Accepted | Accepted | 0.025842 | 0.97238 | 0.850984 | 6 | 6 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p00232 | s288098895 | s629291450 | train | cpp | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
double pb[100][5001];
int x,y,z,n,m,l,ub;
int v[4],e[51],a[51];
while(cin >> x >> y >> z && (x||y||z)){
for(int i=0;i<x;i++)cin >> v[i];
for(int i=0;i<=y;i++)e[i] = a[i] = 0;
ub = 0;
for(int i=0;i<z;i++){
... | #include<cstdio>
#include<algorithm>
using namespace std;
int main(){
double pb[100][5001];
int x,y,z,n,m,l,ub,i,j,k;
int v[4],e[51],a[51];
while(scanf("%d %d %d",&x,&y,&z) && (x||y||z)){
for(i=0;i<x;i++)scanf("%d",&v[i]);
for(i=0;i<=y;i++)e[i] = a[i] = 0;
ub = 0;
for(i=0;i<z;i+... | {"0": 1138490496, "1": 1138490496, "2": 1138490496, "3": 1138400978, "4": 1138490496, "5": 1138333768, "6": 1138948382, "7": 1138159022, "8": 1138641504, "9": 1138153588, "10": 1138992426, "11": 1139065356, "12": 1138641504, "13": 1138333768, "14": 1138008872, "15": 1138338916, "16": 1138490496, "17": 1138400978, "18":... | {"0": 306676370, "1": 306676370, "2": 306598578, "3": 306675512, "4": 306676370, "5": 306593716, "6": 306848828, "7": 306043166, "8": 306676370, "9": 305969092, "10": 306957222, "11": 307045596, "12": 307043308, "13": 306536230, "14": 305866704, "15": 306536230, "16": 306940348, "17": 306459582, "18": 306452146, "19": ... | [] | [] | ok | ok | 116,110,849,712 | 31,248,173,242 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 102 | 102 | 102 | 102 | 0 | 0 | 0 | 3.715764 | 3.715764 | 5.928863 | false | false | false | 0.114226 | 0.030367 | 3.761555 | 0.025842 | Accepted | Accepted | 0.025842 | 0.948802 | 0.850984 | 6 | 6 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p00232 | s441517966 | s945344504 | train | cpp | #include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()
#define fi first
#define se second
template<typename A, typename B> inline bool chmax(A &a, B b) { if (a<b) { a=b; return 1; } return 0; }
template<typ... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()
#define fi first
#define se second
template<typename A, typename B> inline bool chmax(A &a, B b) { if (a<b) { a=b; return 1; } return 0; }
template<typ... | {"0": 1912165684, "1": 1912171118, "2": 1912085890, "3": 1911756132, "4": 1911754416, "5": 1911724672, "6": 1911761566, "7": 1912032980, "8": 1939691468, "9": 1912132508, "10": 1939691468, "11": 1939242448, "12": 1912373892, "13": 1938678456, "14": 1911924872, "15": 1911747266, "16": 1912106196, "17": 1912026116, "18":... | {"0": 1492878530, "1": 1492880532, "2": 1492896262, "3": 1492976628, "4": 1492929724, "5": 1492994932, "6": 1492965474, "7": 1492980918, "8": 1506695190, "9": 1492897978, "10": 1506695190, "11": 1506616826, "12": 1493041264, "13": 1506602812, "14": 1492913422, "15": 1492878530, "16": 1492945454, "17": 1492902554, "18":... | [] | [] | ok | ok | 196,948,587,550 | 153,258,115,868 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 102 | 102 | 102 | 102 | 0 | 0 | 0 | 1.285078 | 1.285078 | 10.056607 | false | false | false | 0.194465 | 0.151179 | 1.286329 | 0.025842 | Accepted | Accepted | 0.025842 | 0.256706 | 0.170934 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
p03078 | s258228842 | s043585867 | train | cpp | #include <bits/stdc++.h>
using namespace std;
using i32 = std::int_fast32_t;
using i64 = std::int_fast64_t;
template <typename T> constexpr T inf = numeric_limits<T>::has_infinity ? numeric_limits<T>::infinity() : numeric_limits<T>::max() / 4;
#define REP(i, stop) FOR(i, 0, stop)
#define FOR(i, start, stop) f... | // #include <bits/stdc++.h>
#include <cstdio>
#include <vector>
#include <functional>
#include <algorithm>
#include <queue>
#include <set>
using namespace std;
using i32 = int;
using i64 = long long;
#define REP(i, stop) FOR(i, 0, stop)
#define FOR(i, start, stop) for (int i = start, i##_len = stop; i < ... | {"0": 1047497594, "1": 1086782840, "2": 1085789848, "3": 1084804864, "4": 1084811442, "5": 1085419478, "6": 1085751524, "7": 1085945718, "8": 1085141486, "9": 1085437496, "10": 1085333964, "11": 1085872216, "12": 1084797428, "13": 1083601662, "14": 1085166082, "15": 1085411470, "16": 1085434064, "17": 1084798000, "18":... | {"0": 948173798, "1": 970277022, "2": 970611356, "3": 972436608, "4": 970890206, "5": 970363394, "6": 971952410, "7": 972409152, "8": 971577178, "9": 972004176, "10": 972662262, "11": 970373404, "12": 972396282, "13": 971554870, "14": 971993308, "15": 970037926, "16": 970865610, "17": 971564594, "18": 972410296, "19": ... | [] | [] | ok | ok | 112,675,700,280 | 101,004,537,920 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 8... | 104 | 104 | 104 | 104 | 0 | 0 | 0 | 1.115551 | 1.115551 | 5.642814 | false | false | false | 0.112089 | 0.100619 | 1.113994 | 0.020439 | Accepted | Accepted | 0.020439 | 0.125149 | 0.203133 | 1 | 5 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
End of preview. Expand in Data Studio
PIE gem5-timed code optimization (src,tgt pairs)
C++ program-optimization data from the PIE dataset, re-timed end-to-end with gem5 (x86 Skylake, SE mode) at per-test-case granularity. One row per official (source, target) program pair. The dataset is reward-agnostic: it carries the full per-test-case reference timings and case manifests, so a downstream RL/eval pipeline chooses how many cases to use and which reward transform to apply.
Timing
gem5_*_per_tc_ticks— JSON{case_idx: ticks}, gem5 picoseconds (seconds = ticks x 1e-12).- Validated against PIE's published numbers: per-tc r=1.0 on test; speedup log-corr ~0.97-0.98, median ratio ~0.99.
- Reward usage: subsample
Kindices (K=-1 = all) fromusable_case_ids, thenspeedup = sum(src_ticks[c]) / sum(tgt_ticks[c])over those cases (both sides timed on the same inputs).usable_case_ids= correctness-kept ∩ both-sides-timed ∩ticks <= 1.4e10(PIE's 2-min wall on gem5.opt).
Filtering (rows are pre-filtered; bad records are dropped, not flagged)
- Compile-fail programs dropped (
g++ -O2 -std=gnu++17). - Bad-apple programs dropped: a submission failing > max(5, 5% of cases) is treated as wrong/mislabeled (line-wise + 1e-3 float comparator).
- gem5 hard-excludes (startup_fail / all-cases-hang-or-crash) dropped.
- Case kept iff every surviving good program of the problem passes it.
- Strict 2-min wall: cases above 1.4e10 ticks dropped.
- Pair criterion: drop a pair if |src.fails ∪ tgt.fails| > max(5, 5%).
- 3 degenerate problems (empty input+output) dropped.
- Non-dropping flags retained:
flag_low_headroom(speedup ceiling <1.5x),flag_single_case,flag_empty_kept.
Splits
| split | rows |
|---|---|
| train | 58863 |
| validation | 2116 |
| test | 878 |
pie_* columns are carried verbatim from PIE (agg runtimes, fastest-solution code+timing,
verdicts, difficulty bins, and on test the released tests indices + per-tc reference times).
Built 2026-06-12. Timing: gem5.fast with fork-from-live startup amortization.
- Downloads last month
- -