| Входной файл: | test.sql | Ограничение времени: | 1 сек | |
| Выходной файл: | test.log | Ограничение памяти: | 256 Мб |
Default library: SQL and corresponding test.
create table Characters (
CharacterID INTEGER PRIMARY KEY AUTOINCREMENT,
CharacterName TEXT NOT NULL,
MasterID INTEGER ,
FractionID INTEGER,
MidiChlorians INTEGER DEFAULT 2000,
FOREIGN KEY (FractionID) REFERENCES Fractions(FractionID),
FOREIGN KEY (MasterID) REFERENCES Characters(CharacterID)
);
create table Fractions (
FractionID INTEGER PRIMARY KEY AUTOINCREMENT,
FractionName TEXT NOT NULL check ( FractionName in ('Sith', 'Jedi', 'Neutral') )
);
Схема БД в UML-нотации:
Предполагается, что для работы с базой данных используется SQLite3.
| Input file: | Standard input | Time limit: | 1 sec | |
| Output file: | Standard output | Memory limit: | 512 Mb |
Partial checker always returns "OK" for 0 points.
| Author: | A. Klenin | Time limit: | 1 sec | |
| Input file: | input.txt | Memory limit: | 64 Mb | |
| Output file: | output.txt |
| Author: | A. Klenin | Time limit: | 1 sec | |
| Input file: | input.txt | Memory limit: | 64 Mb | |
| Output file: | output.txt |
| No. | Input file (input.txt) |
Output file (output.txt) |
|---|---|---|
| 1 |
|
|