QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#546038#7281. How to Avoid Disqualification in 75 Easy Stepshztmax0Compile Error//C++149.7kb2024-09-03 19:08:592024-09-03 19:09:01

Judging History

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

  • [2024-09-03 19:09:01]
  • 评测
  • [2024-09-03 19:08:59]
  • 提交

answer

#include <iostream>

using namespace std;
using LL = long long;

const int N = 1e3, M = 26; 

LL a[N] = {

133435, 34346499, 6370307, 8652257, 7151874, 296030, 1843285, 16991508, 33640850, 29493664, 9633893, 33751889, 114995, 4746245, 5284208, 51929112, 12595316, 494128, 33818568, 10764738, 42535489, 1459080, 17547300, 2131053, 4215272, 36280448, 426850, 8527044, 93296, 9187852, 11411716, 34408530, 19144930, 5277236, 20713602, 16790678, 29381656, 7899170, 5070913, 1329701, 9724938, 6334658, 8866080, 11567568, 43528512, 9455883, 47450148, 17860948, 3334184, 141784, 1980417, 40337536, 3474968, 54919206, 17175640, 39338688, 52494792, 17115784, 11625536, 1920064, 44312656, 1704404, 33866464, 1601152, 2169004, 6459696, 1324099, 2491508, 30810, 4985, 5386314, 218664, 38326340, 33686350, 17057958, 38109520, 4063824, 633474, 33756488, 17843544, 5318700, 42471817, 35707968, 160011, 10514446, 8783129, 13243412, 86797, 21275657, 18514480, 26220566, 3419154, 4411922, 8412209, 2531354, 6340877, 17205889, 33574680, 25281632, 6326084, 3147657, 4208933, 38797916, 3293766, 52727817, 526012, 14749833, 7931976, 574042, 25313880, 8546056, 4229182, 5017752, 55465, 15220806, 17535233, 34013237, 52758688, 2703956, 42061904, 3182793, 741824, 9687048, 6491160, 16958506, 21060610, 8399036, 1189398, 34607667, 38301960, 11993094, 2263118, 1155281, 16884998, 35684572, 54577288, 35655205, 1608010, 8599824, 2582656, 25383072, 2385030, 10695170, 33724934, 63504452, 25690236, 4309602, 1183046, 6603, 985252, 18977320, 18902288, 721011, 21595266, 2252995, 43123816, 17318732, 8657112, 50352188, 10068225, 420114, 6030752, 36786216, 49414224, 10527344, 12076044, 169521, 1077697, 2111517, 34969601, 1614436, 21176849, 533209, 23071765, 2106268, 697624, 43147394, 584776, 28727, 3254532, 47226904, 37782307, 28262400, 1722381, 67189, 12685573, 824582, 6382400, 12714542, 838528, 34758917, 1643034, 25725193, 51708545, 43262529, 4508184, 8413417, 4721996, 11870344, 366860, 9640452, 35209761, 8497222, 33599813, 33868035, 7509, 8495768, 17306211, 58892424, 2115789, 42235905, 843922, 38342698, 3457052, 16911046, 42649856, 41030176, 541231, 51282496, 16844012, 59775496, 1096225, 2128162, 2100406, 4621458, 3719952, 27263697, 16850468, 55644165, 51666, 39985249, 33654813, 4506913, 4610368, 5555, 2100208, 8661793, 21120208, 1053086, 27334673, 8566276, 59250432, 255, 729417, 4460297, 4460949, 17973698, 51314818, 18063624, 135835, 10647, 7723, 4522031, 1084057, 5300866, 50421829, 33709696, 19465266, 9003045, 405064, 34296, 13779168, 23724300, 25309377, 8553995, 43385364, 8011812, 50594204, 22286913, 8926282, 22808593, 13894084, 2133315, 36050954, 143932, 2446432, 28328040, 864278, 18812, 36569221, 6837, 4784437, 66522, 9971080, 4216394, 484866, 19045888, 6701616, 592668, 58794372, 4985155, 5317268, 1212777, 8946092, 20006402, 1058125, 344277, 16916637, 5645345, 1444018, 319653, 16789288, 81029, 16787573, 2326805, 39429120, 27568130, 546002, 36866305, 4221648, 27665920, 43257024, 35133608, 35227744, 4233456, 35397924, 16855083, 18919431, 18509856, 17592337, 1136512, 33734834, 37947586, 74604, 10093587, 16823064, 40059908, 1455116, 53519424, 2231697, 34153479, 828938, 23077193, 5359696, 38413826, 1350210, 17859719, 8718359, 530314, 9984024, 8981728, 6857345, 19415242, 33822948, 2754089, 3670159, 35672842, 7008256, 17771, 8970755, 44581448, 20972274, 11573251, 26416144, 33670785, 4209174, 640800, 26804672, 1311187, 21014916, 17056819, 36213777, 52855824, 321284, 803101, 1370304, 4436512, 1051372, 35934230, 16795523, 271062, 33561954, 3158354, 38404238, 608451, 108073, 50905392, 50531904, 21496877, 8934209, 35758226, 16796217, 921708, 50463123, 4240832, 274673, 2148008, 52978690, 18122808, 38038784, 530550, 50862153, 4334308, 43516102, 12732034, 2188549, 34906134, 177289, 17433968, 4358570, 25199149, 202872, 20041744, 14697514, 17993828, 1724948, 34119819, 385080, 1446151, 789812, 35730444, 8425615, 4501539, 1321129, 26227217, 129344, 34505985, 150179, 346344, 58738762, 45694992, 21823873, 51152908, 778768, 1171973, 33588526, 7358531, 33983524, 30672144, 8408645, 144322, 58723490, 9552288, 17158660, 18156550, 9324736, 1239043, 33841752, 42567, 6883350, 400152, 16800014, 19929164, 8979083, 167001, 731653, 459915, 1090978, 7686400, 41277, 361652, 118290, 45156616, 1410117, 1134960, 63185056, 39714816, 39846310, 4752483, 5444768, 46275136, 8392522, 174865, 8395666, 5588512, 2515468, 1611521, 563725, 9376320, 10666513, 8947393, 37257540, 299787, 1099340, 1401220, 43115, 9131, 35783197, 34081430, 2459016, 18424386, 10038276, 4355137, 38150592, 37094403, 33800268, 4661528, 33743393, 27301248, 11534908, 29627264, 11274506, 5837, 4263812, 29395552, 4819084, 52562032, 8568871, 5296904, 33632964, 33582124, 10659984, 8784963, 8863896, 2431553, 33699090, 2118968, 562144, 42665476, 13107514, 10902016, 23134378, 381969, 37003808, 14442512, 1642573, 18221130, 62564, 498816, 8931498, 12590153, 14160389, 4203611, 35094568, 13501064, 20513928, 17383577, 17044773, 25429680, 34340985, 282982, 47191169, 9053008, 2469376, 535609, 150670, 11076881, 207142, 68687, 47390721, 8750850, 26289, 8450352, 1691778, 37759313, 1086491, 51398149, 1140761, 8424244, 2378033, 4596231, 7090272, 40632841, 310544, 5900036, 8464653, 18884004, 23208210, 56632864, 4213862, 14691585, 25038, 9873412, 538416, 43028644, 8585908, 2380313, 55149072, 12979248, 4925450, 3293400, 34739269, 9445966, 42468382, 3795, 17338580, 38053440, 136998, 688159, 22069633, 19925298, 46473730, 2763788, 2724936, 9716322, 1184481, 95370, 25761858, 41951474, 39856139, 25192996, 19237136, 36325890, 33706185, 8726112, 2343298, 10571010, 23612480, 33565409, 36225031, 4294033, 2245036, 4745266, 8720933, 1552448, 17930624, 6560801, 40129664, 1130667, 101193, 301474, 34899081, 26239109, 75203, 50333, 2433129, 83006, 272942, 17276962, 36176312, 16955680, 42238760, 103650, 60588034, 140335, 39912560, 13654530, 4285736, 4442628, 15016964, 16783186, 8398725, 12821506, 25440518, 59047962, 44042883, 2120326, 16892234, 1622073, 17178947, 4342661, 27464000, 37486, 4265017, 11032192, 2367236, 1212597, 21567760, 2667652, 37355569, 9834569, 13863168, 4790787, 42042417, 22154000, 5845184, 35768608, 7606314, 2130491, 34212961, 51906120, 18942597, 4870179, 54579744, 42287265, 34151444, 9569074, 78233, 35145104, 411284, 36714640, 17393684, 710704, 54538448, 17129554, 84881, 208967, 20193291, 4524464, 19214600, 21053793, 1344170, 55650816, 4754984, 12886282, 275816, 21385228, 17083460, 2238211, 42078500, 11051030, 16807436, 50332162, 34768648, 237800, 5785862, 25427, 33858434, 2884274, 333264, 263847, 2247272, 9221152, 4264270, 45746, 29361206, 404896, 25526412, 19924145, 33592860, 33647362, 2102726, 16930835, 659392, 27525389, 29503528, 5767755, 3364865, 22087945, 3875360, 2764962, 50374161, 4391625, 11158304, 7884929, 36701286, 622983, 34423302, 42352684, 4882881, 17888258, 51002368, 34800034, 16812465, 40897824, 8478867, 17442992, 76339, 33694918, 3678609, 11560993, 23218308, 4198194, 4475178, 33637796, 8534114, 1377586, 8409686, 1835880, 39075866, 34300040, 16154625, 18925076, 21129312, 70117, 17830061, 4485761, 2703777, 2173210, 33577553, 442443, 285703, 184724, 16252969, 41986376, 1053820, 34605957, 2157066, 21432064, 83654, 38804996, 46679584, 22024966, 10586636, 17072663, 17204672, 43040769, 38121480, 6427217, 17662049, 44504064, 44708, 35726, 1246237, 9175221, 21760644, 20197412, 33620653, 8683926, 1823, 791721, 18399880, 4536388, 27132672, 6350865, 10784992, 33882730, 29968385, 6557900, 1058768, 44065160, 10029712, 8521170, 25575812, 9994354, 38011933, 22022794, 3551616, 17695017, 18359049, 8735756, 4199598, 922500, 37032196, 17703442, 2950661, 46155817, 42635330, 26869921, 581926, 8459347, 535010, 16925773, 14692888, 2111060, 24395968, 33561753, 103190, 27863552, 19562565, 4204385, 16974599, 730258, 854818, 19079364, 3064960, 33571927, 3182885, 38436976, 9590, 8438105, 1465360, 2624602, 13762883, 147953, 1230017, 350730, 22062224, 7700996, 34120144, 10617180, 25363752, 60837921, 2394261, 15345728, 680546, 117797, 17634824, 50615056, 34488610, 35918497, 17321249, 555148, 19421344, 33895458, 33616024, 17310890, 2207796, 2168465, 234124, 17467914, 12705812, 1063078, 1587476, 1117955, 16851888, 32513, 594598, 1149994, 3212002, 35719750, 618600, 10521761, 168275, 2919, 2429203, 755012, 21010754, 5539916, 37801995, 2293927, 662659, 16817345, 28838148, 6833026, 37880504, 571473, 794208, 6293146, 542149, 48142, 13697648, 25232212, 10750660, 3000328, 1066293, 4351004, 3346578, 2556740, 62918675, 12910681, 5377157, 132730, 4211099, 1509697, 9443010, 54527370, 16879705, 1708330, 2626913, 34625864, 8402600, 18099713, 22085722, 1852454, 2150514, 65044996, 537351, 48768128, 265626, 280432, 34744348, 5948432, 50868262, 1910528, 21500468, 17875808, 8635072, 2108648, 9577648, 264797, 18033696, 1638758, 187656, 16818890, 12755233, 63046665, 3677704, 9198848, 1272384, 3501, 153701, 9013283, 3154471, 33749, 19022105, 7369732, 861384, 2926625, 8458556, 7340849, 15024641, 46301317, 34416769, 190548, 46154006, 53955, 34669722, 4300966, 35443712, 464931, 4736593, 15274752, 5121092, 393677, 2401096, 17564743, 4331910, 7476488, 1067550, 199592, 12911778, 289093, 1078052, 12635456, 2064642, 53223681, 4620373, 1068512, 10492264, 282810, 559333, 5510674, 2824480, 44302692, 1116374, 17334, 9473045, 2328144, 34093578

};
int ans[M][N]; 

int main () {
  ios::sync_with_stdio(0);
  cin.tie(0); cout.tie(0);
  int n; 
  cin >> n;
  if (n == 2) {
    cout << 2 << '\n';
    cout << "10" << '\n';
    cout << "01" << '\n';
  }
  else {
    for (int i = 0; i < N; ++i) {
      for (int j = M - 1; ~j; --j) {
        ans[j][i] = a[i] & 1;
        a[i] >>= 1;
      }
    }
    cout << M << '\n';
    for (int i = 0; i < M; ++i) {
      for (int j = 0; j < N; ++j) {
        cout << ans[i][j]; 
      }
      cout << '\n';
    }
  }
  return 0; 
}

詳細信息

/usr/bin/ld: /tmp/cc25lnPl.o: in function `main':
answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/ccG0jQ9k.o:implementer.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccG0jQ9k.o: in function `main':
implementer.cpp:(.text.startup+0x1b): undefined reference to `scout(int, int)'
collect2: error: ld returned 1 exit status