OII logo
  • Home
    • School selections
    • Regionals
    • Nationals & OIS
    • Tasks by technique
    • Tasks by contest
    • Tasks by year
  • Ranking
  • Algobadge
  • Forum
Log in / Sign up

Tris in solitaria

Time limit: 1 sec
Memory limit: 256 MB
Input/output: stdin / stdout
Maximum score: 21
Translations:
Italiano
Uploaded on: 9 January 2016
StatementAttachmentsTagsStatsSubmitSubmissionsHelp

Forum posts

doublechar14's profile picture
Tris in solitaria, ultimi dieci punti
Sono riuscito a fare 90/100 su solitario, ho semplicemente generato tutte le possibili giocate e contato il numero maggiore di x in quelle valide, tuttavia l'ultimo subtask dà timeout/errori. Ho vi...
Fortuna's profile picture
Tris in solitario
#include < iostream > using namespace std; int N,M; int main(){ freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); cin > > N > > M; if(N < =2){ cout < < (M/3)*N*2+(M%3)*N; } } Mi dat...
Malasaur's profile picture
Aiuto per velocizzare solitario2
Buongiorno a tutti! Avrei bisogno di una mano per rendere il mio programma per "Tris in solitaria 2" più veloce. Attualmente mi garantisce 80 punti su 100 (va fuori tempo solo nel testcase 48; l'ho...
aleeeee1's profile picture
Solitario2 80/100, wrong output ultimo case
#include < cassert > #include < cmath > #include < fstream > #include < iostream > #include < vector > using namespace std; int N, M; int area; void stampa_matrix(vector < vector < int > > & tris) ...
Search other topics
Create new topic